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: translateModel(HanserModelica.Rotational.TestDCPMMachine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.TestDCPMMachine") translateModel(HanserModelica.Rotational.TestDCPMMachine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.TestDCPMMachine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 105.6 kB / 15.98 MB, free: 6.336 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.343/1.343, allocations: 222.9 MB / 239.6 MB, free: 4.715 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.001468/0.001468, allocations: 200.3 kB / 289.9 MB, free: 2.445 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03462/0.03462, allocations: 8.798 MB / 348.9 MB, free: 4.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002267/0.002267, allocations: 80.86 kB / 411.2 MB, free: 42.29 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.104, allocations: 51.57 MB / 462.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.004736/0.1088, allocations: 2.902 MB / 465.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.1101, allocations: 0.6389 MB / 466.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002735/0.1103, allocations: 11.94 kB / 466.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002198/0.1106, allocations: 35.75 kB / 466.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003545/0.111, allocations: 87.31 kB / 466.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002037/0.1112, allocations: 75.89 kB / 466.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000515/0.1117, allocations: 374.4 kB / 466.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002914/0.112, allocations: 136.5 kB / 467.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002385/0.1123, allocations: 143.5 kB / 467.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002396/0.1125, allocations: 147.3 kB / 467.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.294e-05/0.1126, allocations: 36 kB / 467.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.4e-05/0.1126, allocations: 36 kB / 467.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.34e-05/0.1127, allocations: 79.75 kB / 467.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000187/0.1129, allocations: 171.1 kB / 467.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004007/0.1133, allocations: 331.5 kB / 468 MB, free: 9.531 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.1133, allocations: 0 / 468 MB, free: 9.531 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1134, allocations: 4 kB / 468 MB, free: 9.527 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.1134, allocations: 0 / 468 MB, free: 9.527 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.001081/0.1145, allocations: 0.5811 MB / 468.6 MB, free: 8.898 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.1145, allocations: 8.031 kB / 468.6 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.049e-05/0.1146, allocations: 32.56 kB / 468.6 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003101/0.1149, allocations: 271.7 kB / 468.9 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.1149, allocations: 29.03 kB / 468.9 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.616e-05/0.115, allocations: 32.36 kB / 468.9 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005301/0.1155, allocations: 278.2 kB / 469.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.1156, allocations: 0 / 469.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/0.1156, allocations: 12 kB / 469.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.1156, allocations: 4 kB / 469.2 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000461/0.1161, allocations: 218.4 kB / 469.4 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.1177, allocations: 1.044 MB / 470.5 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003634/0.118, allocations: 154.5 kB / 470.6 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.1182, allocations: 72.83 kB / 470.7 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.1183, allocations: 7.938 kB / 470.7 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/0.1183, allocations: 30.56 kB / 470.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.875e-06/0.1183, allocations: 0 / 470.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001394/0.1197, allocations: 0.6888 MB / 471.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.1197, allocations: 51.41 kB / 471.5 MB, free: 5.762 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.1199, allocations: 199.2 kB / 471.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.12, allocations: 25.7 kB / 471.7 MB, free: 5.527 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.1201, allocations: 196 kB / 471.9 MB, free: 5.332 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.786e-05/0.1201, allocations: 59.11 kB / 471.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.443e-05/0.1202, allocations: 37.7 kB / 472 MB, free: 5.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.1203, allocations: 330.8 kB / 472.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.1205, allocations: 59.97 kB / 472.4 MB, free: 4.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.1207, allocations: 104.7 kB / 472.5 MB, free: 4.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003345/0.121, allocations: 157.8 kB / 472.6 MB, free: 4.555 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1211, allocations: 0 / 472.6 MB, free: 4.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004811/0.1215, allocations: 242.1 kB / 472.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1216, allocations: 6.031 kB / 472.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.1216, allocations: 0 / 472.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001494/0.1217, allocations: 24.84 kB / 472.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.1219, allocations: 48.03 kB / 472.9 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/0.123, allocations: 1.375 MB / 474.3 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.1231, allocations: 16.02 kB / 474.3 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.1231, allocations: 8 kB / 474.3 MB, free: 2.691 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.0001358/0.1233, allocations: 149.7 kB / 474.5 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.688e-05/0.1233, allocations: 23.81 kB / 474.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.159e-05/0.1234, allocations: 21.86 kB / 474.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1234, allocations: 4 kB / 474.5 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1234, allocations: 0 / 474.5 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.1234, allocations: 0 / 474.5 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008825/0.1243, allocations: 0.6119 MB / 475.1 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1243, allocations: 0 / 475.1 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002105/0.1245, allocations: 39.91 kB / 475.2 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.832e-05/0.1246, allocations: 20.84 kB / 475.2 MB, free: 1.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.1247, allocations: 8 kB / 475.2 MB, free: 1.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009123/0.1256, allocations: 1.371 MB / 476.6 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1256, allocations: 4.156 kB / 476.6 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000619/0.1262, allocations: 373.7 kB / 476.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.414e-05/0.1263, allocations: 88.92 kB / 477 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.188e-05/0.1263, allocations: 12 kB / 477 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001625/0.1265, allocations: 19.97 kB / 477.1 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.646e-05/0.1265, allocations: 7.984 kB / 477.1 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.1266, allocations: 4 kB / 477.1 MB, free: 15.69 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001285/0.1267, allocations: 148.5 kB / 477.2 MB, free: 15.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1267, allocations: 0 / 477.2 MB, free: 15.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000341/0.1271, allocations: 52 kB / 477.3 MB, free: 15.49 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.0001171/0.1272, allocations: 107.2 kB / 477.4 MB, free: 15.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005751/0.1278, allocations: 276.8 kB / 477.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1278, allocations: 0 / 477.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002992/0.1281, allocations: 198.9 kB / 477.8 MB, free: 14.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004512/0.1285, allocations: 35.92 kB / 477.9 MB, free: 14.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.1298, allocations: 0.8342 MB / 478.7 MB, free: 13.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.1302, allocations: 0.7554 MB / 479.5 MB, free: 13.2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.175e-05/0.1302, allocations: 23.42 kB / 479.5 MB, free: 13.17 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1302, allocations: 0 / 479.5 MB, free: 13.17 MB / 318.1 MB Notification: Performance of Templates: time 0.006202/0.1364, allocations: 4.101 MB / 483.6 MB, free: 9.082 MB / 318.1 MB make -j1 -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.makefile (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 & ./HanserModelica_HanserModelica.Rotational.TestDCPMMachine -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)