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.001315/0.001315, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.401/1.401, allocations: 222.9 MB / 240.1 MB, free: 4.355 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.001486/0.001486, allocations: 184.5 kB / 290.4 MB, free: 2.09 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03434/0.03434, allocations: 8.785 MB / 349.3 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 79.88 kB / 464.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.11, allocations: 51.56 MB / 0.504 GB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.005038/0.1151, allocations: 2.873 MB / 0.5068 GB, free: 6.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.1166, allocations: 0.6505 MB / 0.5075 GB, free: 5.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003086/0.1169, allocations: 4 kB / 0.5075 GB, free: 5.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002229/0.1172, allocations: 55.5 kB / 0.5075 GB, free: 5.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003463/0.1175, allocations: 95.17 kB / 0.5076 GB, free: 5.793 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002455/0.1178, allocations: 83.84 kB / 0.5077 GB, free: 5.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004865/0.1183, allocations: 378.4 kB / 0.5081 GB, free: 5.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002856/0.1186, allocations: 136.5 kB / 0.5082 GB, free: 5.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.1188, allocations: 135.5 kB / 0.5083 GB, free: 5.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002376/0.119, allocations: 163.2 kB / 0.5085 GB, free: 4.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.216e-05/0.1191, allocations: 36 kB / 0.5085 GB, free: 4.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.795e-05/0.1192, allocations: 36 kB / 0.5085 GB, free: 4.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.455e-05/0.1193, allocations: 67.83 kB / 0.5086 GB, free: 4.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.1194, allocations: 179.1 kB / 0.5088 GB, free: 4.594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004228/0.1199, allocations: 418.6 kB / 0.5092 GB, free: 4.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1199, allocations: 0 / 0.5092 GB, free: 4.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1199, allocations: 0 / 0.5092 GB, free: 4.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.1199, allocations: 0 / 0.5092 GB, free: 4.184 MB / 350.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.0009945/0.1209, allocations: 0.5849 MB / 0.5098 GB, free: 3.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.1209, allocations: 8.031 kB / 0.5098 GB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.391e-05/0.121, allocations: 36.56 kB / 0.5098 GB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003877/0.1214, allocations: 279.7 kB / 0.5101 GB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.1215, allocations: 25.03 kB / 0.5101 GB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.758e-05/0.1215, allocations: 32.28 kB / 0.5101 GB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005414/0.1221, allocations: 278.2 kB / 0.5104 GB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.1221, allocations: 0 / 0.5104 GB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.109e-05/0.1221, allocations: 12 kB / 0.5104 GB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.1222, allocations: 8 kB / 0.5104 GB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005693/0.1227, allocations: 218.4 kB / 0.5106 GB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001572/0.1243, allocations: 1.025 MB / 0.5116 GB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003643/0.1247, allocations: 150.5 kB / 0.5118 GB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.1249, allocations: 76.81 kB / 0.5118 GB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.1249, allocations: 3.938 kB / 0.5118 GB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.1249, allocations: 34.56 kB / 0.5119 GB, free: 1.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.1249, allocations: 4 kB / 0.5119 GB, free: 1.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001414/0.1264, allocations: 0.6847 MB / 0.5125 GB, free: 500 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.1264, allocations: 55.41 kB / 0.5126 GB, free: 432 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.1266, allocations: 199.2 kB / 0.5128 GB, free: 224 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.1266, allocations: 29.7 kB / 0.5128 GB, free: 188 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.1268, allocations: 184.1 kB / 0.513 GB, free: 0 / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.541e-05/0.1268, allocations: 59.3 kB / 0.513 GB, free: 15.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.315e-05/0.1269, allocations: 45.56 kB / 0.5131 GB, free: 15.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.127, allocations: 334.8 kB / 0.5134 GB, free: 15.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.1272, allocations: 55.97 kB / 0.5135 GB, free: 15.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.1274, allocations: 104.2 kB / 0.5136 GB, free: 15.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.1277, allocations: 160.2 kB / 0.5137 GB, free: 15.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1277, allocations: 0 / 0.5137 GB, free: 15.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004623/0.1282, allocations: 231.8 kB / 0.5139 GB, free: 14.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.1282, allocations: 8 kB / 0.5139 GB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1282, allocations: 4 kB / 0.5139 GB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001451/0.1284, allocations: 32.95 kB / 0.514 GB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.1286, allocations: 43.91 kB / 0.514 GB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.1297, allocations: 1.367 MB / 0.5153 GB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.1298, allocations: 11.98 kB / 0.5154 GB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.1299, allocations: 4 kB / 0.5154 GB, free: 13.36 MB / 366.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.0001468/0.13, allocations: 153.8 kB / 0.5155 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.704e-05/0.1301, allocations: 23.75 kB / 0.5155 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.801e-05/0.1301, allocations: 21.86 kB / 0.5156 GB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1301, allocations: 0 / 0.5156 GB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1301, allocations: 4 kB / 0.5156 GB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1302, allocations: 0 / 0.5156 GB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008828/0.131, allocations: 0.6099 MB / 0.5162 GB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1311, allocations: 0 / 0.5162 GB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002043/0.1313, allocations: 43.91 kB / 0.5162 GB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.66e-05/0.1314, allocations: 16.86 kB / 0.5162 GB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.1314, allocations: 4 kB / 0.5162 GB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00097/0.1324, allocations: 1.378 MB / 0.5176 GB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.1324, allocations: 0 / 0.5176 GB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006096/0.133, allocations: 373.8 kB / 0.5179 GB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.094e-05/0.1331, allocations: 96.95 kB / 0.518 GB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.1331, allocations: 7.938 kB / 0.518 GB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001523/0.1333, allocations: 19.98 kB / 0.518 GB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.499e-05/0.1333, allocations: 7.984 kB / 0.518 GB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.1333, allocations: 8 kB / 0.5181 GB, free: 10.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001251/0.1335, allocations: 148.2 kB / 0.5182 GB, free: 10.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1335, allocations: 0 / 0.5182 GB, free: 10.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003214/0.1338, allocations: 52 kB / 0.5182 GB, free: 10.16 MB / 366.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.0001692/0.134, allocations: 111.1 kB / 0.5183 GB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005326/0.1345, allocations: 269 kB / 0.5186 GB, free: 9.762 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1345, allocations: 0 / 0.5186 GB, free: 9.762 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002682/0.1348, allocations: 186.6 kB / 0.5188 GB, free: 9.566 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003842/0.1352, allocations: 38.22 kB / 0.5188 GB, free: 9.531 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.1362, allocations: 0.7043 MB / 0.5195 GB, free: 8.789 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.1365, allocations: 0.7593 MB / 0.5202 GB, free: 8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.648e-05/0.1366, allocations: 15.44 kB / 0.5203 GB, free: 7.984 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1366, allocations: 0 / 0.5203 GB, free: 7.984 MB / 366.1 MB Notification: Performance of Templates: time 0.005676/0.1423, allocations: 4.119 MB / 0.5243 GB, free: 3.863 MB / 366.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)