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.001129/0.001129, allocations: 105 kB / 16.41 MB, free: 6.465 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.412/1.412, allocations: 222.9 MB / 240.1 MB, free: 4.34 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.001501/0.001501, allocations: 196.5 kB / 290.4 MB, free: 2.066 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03412/0.03412, allocations: 8.797 MB / 349.3 MB, free: 4.543 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 75.88 kB / 464.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1067, allocations: 51.56 MB / 0.504 GB, free: 9.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.00443/0.1112, allocations: 2.876 MB / 0.5068 GB, free: 6.543 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.1127, allocations: 0.6466 MB / 0.5075 GB, free: 5.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003222/0.113, allocations: 8 kB / 0.5075 GB, free: 5.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002546/0.1133, allocations: 59.44 kB / 0.5075 GB, free: 5.824 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000422/0.1137, allocations: 91.17 kB / 0.5076 GB, free: 5.734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000258/0.114, allocations: 79.92 kB / 0.5077 GB, free: 5.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005371/0.1146, allocations: 378.4 kB / 0.5081 GB, free: 5.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00029/0.1149, allocations: 136.5 kB / 0.5082 GB, free: 5.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002322/0.1151, allocations: 143.5 kB / 0.5083 GB, free: 5.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002452/0.1154, allocations: 147.4 kB / 0.5085 GB, free: 4.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.692e-05/0.1154, allocations: 39.94 kB / 0.5085 GB, free: 4.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.333e-05/0.1155, allocations: 36 kB / 0.5085 GB, free: 4.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.721e-05/0.1156, allocations: 71.77 kB / 0.5086 GB, free: 4.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000182/0.1158, allocations: 179.2 kB / 0.5088 GB, free: 4.539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004643/0.1163, allocations: 414.6 kB / 0.5092 GB, free: 4.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.1163, allocations: 4 kB / 0.5092 GB, free: 4.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.1163, allocations: 0 / 0.5092 GB, free: 4.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.665e-05/0.1163, allocations: 0 / 0.5092 GB, free: 4.129 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.001052/0.1174, allocations: 0.5911 MB / 0.5098 GB, free: 3.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.1174, allocations: 15.97 kB / 0.5098 GB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.183e-05/0.1175, allocations: 32.56 kB / 0.5098 GB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004508/0.118, allocations: 267.8 kB / 0.5101 GB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.118, allocations: 21.03 kB / 0.5101 GB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.15e-05/0.1181, allocations: 36.28 kB / 0.5101 GB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005418/0.1186, allocations: 278.1 kB / 0.5104 GB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/0.1186, allocations: 4 kB / 0.5104 GB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.1187, allocations: 12 kB / 0.5104 GB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.1187, allocations: 8 kB / 0.5104 GB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004615/0.1192, allocations: 214.5 kB / 0.5106 GB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.1209, allocations: 1.032 MB / 0.5116 GB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003721/0.1212, allocations: 142.5 kB / 0.5117 GB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.1214, allocations: 82.92 kB / 0.5118 GB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.1215, allocations: 3.938 kB / 0.5118 GB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.1215, allocations: 42.56 kB / 0.5119 GB, free: 1.184 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.1215, allocations: 0 / 0.5119 GB, free: 1.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001489/0.123, allocations: 0.6726 MB / 0.5125 GB, free: 448 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.1231, allocations: 63.41 kB / 0.5126 GB, free: 372 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.1233, allocations: 191.2 kB / 0.5128 GB, free: 172 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/0.1233, allocations: 33.7 kB / 0.5128 GB, free: 132 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.1235, allocations: 184 kB / 0.513 GB, free: 15.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.853e-05/0.1235, allocations: 55.19 kB / 0.513 GB, free: 15.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.497e-05/0.1236, allocations: 41.56 kB / 0.5131 GB, free: 15.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1237, allocations: 338.8 kB / 0.5134 GB, free: 15.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.1239, allocations: 63.91 kB / 0.5135 GB, free: 15.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.1241, allocations: 100.2 kB / 0.5136 GB, free: 15.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003257/0.1244, allocations: 164.2 kB / 0.5137 GB, free: 15.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1244, allocations: 0 / 0.5137 GB, free: 15.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004636/0.1249, allocations: 227.6 kB / 0.5139 GB, free: 14.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.1249, allocations: 8 kB / 0.5139 GB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.125, allocations: 8.125 kB / 0.5139 GB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001553/0.1251, allocations: 24.84 kB / 0.514 GB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.1253, allocations: 47.91 kB / 0.514 GB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001104/0.1264, allocations: 1.367 MB / 0.5153 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.1266, allocations: 11.98 kB / 0.5154 GB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.1266, allocations: 8 kB / 0.5154 GB, free: 13.31 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.0001749/0.1268, allocations: 149.8 kB / 0.5155 GB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.792e-05/0.1269, allocations: 23.66 kB / 0.5155 GB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.293e-05/0.1269, allocations: 25.86 kB / 0.5156 GB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1269, allocations: 0 / 0.5156 GB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1269, allocations: 0 / 0.5156 GB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.127, allocations: 0 / 0.5156 GB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009581/0.1279, allocations: 0.614 MB / 0.5162 GB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1279, allocations: 0 / 0.5162 GB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002118/0.1282, allocations: 35.97 kB / 0.5162 GB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.241e-05/0.1282, allocations: 20.86 kB / 0.5162 GB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.1283, allocations: 3.984 kB / 0.5162 GB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009403/0.1292, allocations: 1.371 MB / 0.5176 GB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1292, allocations: 4 kB / 0.5176 GB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005826/0.1298, allocations: 378.6 kB / 0.5179 GB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.06e-05/0.1299, allocations: 92.95 kB / 0.518 GB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.1299, allocations: 8 kB / 0.518 GB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001523/0.1301, allocations: 11.98 kB / 0.518 GB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.382e-05/0.1302, allocations: 19.92 kB / 0.518 GB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.1302, allocations: 4 kB / 0.518 GB, free: 10.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000129/0.1303, allocations: 148.2 kB / 0.5182 GB, free: 10.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1303, allocations: 0 / 0.5182 GB, free: 10.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003456/0.1307, allocations: 56 kB / 0.5182 GB, free: 10.11 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.0001208/0.1308, allocations: 107.2 kB / 0.5183 GB, free: 9.988 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005875/0.1314, allocations: 270.4 kB / 0.5186 GB, free: 9.711 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.1314, allocations: 4 kB / 0.5186 GB, free: 9.707 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002862/0.1317, allocations: 191 kB / 0.5188 GB, free: 9.508 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004/0.1321, allocations: 38.08 kB / 0.5188 GB, free: 9.473 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.1333, allocations: 0.7091 MB / 0.5195 GB, free: 8.723 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003224/0.1337, allocations: 0.7554 MB / 0.5203 GB, free: 7.938 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.63e-05/0.1337, allocations: 19.44 kB / 0.5203 GB, free: 7.918 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1337, allocations: 4 kB / 0.5203 GB, free: 7.914 MB / 366.1 MB Notification: Performance of Templates: time 0.006787/0.1405, allocations: 4.111 MB / 0.5243 GB, free: 3.805 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)