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.001004/0.001004, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.382/1.382, allocations: 223.3 MB / 239.4 MB, free: 5.535 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.001106/0.001107, allocations: 176.5 kB / 290.6 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03369/0.03369, allocations: 8.794 MB / 350.5 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000593/0.0005928, allocations: 9.672 kB / 413.9 MB, free: 42.78 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1112, allocations: 52.57 MB / 466.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.003641/0.1149, allocations: 2.525 MB / 469 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.1164, allocations: 0.6427 MB / 469.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.1166, allocations: 8 kB / 469.7 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001656/0.1168, allocations: 39.7 kB / 469.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002582/0.117, allocations: 75.38 kB / 469.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001679/0.1172, allocations: 75.88 kB / 469.8 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003721/0.1176, allocations: 358.4 kB / 470.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000241/0.1178, allocations: 112.1 kB / 470.3 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002229/0.1181, allocations: 111.5 kB / 470.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.1183, allocations: 135.3 kB / 470.5 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.779e-05/0.1183, allocations: 16 kB / 470.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.461e-05/0.1184, allocations: 16 kB / 470.6 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.346e-05/0.1184, allocations: 51.77 kB / 470.6 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.1186, allocations: 176.9 kB / 470.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005311/0.1192, allocations: 382.8 kB / 471.2 MB, free: 8.336 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.227e-05/0.1192, allocations: 3.938 kB / 471.2 MB, free: 8.332 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1192, allocations: 3.938 kB / 471.2 MB, free: 8.328 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.1192, allocations: 0 / 471.2 MB, free: 8.328 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.001033/0.1203, allocations: 0.5499 MB / 471.7 MB, free: 7.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.817e-05/0.1203, allocations: 8.031 kB / 471.7 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.619e-05/0.1204, allocations: 70.72 kB / 471.8 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.018e-05/0.1205, allocations: 32.56 kB / 471.8 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004379/0.121, allocations: 267.7 kB / 472.1 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.456e-05/0.121, allocations: 29.03 kB / 472.1 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.204e-05/0.1211, allocations: 28.38 kB / 472.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006139/0.1217, allocations: 282 kB / 472.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.1218, allocations: 4 kB / 472.4 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.1218, allocations: 8 kB / 472.4 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.1218, allocations: 8 kB / 472.5 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005065/0.1223, allocations: 222.5 kB / 472.7 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001817/0.1242, allocations: 1.056 MB / 473.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003801/0.1246, allocations: 154.5 kB / 473.9 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001934/0.1248, allocations: 88.75 kB / 474 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.1248, allocations: 4 kB / 474 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.1248, allocations: 30.56 kB / 474 MB, free: 5.312 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.994e-06/0.1248, allocations: 0 / 474 MB, free: 5.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0015/0.1263, allocations: 0.7183 MB / 474.7 MB, free: 4.523 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.1264, allocations: 63.33 kB / 474.8 MB, free: 4.449 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002534/0.1267, allocations: 195.2 kB / 475 MB, free: 4.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.1267, allocations: 25.7 kB / 475 MB, free: 4.219 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.1269, allocations: 184.1 kB / 475.2 MB, free: 4.035 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.275e-05/0.1269, allocations: 63.09 kB / 475.2 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.706e-05/0.127, allocations: 17.72 kB / 475.3 MB, free: 3.949 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1271, allocations: 334.8 kB / 475.6 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/0.1273, allocations: 67.97 kB / 475.6 MB, free: 3.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.1275, allocations: 110.8 kB / 475.8 MB, free: 3.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003816/0.1279, allocations: 177.9 kB / 475.9 MB, free: 3.238 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.128, allocations: 4 kB / 475.9 MB, free: 3.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005246/0.1285, allocations: 238.1 kB / 476.2 MB, free: 2.992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.1285, allocations: 4 kB / 476.2 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.1285, allocations: 8.062 kB / 476.2 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00017/0.1287, allocations: 24.84 kB / 476.2 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.1289, allocations: 47.91 kB / 476.2 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001185/0.1301, allocations: 1.272 MB / 477.5 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.1303, allocations: 12.03 kB / 477.5 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.04e-05/0.1303, allocations: 11.98 kB / 477.5 MB, free: 1.477 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.0002057/0.1305, allocations: 155.6 kB / 477.7 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.871e-05/0.1306, allocations: 15.81 kB / 477.7 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.687e-05/0.1306, allocations: 21.81 kB / 477.7 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1306, allocations: 4 kB / 477.7 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1306, allocations: 0 / 477.7 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.1307, allocations: 7.922 kB / 477.7 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009304/0.1316, allocations: 0.6179 MB / 478.4 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.1316, allocations: 0 / 478.4 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002012/0.1318, allocations: 43.92 kB / 478.4 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.168e-05/0.1319, allocations: 24.91 kB / 478.4 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/0.1319, allocations: 8 kB / 478.4 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009001/0.1328, allocations: 1.272 MB / 479.7 MB, free: 15.1 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.294e-05/0.1329, allocations: 7.969 kB / 479.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006262/0.1335, allocations: 395.6 kB / 480.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.253e-05/0.1336, allocations: 88.92 kB / 480.2 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/0.1336, allocations: 11.94 kB / 480.2 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.1338, allocations: 16.03 kB / 480.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.877e-05/0.1338, allocations: 15.98 kB / 480.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-05/0.1338, allocations: 4 kB / 480.2 MB, free: 14.53 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001316/0.134, allocations: 144.5 kB / 480.4 MB, free: 14.39 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.134, allocations: 0 / 480.4 MB, free: 14.39 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003309/0.1343, allocations: 56 kB / 480.4 MB, free: 14.34 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.0009538/0.1353, allocations: 0.9312 MB / 481.4 MB, free: 13.37 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000592/0.1359, allocations: 280.7 kB / 481.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.1359, allocations: 4 kB / 481.6 MB, free: 13.08 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003507/0.1363, allocations: 194.5 kB / 481.8 MB, free: 12.88 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004339/0.1367, allocations: 32.36 kB / 481.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003502/0.1402, allocations: 2.776 MB / 484.6 MB, free: 9.949 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.1406, allocations: 0.7557 MB / 485.4 MB, free: 9.164 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.981e-05/0.1406, allocations: 25.53 kB / 485.4 MB, free: 9.141 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.1408, allocations: 75.41 kB / 485.5 MB, free: 9.066 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1408, allocations: 3.938 kB / 485.5 MB, free: 9.062 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01541/0.1562, allocations: 4.239 MB / 489.7 MB, free: 4.965 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/0.1564, allocations: 211.1 kB / 489.9 MB, free: 4.715 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/1.867, allocations: 3.938 kB / 489.9 MB, free: 4.711 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)