Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",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.0009393/0.0009393, allocations: 94.03 kB / 15.06 MB, free: 1.086 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.359/1.359, allocations: 223.3 MB / 239 MB, free: 5.461 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.001094/0.001094, allocations: 172.6 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03284/0.03284, allocations: 8.795 MB / 350.2 MB, free: 4.668 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003958/0.000396, allocations: 17.42 kB / 413.3 MB, free: 43.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08281/0.08322, allocations: 52.55 MB / 465.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.003161/0.08642, allocations: 2.433 MB / 468.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.0876, allocations: 0.6274 MB / 468.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001897/0.08781, allocations: 4 kB / 468.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.08796, allocations: 39.69 kB / 468.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000236/0.0882, allocations: 75.39 kB / 469 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001383/0.08835, allocations: 55.92 kB / 469.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003263/0.08869, allocations: 342.5 kB / 469.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.08889, allocations: 98.83 kB / 469.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001409/0.08904, allocations: 111.5 kB / 469.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.08921, allocations: 131.4 kB / 469.7 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.167e-05/0.08926, allocations: 16 kB / 469.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.453e-05/0.08931, allocations: 16 kB / 469.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.922e-05/0.08937, allocations: 51.77 kB / 469.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.906e-05/0.08945, allocations: 85.58 kB / 469.9 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.08972, allocations: 311.4 kB / 470.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.08973, allocations: 0 / 470.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.08974, allocations: 0 / 470.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.08975, allocations: 0 / 470.2 MB, free: 9.016 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.000793/0.09055, allocations: 0.5497 MB / 470.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.09059, allocations: 11.97 kB / 470.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.461e-05/0.09068, allocations: 74.47 kB / 470.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.352e-05/0.09075, allocations: 35.58 kB / 470.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.09105, allocations: 254.6 kB / 471.1 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.09108, allocations: 24.59 kB / 471.1 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.709e-05/0.09114, allocations: 35.91 kB / 471.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005091/0.09166, allocations: 270.1 kB / 471.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.09169, allocations: 8 kB / 471.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.55e-05/0.09172, allocations: 11.98 kB / 471.5 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.09174, allocations: 15.94 kB / 471.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004341/0.09218, allocations: 214.5 kB / 471.7 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/0.0937, allocations: 1.052 MB / 472.7 MB, free: 6.297 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000373/0.09409, allocations: 154.5 kB / 472.9 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.09428, allocations: 84.83 kB / 473 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.09432, allocations: 11.91 kB / 473 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.09436, allocations: 34.56 kB / 473 MB, free: 5.996 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/0.09437, allocations: 0 / 473 MB, free: 5.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001481/0.09585, allocations: 0.7065 MB / 473.7 MB, free: 5.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.09597, allocations: 55.41 kB / 473.8 MB, free: 5.152 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.0962, allocations: 206.5 kB / 474 MB, free: 4.938 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.09623, allocations: 29.7 kB / 474 MB, free: 4.902 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.09635, allocations: 180.1 kB / 474.2 MB, free: 4.723 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.362e-05/0.09641, allocations: 51.27 kB / 474.2 MB, free: 4.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.09643, allocations: 7.938 kB / 474.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.09656, allocations: 334.8 kB / 474.6 MB, free: 4.328 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.09672, allocations: 63.97 kB / 474.6 MB, free: 4.266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.0969, allocations: 106.8 kB / 474.7 MB, free: 4.148 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000164/0.09707, allocations: 86.08 kB / 474.8 MB, free: 4.066 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.09708, allocations: 0 / 474.8 MB, free: 4.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004526/0.09754, allocations: 242.1 kB / 475.1 MB, free: 3.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.09757, allocations: 4 kB / 475.1 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.09758, allocations: 3.984 kB / 475.1 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001225/0.09771, allocations: 20.86 kB / 475.1 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.09791, allocations: 55.98 kB / 475.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009207/0.09884, allocations: 1.273 MB / 476.4 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001203/0.09897, allocations: 12.02 kB / 476.4 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.099, allocations: 8 kB / 476.4 MB, free: 2.309 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000146/0.09915, allocations: 146.4 kB / 476.6 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.0992, allocations: 15.81 kB / 476.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.285e-05/0.09925, allocations: 21.86 kB / 476.6 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.09927, allocations: 15.92 kB / 476.6 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.09928, allocations: 4 kB / 476.6 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.09929, allocations: 0 / 476.6 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008711/0.1002, allocations: 0.62 MB / 477.2 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1002, allocations: 0 / 477.2 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002024/0.1004, allocations: 39.91 kB / 477.3 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.302e-05/0.1005, allocations: 24.84 kB / 477.3 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.1005, allocations: 4 kB / 477.3 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009794/0.1015, allocations: 1.276 MB / 478.6 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.1015, allocations: 0 / 478.6 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000624/0.1021, allocations: 385.8 kB / 479 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.948e-05/0.1022, allocations: 100.9 kB / 479.1 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/0.1023, allocations: 12 kB / 479.1 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.1024, allocations: 11.98 kB / 479.1 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.119e-05/0.1025, allocations: 19.92 kB / 479.1 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.1025, allocations: 4 kB / 479.1 MB, free: 15.37 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001391/0.1026, allocations: 143.2 kB / 479.3 MB, free: 15.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1026, allocations: 0 / 479.3 MB, free: 15.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003294/0.103, allocations: 59.95 kB / 479.3 MB, free: 15.17 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,machine.inertia.w,load.phi) * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009593/0.1039, allocations: 0.9022 MB / 480.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005562/0.1045, allocations: 286.2 kB / 480.5 MB, free: 13.94 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1045, allocations: 0 / 480.5 MB, free: 13.94 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002873/0.1048, allocations: 206.9 kB / 480.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004136/0.1052, allocations: 36.12 kB / 480.7 MB, free: 13.69 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002526/0.1078, allocations: 1.601 MB / 482.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000362/0.1082, allocations: 0.7557 MB / 483.1 MB, free: 11.24 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.161e-05/0.1083, allocations: 21.53 kB / 483.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.1084, allocations: 87.34 kB / 483.2 MB, free: 11.13 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1084, allocations: 0 / 483.2 MB, free: 11.13 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01691/0.1253, allocations: 4.204 MB / 487.4 MB, free: 7.086 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002244/0.1256, allocations: 197.7 kB / 487.6 MB, free: 6.844 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/1.942, allocations: 0 / 487.6 MB, free: 6.844 MB / 318.1 MB (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_TestDCPMMachine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1) Environment - environmentSimulation: