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.001043/0.001043, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.379/1.379, allocations: 222.9 MB / 239 MB, free: 4.727 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.001249/0.001249, allocations: 196.4 kB / 289.3 MB, free: 2.453 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0334/0.0334, allocations: 8.8 MB / 348.2 MB, free: 4.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 76.98 kB / 410.6 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1019, allocations: 51.57 MB / 462.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.00378/0.1057, allocations: 2.899 MB / 465 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.1067, allocations: 0.6389 MB / 465.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.1069, allocations: 8 kB / 465.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.107, allocations: 31.7 kB / 465.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002046/0.1073, allocations: 83.38 kB / 465.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001351/0.1074, allocations: 83.77 kB / 465.9 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003148/0.1077, allocations: 378.4 kB / 466.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.108, allocations: 136.5 kB / 466.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.1081, allocations: 139.5 kB / 466.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/0.1082, allocations: 155.3 kB / 466.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.252e-05/0.1083, allocations: 36 kB / 466.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.622e-05/0.1083, allocations: 40 kB / 466.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.755e-05/0.1084, allocations: 71.77 kB / 466.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.1085, allocations: 171.2 kB / 467 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000317/0.1089, allocations: 410.9 kB / 467.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1089, allocations: 3.938 kB / 467.4 MB, free: 9.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1089, allocations: 3.938 kB / 467.4 MB, free: 9.477 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.1089, allocations: 4 kB / 467.4 MB, free: 9.473 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.0007849/0.1097, allocations: 0.5811 MB / 468 MB, free: 8.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.1097, allocations: 12.03 kB / 468 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.081e-05/0.1098, allocations: 32.56 kB / 468 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.1101, allocations: 267.7 kB / 468.3 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.1101, allocations: 29.02 kB / 468.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.103e-05/0.1101, allocations: 28.38 kB / 468.3 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004939/0.1106, allocations: 278.2 kB / 468.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.1107, allocations: 0 / 468.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.1107, allocations: 12 kB / 468.6 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1107, allocations: 8 kB / 468.6 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004169/0.1111, allocations: 210.5 kB / 468.8 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001381/0.1125, allocations: 1.048 MB / 469.9 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003232/0.1129, allocations: 150.5 kB / 470 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.113, allocations: 78.92 kB / 470.1 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.1131, allocations: 7.938 kB / 470.1 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.696e-05/0.1131, allocations: 30.56 kB / 470.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.303e-06/0.1131, allocations: 0 / 470.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001304/0.1144, allocations: 0.6775 MB / 470.8 MB, free: 5.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.1144, allocations: 63.33 kB / 470.9 MB, free: 5.711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001694/0.1146, allocations: 195.2 kB / 471.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.1146, allocations: 25.7 kB / 471.1 MB, free: 5.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.302e-05/0.1147, allocations: 184.1 kB / 471.3 MB, free: 5.297 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.168e-05/0.1148, allocations: 67.09 kB / 471.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.382e-05/0.1149, allocations: 33.72 kB / 471.4 MB, free: 5.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.115, allocations: 334.8 kB / 471.7 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.1151, allocations: 59.97 kB / 471.8 MB, free: 4.797 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.1153, allocations: 104 kB / 471.9 MB, free: 4.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002949/0.1156, allocations: 170.2 kB / 472 MB, free: 4.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.1156, allocations: 0 / 472 MB, free: 4.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004196/0.116, allocations: 234.1 kB / 472.3 MB, free: 4.262 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.1161, allocations: 4 kB / 472.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.1161, allocations: 4 kB / 472.3 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001251/0.1162, allocations: 24.78 kB / 472.3 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.1164, allocations: 56.03 kB / 472.4 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008846/0.1173, allocations: 1.371 MB / 473.7 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.1174, allocations: 16.02 kB / 473.7 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.1174, allocations: 4 kB / 473.7 MB, free: 2.641 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.0001251/0.1176, allocations: 149.7 kB / 473.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-05/0.1176, allocations: 19.75 kB / 473.9 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.105e-05/0.1177, allocations: 25.92 kB / 473.9 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1177, allocations: 4 kB / 473.9 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.1177, allocations: 0 / 473.9 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1177, allocations: 0 / 473.9 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000779/0.1185, allocations: 0.6053 MB / 474.5 MB, free: 1.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.1185, allocations: 4.062 kB / 474.5 MB, free: 1.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001957/0.1187, allocations: 43.89 kB / 474.6 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.765e-05/0.1188, allocations: 20.86 kB / 474.6 MB, free: 1.699 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.1188, allocations: 7.984 kB / 474.6 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007801/0.1196, allocations: 1.371 MB / 476 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1196, allocations: 4.031 kB / 476 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005666/0.1202, allocations: 369.9 kB / 476.4 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.98e-05/0.1202, allocations: 101 kB / 476.4 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.46e-05/0.1203, allocations: 0 / 476.4 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.1204, allocations: 19.98 kB / 476.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.24e-05/0.1205, allocations: 11.98 kB / 476.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.1205, allocations: 8 kB / 476.5 MB, free: 15.63 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001072/0.1206, allocations: 140.5 kB / 476.6 MB, free: 15.49 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1206, allocations: 0 / 476.6 MB, free: 15.49 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00031/0.1209, allocations: 56 kB / 476.7 MB, free: 15.44 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.0001022/0.121, allocations: 99.25 kB / 476.8 MB, free: 15.33 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005312/0.1216, allocations: 278.4 kB / 477 MB, free: 15.04 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1216, allocations: 0 / 477 MB, free: 15.04 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002734/0.1219, allocations: 198.9 kB / 477.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/0.1224, allocations: 44.58 kB / 477.3 MB, free: 14.8 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.1235, allocations: 0.7974 MB / 478.1 MB, free: 13.97 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.1238, allocations: 0.7593 MB / 478.8 MB, free: 13.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.216e-05/0.1239, allocations: 13.55 kB / 478.9 MB, free: 13.17 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.416e-05/0.1239, allocations: 27.36 kB / 478.9 MB, free: 13.14 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1239, allocations: 0 / 478.9 MB, free: 13.14 MB / 318.1 MB Notification: Performance of Templates: time 0.0052/0.1291, allocations: 2.221 MB / 481.1 MB, free: 10.95 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)