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.00679/0.00679, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.394/1.394, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001236/0.001236, allocations: 184.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03656/0.03656, allocations: 8.795 MB / 348.6 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00243/0.00243, allocations: 83.88 kB / 463.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1073, allocations: 51.57 MB / 0.5034 GB, free: 9.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.004124/0.1115, allocations: 2.859 MB / 0.5062 GB, free: 6.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.1127, allocations: 0.6505 MB / 0.5068 GB, free: 5.984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002643/0.113, allocations: 12 kB / 0.5068 GB, free: 5.973 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.1132, allocations: 47.5 kB / 0.5069 GB, free: 5.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002966/0.1136, allocations: 91.19 kB / 0.5069 GB, free: 5.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001905/0.1138, allocations: 83.84 kB / 0.507 GB, free: 5.754 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004388/0.1142, allocations: 378.4 kB / 0.5074 GB, free: 5.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002646/0.1145, allocations: 140.5 kB / 0.5075 GB, free: 5.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.1147, allocations: 135.5 kB / 0.5077 GB, free: 5.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002152/0.1149, allocations: 155.3 kB / 0.5078 GB, free: 4.953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.103e-05/0.115, allocations: 39.94 kB / 0.5078 GB, free: 4.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.182e-05/0.115, allocations: 36 kB / 0.5079 GB, free: 4.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.209e-05/0.1151, allocations: 71.81 kB / 0.5079 GB, free: 4.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001601/0.1153, allocations: 175.2 kB / 0.5081 GB, free: 4.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004174/0.1157, allocations: 414.6 kB / 0.5085 GB, free: 4.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1157, allocations: 0 / 0.5085 GB, free: 4.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1157, allocations: 3.938 kB / 0.5085 GB, free: 4.227 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.1157, allocations: 0 / 0.5085 GB, free: 4.227 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.0009741/0.1167, allocations: 0.5926 MB / 0.5091 GB, free: 3.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.1167, allocations: 12.03 kB / 0.5091 GB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.824e-05/0.1168, allocations: 36.56 kB / 0.5091 GB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003609/0.1172, allocations: 275.8 kB / 0.5094 GB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.1172, allocations: 25.03 kB / 0.5094 GB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.612e-05/0.1173, allocations: 32.28 kB / 0.5094 GB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005129/0.1178, allocations: 270.2 kB / 0.5097 GB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.1178, allocations: 0 / 0.5097 GB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.285e-05/0.1179, allocations: 19.98 kB / 0.5097 GB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.1179, allocations: 12 kB / 0.5097 GB, free: 2.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004559/0.1183, allocations: 206.5 kB / 0.5099 GB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001577/0.1199, allocations: 1.029 MB / 0.5109 GB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003686/0.1203, allocations: 154.5 kB / 0.5111 GB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000167/0.1205, allocations: 74.8 kB / 0.5112 GB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/0.1205, allocations: 3.938 kB / 0.5112 GB, free: 1.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.408e-05/0.1206, allocations: 46.55 kB / 0.5112 GB, free: 1.273 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.1206, allocations: 0 / 0.5112 GB, free: 1.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001394/0.122, allocations: 0.6732 MB / 0.5119 GB, free: 0.5273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.122, allocations: 59.34 kB / 0.5119 GB, free: 468 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002031/0.1222, allocations: 199.2 kB / 0.5121 GB, free: 260 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.1223, allocations: 25.7 kB / 0.5121 GB, free: 228 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.1224, allocations: 188.1 kB / 0.5123 GB, free: 36 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.454e-05/0.1224, allocations: 59.14 kB / 0.5124 GB, free: 15.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.929e-05/0.1225, allocations: 41.61 kB / 0.5124 GB, free: 15.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1227, allocations: 330.8 kB / 0.5127 GB, free: 15.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.1228, allocations: 67.95 kB / 0.5128 GB, free: 15.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.123, allocations: 96.25 kB / 0.5129 GB, free: 15.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003032/0.1233, allocations: 161.9 kB / 0.513 GB, free: 15.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1233, allocations: 0 / 0.513 GB, free: 15.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004626/0.1238, allocations: 235.8 kB / 0.5133 GB, free: 15.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.1238, allocations: 4 kB / 0.5133 GB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1238, allocations: 4.125 kB / 0.5133 GB, free: 15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001395/0.124, allocations: 24.84 kB / 0.5133 GB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.1242, allocations: 39.92 kB / 0.5133 GB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/0.1252, allocations: 1.378 MB / 0.5147 GB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.1253, allocations: 8 kB / 0.5147 GB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.1253, allocations: 8 kB / 0.5147 GB, free: 13.41 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.0001434/0.1255, allocations: 157.7 kB / 0.5148 GB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.706e-05/0.1255, allocations: 23.66 kB / 0.5149 GB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.652e-05/0.1256, allocations: 25.81 kB / 0.5149 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1256, allocations: 0 / 0.5149 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1256, allocations: 4 kB / 0.5149 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1256, allocations: 7.984 kB / 0.5149 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008591/0.1265, allocations: 0.6061 MB / 0.5155 GB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.1265, allocations: 4 kB / 0.5155 GB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.1267, allocations: 39.92 kB / 0.5155 GB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-05/0.1268, allocations: 16.84 kB / 0.5155 GB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.1268, allocations: 8 kB / 0.5156 GB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009144/0.1277, allocations: 1.371 MB / 0.5169 GB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1278, allocations: 0 / 0.5169 GB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005587/0.1283, allocations: 369.8 kB / 0.5172 GB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.969e-05/0.1284, allocations: 92.92 kB / 0.5173 GB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.1284, allocations: 4 kB / 0.5173 GB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/0.1286, allocations: 20.03 kB / 0.5174 GB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.1286, allocations: 11.98 kB / 0.5174 GB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.1286, allocations: 4 kB / 0.5174 GB, free: 10.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000114/0.1288, allocations: 148.2 kB / 0.5175 GB, free: 10.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.746e-06/0.1288, allocations: 0 / 0.5175 GB, free: 10.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003235/0.1291, allocations: 55.94 kB / 0.5176 GB, free: 10.2 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.0001088/0.1292, allocations: 111.3 kB / 0.5177 GB, free: 10.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005414/0.1298, allocations: 270.5 kB / 0.5179 GB, free: 9.801 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1298, allocations: 0 / 0.5179 GB, free: 9.801 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002823/0.1301, allocations: 191 kB / 0.5181 GB, free: 9.602 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.1305, allocations: 38.09 kB / 0.5182 GB, free: 9.566 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.1316, allocations: 0.6762 MB / 0.5188 GB, free: 8.855 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.1319, allocations: 0.7632 MB / 0.5196 GB, free: 8.062 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.032e-05/0.132, allocations: 17.55 kB / 0.5196 GB, free: 8.047 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.63e-05/0.1321, allocations: 19.44 kB / 0.5196 GB, free: 8.027 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1321, allocations: 0 / 0.5196 GB, free: 8.027 MB / 366.1 MB Notification: Performance of Templates: time 0.005527/0.1376, allocations: 2.3 MB / 0.5218 GB, free: 5.75 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)