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-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.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.001138/0.001139, allocations: 108 kB / 15.61 MB, free: 148 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.448/1.448, allocations: 222.9 MB / 239.2 MB, free: 4.602 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.001471/0.001471, allocations: 191.6 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03473/0.03473, allocations: 8.798 MB / 348.5 MB, free: 4.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 77.23 kB / 411.2 MB, free: 42.19 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08225/0.08387, allocations: 51.56 MB / 462.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.004749/0.08867, allocations: 2.86 MB / 465.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.09009, allocations: 0.6622 MB / 466.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003147/0.09043, allocations: 7.938 kB / 466.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002431/0.09071, allocations: 55.5 kB / 466.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004326/0.09116, allocations: 87.19 kB / 466.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002709/0.09144, allocations: 91.84 kB / 466.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005728/0.09203, allocations: 374.5 kB / 466.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003135/0.09235, allocations: 136.5 kB / 467 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002709/0.09263, allocations: 139.5 kB / 467.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000242/0.09288, allocations: 147.4 kB / 467.3 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.638e-05/0.09295, allocations: 39.94 kB / 467.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.976e-05/0.09304, allocations: 36 kB / 467.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.963e-05/0.09314, allocations: 71.77 kB / 467.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002039/0.09335, allocations: 175.2 kB / 467.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005285/0.09388, allocations: 406.9 kB / 468 MB, free: 9.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.09391, allocations: 4 kB / 468 MB, free: 9.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.09392, allocations: 0 / 468 MB, free: 9.105 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.076e-05/0.09395, allocations: 0 / 468 MB, free: 9.105 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.001503/0.09546, allocations: 0.5927 MB / 468.6 MB, free: 8.465 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.426e-05/0.09554, allocations: 8.031 kB / 468.6 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001394/0.09569, allocations: 70.7 kB / 468.7 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.09582, allocations: 32.56 kB / 468.7 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005129/0.09634, allocations: 275.7 kB / 469 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.09639, allocations: 21.03 kB / 469 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.551e-05/0.09648, allocations: 36.38 kB / 469 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008367/0.09732, allocations: 274 kB / 469.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.904e-05/0.09737, allocations: 0 / 469.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.583e-05/0.09743, allocations: 16 kB / 469.3 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.09746, allocations: 8 kB / 469.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007157/0.09818, allocations: 206.5 kB / 469.5 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002677/0.1009, allocations: 1.048 MB / 470.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005963/0.1015, allocations: 154.5 kB / 470.7 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002619/0.1018, allocations: 76.77 kB / 470.8 MB, free: 6.121 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.1018, allocations: 4 kB / 470.8 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.89e-05/0.1019, allocations: 34.56 kB / 470.8 MB, free: 6.074 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.234e-06/0.1019, allocations: 3.938 kB / 470.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002061/0.1039, allocations: 0.6849 MB / 471.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.104, allocations: 55.41 kB / 471.6 MB, free: 5.246 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003194/0.1043, allocations: 195.2 kB / 471.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.1044, allocations: 29.7 kB / 471.8 MB, free: 5.012 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.1046, allocations: 192 kB / 472 MB, free: 4.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.03e-05/0.1047, allocations: 55.17 kB / 472 MB, free: 4.766 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.1048, allocations: 37.7 kB / 472.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.105, allocations: 330.8 kB / 472.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002449/0.1052, allocations: 59.97 kB / 472.5 MB, free: 4.332 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002768/0.1055, allocations: 104.1 kB / 472.6 MB, free: 4.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000524/0.1061, allocations: 166.4 kB / 472.7 MB, free: 4.039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1061, allocations: 3.938 kB / 472.7 MB, free: 4.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007053/0.1068, allocations: 230.1 kB / 472.9 MB, free: 3.801 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.1068, allocations: 4 kB / 473 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.1068, allocations: 4 kB / 473 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002241/0.1071, allocations: 20.84 kB / 473 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002948/0.1074, allocations: 52.03 kB / 473 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001438/0.1088, allocations: 1.367 MB / 474.4 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.1091, allocations: 16.02 kB / 474.4 MB, free: 2.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/0.1091, allocations: 4 kB / 474.4 MB, free: 2.191 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 (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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002121/0.1093, allocations: 154.3 kB / 474.6 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.107e-05/0.1094, allocations: 19.81 kB / 474.6 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.432e-05/0.1095, allocations: 29.86 kB / 474.6 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.1095, allocations: 4 kB / 474.6 MB, free: 1.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1095, allocations: 0 / 474.6 MB, free: 1.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1095, allocations: 3.984 kB / 474.6 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001255/0.1108, allocations: 0.6052 MB / 475.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1108, allocations: 0 / 475.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003186/0.1112, allocations: 43.91 kB / 475.3 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001121/0.1113, allocations: 20.84 kB / 475.3 MB, free: 1.242 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.1113, allocations: 8 kB / 475.3 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001278/0.1126, allocations: 1.367 MB / 476.7 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.1126, allocations: 4.188 kB / 476.7 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009178/0.1136, allocations: 379.8 kB / 477 MB, free: 15.33 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.872e-05/0.1137, allocations: 92.92 kB / 477.1 MB, free: 15.22 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.16e-05/0.1137, allocations: 8 kB / 477.1 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.114, allocations: 11.98 kB / 477.1 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.396e-05/0.1141, allocations: 15.98 kB / 477.2 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.1141, allocations: 0 / 477.2 MB, free: 15.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001882/0.1143, allocations: 144.5 kB / 477.3 MB, free: 15.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1143, allocations: 0 / 477.3 MB, free: 15.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005857/0.1149, allocations: 63.94 kB / 477.4 MB, free: 14.98 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 (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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001429/0.1163, allocations: 0.9128 MB / 478.3 MB, free: 14.03 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009322/0.1173, allocations: 270.5 kB / 478.5 MB, free: 13.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1173, allocations: 0 / 478.5 MB, free: 13.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004786/0.1178, allocations: 191 kB / 478.7 MB, free: 13.55 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007381/0.1186, allocations: 37.95 kB / 478.8 MB, free: 13.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00565/0.1242, allocations: 2.555 MB / 481.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.1247, allocations: 0.7632 MB / 482.1 MB, free: 10.05 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001585/0.1249, allocations: 17.55 kB / 482.1 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001815/0.1251, allocations: 83.41 kB / 482.2 MB, free: 9.945 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1251, allocations: 0 / 482.2 MB, free: 9.945 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03494/0.1601, allocations: 4.573 MB / 486.8 MB, free: 5.465 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.257/9.417, allocations: 7.109 kB / 486.8 MB, free: 5.461 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/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)