Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004682/0.004682, allocations: 105.8 kB / 15.74 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 239.4 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 188.5 kB / 289.7 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03472/0.03472, allocations: 8.8 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 79.86 kB / 463.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08962/0.09113, allocations: 51.55 MB / 0.5029 GB, free: 9.938 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02835/0.1195, allocations: 25.43 MB / 0.5278 GB, free: 400 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2195/0.3391, allocations: 8.002 MB / 0.5356 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004534/0.3436, allocations: 174.3 kB / 0.5358 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01273/0.3564, allocations: 6.104 MB / 0.5417 GB, free: 3.812 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007878/0.3643, allocations: 2.746 MB / 0.5444 GB, free: 3.047 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00454/0.3689, allocations: 1.616 MB / 0.546 GB, free: 2.887 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009263/0.3781, allocations: 7.277 MB / 0.5531 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01895/0.3971, allocations: 13.36 MB / 0.5661 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005464/0.4026, allocations: 3.748 MB / 0.5698 GB, free: 9.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00633/0.409, allocations: 4.219 MB / 0.5739 GB, free: 5.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002216/0.4112, allocations: 1.07 MB / 0.575 GB, free: 4.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00366/0.4149, allocations: 1.445 MB / 0.5764 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002216/0.4172, allocations: 2.134 MB / 0.5785 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006355/0.4235, allocations: 4.114 MB / 0.5825 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01517/0.4387, allocations: 14.45 MB / 0.5966 GB, free: 14.94 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.4388, allocations: 4 kB / 0.5966 GB, free: 14.94 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4388, allocations: 4 kB / 0.5966 GB, free: 14.93 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003789/0.4392, allocations: 0 / 0.5966 GB, free: 14.93 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.02525/0.4644, allocations: 8.764 MB / 0.6052 GB, free: 6.152 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.4645, allocations: 8.031 kB / 0.6052 GB, free: 6.145 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002949/0.4675, allocations: 1.048 MB / 0.6062 GB, free: 5.098 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02614/0.4936, allocations: 4.401 MB / 0.6105 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01032/0.504, allocations: 4.618 MB / 0.615 GB, free: 12.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004865/0.5045, allocations: 488.1 kB / 0.6155 GB, free: 11.62 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002203/0.5067, allocations: 0.636 MB / 0.6161 GB, free: 10.99 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02339/0.5301, allocations: 10.36 MB / 0.6262 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002432/0.5304, allocations: 7.906 kB / 0.6262 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001679/0.5321, allocations: 270.5 kB / 0.6265 GB, free: 332 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004639/0.5326, allocations: 421.7 kB / 0.6269 GB, free: 15.91 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02105/0.5536, allocations: 9.872 MB / 0.6365 GB, free: 6.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05972/0.6134, allocations: 35.3 MB / 0.671 GB, free: 1.719 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01929/0.6327, allocations: 20.66 MB / 0.6912 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003781/0.6365, allocations: 2.307 MB / 0.6934 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003654/0.6369, allocations: 226.3 kB / 0.6936 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.958e-05/0.637, allocations: 68.89 kB / 0.6937 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 5.691e-06/0.637, allocations: 0 / 0.6937 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02232/0.6593, allocations: 10.87 MB / 0.7043 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.6594, allocations: 81.78 kB / 0.7044 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00511/0.6646, allocations: 3.021 MB / 0.7073 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003698/0.665, allocations: 73.7 kB / 0.7074 GB, free: 9.555 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001999/0.667, allocations: 2.863 MB / 0.7102 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001162/0.6681, allocations: 1.042 MB / 0.7112 GB, free: 5.641 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001784/0.6699, allocations: 0.9016 MB / 0.7121 GB, free: 4.727 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.929e-05/0.6701, allocations: 305.1 kB / 0.7124 GB, free: 4.426 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003355/0.6734, allocations: 2.031 MB / 0.7144 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004781/0.6782, allocations: 3.728 MB / 0.718 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008548/0.6868, allocations: 6.047 MB / 0.7239 GB, free: 7.02 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.103e-05/0.6869, allocations: 16 kB / 0.7239 GB, free: 7.004 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01358/0.7005, allocations: 6.625 MB / 0.7304 GB, free: 348 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.269e-05/0.7006, allocations: 28 kB / 0.7304 GB, free: 320 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.548e-05/0.7007, allocations: 56 kB / 0.7305 GB, free: 264 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2012/0.9018, allocations: 0.667 MB / 0.7311 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004037/0.9059, allocations: 1.071 MB / 0.7322 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008636/0.9146, allocations: 6.219 MB / 0.7383 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003768/0.9184, allocations: 283 kB / 0.7385 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008411/0.9192, allocations: 228.9 kB / 0.7387 GB, free: 164.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 251 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 559 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,28,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004435/0.9237, allocations: 2.313 MB / 0.741 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/0.9248, allocations: 323.2 kB / 0.7413 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01026/0.9351, allocations: 4.627 MB / 0.7458 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.659e-05/0.9352, allocations: 30.56 kB / 0.7459 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.077e-05/0.9353, allocations: 9.531 kB / 0.7459 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001273/0.9354, allocations: 15.38 kB / 0.7459 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02391/0.9593, allocations: 11.09 MB / 0.7567 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.185e-05/0.9594, allocations: 9.125 kB / 0.7567 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00244/0.9619, allocations: 0.5325 MB / 0.7572 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001727/0.9636, allocations: 0.5674 MB / 0.7578 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000452/0.9641, allocations: 63.53 kB / 0.7579 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006905/0.971, allocations: 5.464 MB / 0.7632 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/0.971, allocations: 8.5 kB / 0.7632 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01109/0.9821, allocations: 6.595 MB / 0.7696 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002053/0.9842, allocations: 0.7215 MB / 0.7703 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001073/0.9853, allocations: 59.42 kB / 0.7704 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002248/0.9876, allocations: 143.9 kB / 0.7705 GB, free: 152.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00051/0.9881, allocations: 209.5 kB / 0.7707 GB, free: 152.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002476/0.9884, allocations: 89.5 kB / 0.7708 GB, free: 152.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003428/0.9918, allocations: 2.025 MB / 0.7728 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.232e-06/0.9919, allocations: 0 / 0.7728 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005664/0.9975, allocations: 1.171 MB / 0.7739 GB, free: 151.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (smee.short.port_p.reference.gamma,mechanicalPowerSensor.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 290 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,26,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01055/1.008, allocations: 7.262 MB / 0.781 GB, free: 148.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007884/1.016, allocations: 5.035 MB / 0.786 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/1.016, allocations: 4 kB / 0.786 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003533/1.02, allocations: 2.259 MB / 0.7882 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004173/1.024, allocations: 0.6429 MB / 0.7888 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06882/1.093, allocations: 38.87 MB / 0.8267 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007157/1.1, allocations: 4.15 MB / 0.8308 GB, free: 97.72 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004748/1.105, allocations: 1.322 MB / 0.8321 GB, free: 96.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003838/1.109, allocations: 2.249 MB / 0.8343 GB, free: 94.15 MB / 0.5294 GB Notification: Performance of SimCode: time 9.92e-07/1.109, allocations: 0 / 0.8343 GB, free: 94.15 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1315/1.24, allocations: 88.9 MB / 0.9211 GB, free: 5.594 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.03/19.27, allocations: 19.92 kB / 0.9211 GB, free: 5.574 MB / 0.5294 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)