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.007715/0.007715, allocations: 104.8 kB / 15.74 MB, free: 6.035 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.478/1.478, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.00131/0.00131, allocations: 184.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03457/0.03457, allocations: 8.803 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 76.16 kB / 463.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1137, allocations: 51.56 MB / 0.5034 GB, free: 9.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.003761/0.1175, allocations: 2.867 MB / 0.5062 GB, free: 6.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.1185, allocations: 0.6583 MB / 0.5068 GB, free: 6.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.1187, allocations: 4 kB / 0.5068 GB, free: 6.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001578/0.1188, allocations: 47.52 kB / 0.5069 GB, free: 6.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002356/0.1191, allocations: 99.17 kB / 0.507 GB, free: 5.938 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001576/0.1193, allocations: 83.84 kB / 0.507 GB, free: 5.855 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000347/0.1196, allocations: 378.4 kB / 0.5074 GB, free: 5.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.1198, allocations: 140.5 kB / 0.5075 GB, free: 5.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.12, allocations: 139.5 kB / 0.5077 GB, free: 5.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001685/0.1202, allocations: 151.3 kB / 0.5078 GB, free: 5.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.691e-05/0.1202, allocations: 40 kB / 0.5078 GB, free: 5.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.644e-05/0.1203, allocations: 36 kB / 0.5079 GB, free: 4.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.037e-05/0.1204, allocations: 75.81 kB / 0.5079 GB, free: 4.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.1205, allocations: 171.1 kB / 0.5081 GB, free: 4.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003662/0.1209, allocations: 418.6 kB / 0.5085 GB, free: 4.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1209, allocations: 0 / 0.5085 GB, free: 4.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1209, allocations: 0 / 0.5085 GB, free: 4.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.1209, allocations: 0 / 0.5085 GB, free: 4.328 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.0008399/0.1218, allocations: 0.5927 MB / 0.5091 GB, free: 3.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.1218, allocations: 8.031 kB / 0.5091 GB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.434e-05/0.1219, allocations: 36.56 kB / 0.5091 GB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003515/0.1223, allocations: 271.8 kB / 0.5094 GB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.1223, allocations: 21.03 kB / 0.5094 GB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.867e-05/0.1223, allocations: 44.25 kB / 0.5095 GB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000481/0.1228, allocations: 266.2 kB / 0.5097 GB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.1229, allocations: 4 kB / 0.5097 GB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.1229, allocations: 16 kB / 0.5097 GB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.1229, allocations: 8 kB / 0.5097 GB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004335/0.1233, allocations: 210.4 kB / 0.5099 GB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001465/0.1248, allocations: 1.029 MB / 0.5109 GB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003635/0.1252, allocations: 154.5 kB / 0.5111 GB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.1254, allocations: 72.83 kB / 0.5112 GB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.1254, allocations: 7.938 kB / 0.5112 GB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.1254, allocations: 38.56 kB / 0.5112 GB, free: 1.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.313e-06/0.1254, allocations: 0 / 0.5112 GB, free: 1.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001329/0.1268, allocations: 0.6866 MB / 0.5119 GB, free: 0.625 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.1268, allocations: 51.41 kB / 0.5119 GB, free: 0.5625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.127, allocations: 199.2 kB / 0.5121 GB, free: 368 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.127, allocations: 29.7 kB / 0.5121 GB, free: 332 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.1271, allocations: 184.1 kB / 0.5123 GB, free: 144 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.129e-05/0.1272, allocations: 59.14 kB / 0.5124 GB, free: 84 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.155e-05/0.1273, allocations: 41.61 kB / 0.5124 GB, free: 36 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1274, allocations: 334.8 kB / 0.5127 GB, free: 15.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.1275, allocations: 59.97 kB / 0.5128 GB, free: 15.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.1277, allocations: 96.25 kB / 0.5129 GB, free: 15.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003049/0.128, allocations: 165.8 kB / 0.513 GB, free: 15.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.128, allocations: 0 / 0.513 GB, free: 15.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004442/0.1285, allocations: 239.9 kB / 0.5133 GB, free: 15.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.1285, allocations: 4 kB / 0.5133 GB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.1285, allocations: 0 / 0.5133 GB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001357/0.1287, allocations: 24.84 kB / 0.5133 GB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.1289, allocations: 43.91 kB / 0.5133 GB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009594/0.1298, allocations: 1.371 MB / 0.5147 GB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.13, allocations: 12.02 kB / 0.5147 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.13, allocations: 8.156 kB / 0.5147 GB, free: 13.51 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.0001358/0.1301, allocations: 153.7 kB / 0.5148 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.289e-05/0.1302, allocations: 19.75 kB / 0.5149 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.567e-05/0.1302, allocations: 25.86 kB / 0.5149 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.1302, allocations: 4 kB / 0.5149 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1302, allocations: 0 / 0.5149 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.1303, allocations: 0 / 0.5149 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008322/0.1311, allocations: 0.6062 MB / 0.5155 GB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.1311, allocations: 4 kB / 0.5155 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001938/0.1313, allocations: 43.91 kB / 0.5155 GB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.165e-05/0.1314, allocations: 20.84 kB / 0.5155 GB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.1314, allocations: 4 kB / 0.5155 GB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009253/0.1323, allocations: 1.379 MB / 0.5169 GB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1324, allocations: 0 / 0.5169 GB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005822/0.1329, allocations: 381.5 kB / 0.5173 GB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.041e-05/0.133, allocations: 96.92 kB / 0.5173 GB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/0.133, allocations: 4 kB / 0.5174 GB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.1332, allocations: 19.97 kB / 0.5174 GB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.024e-05/0.1333, allocations: 11.98 kB / 0.5174 GB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.1333, allocations: 4 kB / 0.5174 GB, free: 10.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001154/0.1334, allocations: 148.2 kB / 0.5175 GB, free: 10.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.432e-06/0.1334, allocations: 0 / 0.5175 GB, free: 10.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003084/0.1337, allocations: 55.94 kB / 0.5176 GB, free: 10.29 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.0001074/0.1338, allocations: 107.2 kB / 0.5177 GB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005473/0.1344, allocations: 270.5 kB / 0.5179 GB, free: 9.898 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1344, allocations: 0 / 0.5179 GB, free: 9.898 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.1347, allocations: 190.8 kB / 0.5181 GB, free: 9.699 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.1351, allocations: 36.28 kB / 0.5182 GB, free: 9.668 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.1362, allocations: 0.6803 MB / 0.5188 GB, free: 8.953 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.1365, allocations: 0.7554 MB / 0.5196 GB, free: 8.168 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.129e-05/0.1366, allocations: 21.53 kB / 0.5196 GB, free: 8.148 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.312e-05/0.1366, allocations: 15.44 kB / 0.5196 GB, free: 8.133 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1366, allocations: 0 / 0.5196 GB, free: 8.133 MB / 366.1 MB Notification: Performance of Templates: time 0.005571/0.1422, allocations: 2.299 MB / 0.5218 GB, free: 5.855 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)