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.00142/0.00142, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 222.9 MB / 239.3 MB, free: 4.629 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.001345/0.001345, allocations: 188.5 kB / 289.5 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03496/0.03496, allocations: 8.797 MB / 348.5 MB, free: 4.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 76.47 kB / 411.2 MB, free: 42.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.074/0.0756, allocations: 51.57 MB / 462.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02671/0.1024, allocations: 25.42 MB / 488.2 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01622/0.1186, allocations: 8.01 MB / 496.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004027/0.1227, allocations: 171.5 kB / 496.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01447/0.1372, allocations: 6.114 MB / 0.4907 GB, free: 6.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008899/0.1461, allocations: 2.731 MB / 0.4934 GB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004629/0.1507, allocations: 1.634 MB / 0.495 GB, free: 2.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008612/0.1594, allocations: 7.221 MB / 0.502 GB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01828/0.1777, allocations: 13.35 MB / 0.515 GB, free: 13.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005004/0.1827, allocations: 3.724 MB / 0.5187 GB, free: 9.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005783/0.1885, allocations: 4.251 MB / 0.5228 GB, free: 5.305 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002452/0.191, allocations: 1.07 MB / 0.5239 GB, free: 4.234 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003864/0.1949, allocations: 1.437 MB / 0.5253 GB, free: 2.797 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003147/0.198, allocations: 2.151 MB / 0.5274 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1984/0.3965, allocations: 4.107 MB / 0.5314 GB, free: 23.19 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01869/0.4152, allocations: 14.37 MB / 0.5454 GB, free: 21.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.4153, allocations: 0 / 0.5454 GB, free: 21.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4153, allocations: 0 / 0.5454 GB, free: 21.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004912/0.4158, allocations: 1.375 kB / 0.5454 GB, free: 21.95 MB / 366.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.02693/0.4427, allocations: 8.798 MB / 0.554 GB, free: 18.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.4428, allocations: 14 kB / 0.554 GB, free: 18.03 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002358/0.4451, allocations: 1.052 MB / 0.5551 GB, free: 17.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0235/0.4686, allocations: 4.38 MB / 0.5593 GB, free: 16.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008796/0.4775, allocations: 4.505 MB / 0.5637 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002863/0.4778, allocations: 491.1 kB / 0.5642 GB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001753/0.4795, allocations: 0.6347 MB / 0.5648 GB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0166/0.4961, allocations: 10.36 MB / 0.5749 GB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001294/0.4963, allocations: 7.781 kB / 0.5749 GB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007627/0.4971, allocations: 265.2 kB / 0.5752 GB, free: 8.727 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000278/0.4974, allocations: 421 kB / 0.5756 GB, free: 8.637 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01443/0.5118, allocations: 9.861 MB / 0.5852 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05395/0.5658, allocations: 35.69 MB / 0.6201 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01852/0.5843, allocations: 20.66 MB / 0.6403 GB, free: 5.367 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003763/0.5881, allocations: 2.312 MB / 0.6425 GB, free: 3.051 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003045/0.5885, allocations: 222 kB / 0.6427 GB, free: 2.805 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.688e-05/0.5885, allocations: 64.89 kB / 0.6428 GB, free: 2.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.689e-06/0.5885, allocations: 0 / 0.6428 GB, free: 2.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02375/0.6123, allocations: 10.87 MB / 0.6534 GB, free: 7.754 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.911e-05/0.6124, allocations: 89.28 kB / 0.6535 GB, free: 7.656 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004467/0.6169, allocations: 3.021 MB / 0.6564 GB, free: 4.617 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003845/0.6173, allocations: 73.7 kB / 0.6565 GB, free: 4.539 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001699/0.619, allocations: 2.869 MB / 0.6593 GB, free: 1.652 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009141/0.6199, allocations: 1.035 MB / 0.6603 GB, free: 0.625 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001316/0.6212, allocations: 0.9133 MB / 0.6612 GB, free: 15.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.653e-05/0.6213, allocations: 301.1 kB / 0.6615 GB, free: 15.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002903/0.6242, allocations: 2.024 MB / 0.6635 GB, free: 13.37 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003894/0.6282, allocations: 3.722 MB / 0.6671 GB, free: 8.887 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007219/0.6354, allocations: 6.048 MB / 0.673 GB, free: 2.27 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.299e-05/0.6354, allocations: 16 kB / 0.673 GB, free: 2.254 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01059/0.646, allocations: 6.629 MB / 0.6795 GB, free: 11.93 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.815e-05/0.6461, allocations: 28 kB / 0.6795 GB, free: 11.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.997e-05/0.6462, allocations: 56.22 kB / 0.6796 GB, free: 11.85 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00179/0.648, allocations: 0.6757 MB / 0.6802 GB, free: 11.17 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003821/0.6518, allocations: 1.072 MB / 0.6813 GB, free: 10.18 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00887/0.6607, allocations: 6.233 MB / 0.6874 GB, free: 3.844 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004063/0.6648, allocations: 283.5 kB / 0.6876 GB, free: 3.566 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008163/0.6657, allocations: 224 kB / 0.6879 GB, free: 3.348 MB / 478.1 MB 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.004123/0.6698, allocations: 2.314 MB / 0.6901 GB, free: 1.098 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008473/0.6707, allocations: 316.1 kB / 0.6904 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008/0.6787, allocations: 4.64 MB / 0.695 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.274e-05/0.6787, allocations: 32 kB / 0.695 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.6788, allocations: 4 kB / 0.695 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.141e-05/0.6788, allocations: 15.94 kB / 0.695 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01817/0.697, allocations: 11.26 MB / 0.706 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.43e-05/0.697, allocations: 4 kB / 0.706 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00213/0.6992, allocations: 0.5414 MB / 0.7065 GB, free: 176 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1709/0.8701, allocations: 0.5644 MB / 0.7071 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004816/0.8706, allocations: 68.48 kB / 0.7071 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006459/0.877, allocations: 5.457 MB / 0.7125 GB, free: 172.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/0.8771, allocations: 9.312 kB / 0.7125 GB, free: 172.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009732/0.8868, allocations: 6.576 MB / 0.7189 GB, free: 172 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001589/0.8884, allocations: 0.7231 MB / 0.7196 GB, free: 171.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005531/0.889, allocations: 64.06 kB / 0.7197 GB, free: 171.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001695/0.8907, allocations: 144.2 kB / 0.7198 GB, free: 171.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004186/0.8911, allocations: 209.4 kB / 0.72 GB, free: 171.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001671/0.8913, allocations: 93.28 kB / 0.7201 GB, free: 171.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002738/0.8941, allocations: 2.011 MB / 0.7221 GB, free: 170.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.8941, allocations: 0 / 0.7221 GB, free: 170.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003744/0.8978, allocations: 1.177 MB / 0.7232 GB, free: 170.7 MB / 494.1 MB 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.008286/0.9061, allocations: 7.269 MB / 0.7303 GB, free: 167.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01648/0.9226, allocations: 8.295 MB / 0.7384 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/0.9227, allocations: 0 / 0.7384 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004107/0.9268, allocations: 2.257 MB / 0.7406 GB, free: 162.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004285/0.9311, allocations: 0.6535 MB / 0.7413 GB, free: 162 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05222/0.9834, allocations: 44.51 MB / 0.7847 GB, free: 116.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003278/0.9867, allocations: 4.158 MB / 0.7888 GB, free: 112.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003543/0.9902, allocations: 1.321 MB / 0.7901 GB, free: 111.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00245/0.9927, allocations: 2.245 MB / 0.7923 GB, free: 109 MB / 494.1 MB Notification: Performance of SimCode: time 1.253e-06/0.9927, allocations: 0 / 0.7923 GB, free: 109 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1131/1.106, allocations: 90.03 MB / 0.8802 GB, free: 19.24 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/12.36, allocations: 7.938 kB / 0.8802 GB, free: 19.23 MB / 494.1 MB (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)