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.001009/0.001008, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.447/1.447, allocations: 223.3 MB / 239.4 MB, free: 5.5 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.001227/0.001227, allocations: 187.4 kB / 290.6 MB, free: 2.18 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03232/0.03232, allocations: 8.814 MB / 350.5 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000397/0.000397, allocations: 12.53 kB / 413.8 MB, free: 42.7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1018, allocations: 52.56 MB / 466.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.002672/0.1045, allocations: 2.525 MB / 468.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.1056, allocations: 0.6467 MB / 469.5 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.1058, allocations: 4 kB / 469.5 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000124/0.1059, allocations: 35.7 kB / 469.6 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002068/0.1061, allocations: 79.38 kB / 469.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001524/0.1063, allocations: 75.88 kB / 469.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003244/0.1066, allocations: 362.4 kB / 470.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002103/0.1069, allocations: 112.1 kB / 470.2 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.107, allocations: 111.5 kB / 470.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.1072, allocations: 135.3 kB / 470.4 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.675e-05/0.1072, allocations: 16 kB / 470.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.756e-05/0.1073, allocations: 20 kB / 470.5 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.805e-05/0.1073, allocations: 51.77 kB / 470.5 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.1075, allocations: 172.9 kB / 470.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003241/0.1078, allocations: 382.8 kB / 471.1 MB, free: 8.438 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.1078, allocations: 7.938 kB / 471.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.554e-06/0.1078, allocations: 0 / 471.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1078, allocations: 3.938 kB / 471.1 MB, free: 8.426 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.0007767/0.1086, allocations: 0.5343 MB / 471.6 MB, free: 7.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.1086, allocations: 12.03 kB / 471.6 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.081e-05/0.1087, allocations: 32.56 kB / 471.7 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002759/0.109, allocations: 283.6 kB / 471.9 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.109, allocations: 17.03 kB / 472 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.1091, allocations: 28.38 kB / 472 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005034/0.1096, allocations: 282.2 kB / 472.3 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.1096, allocations: 0 / 472.3 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.223e-05/0.1097, allocations: 15.98 kB / 472.3 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.1097, allocations: 8 kB / 472.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004642/0.1101, allocations: 226.5 kB / 472.5 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.1117, allocations: 1.044 MB / 473.5 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003535/0.1121, allocations: 158.5 kB / 473.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.1123, allocations: 88.81 kB / 473.8 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.1123, allocations: 3.938 kB / 473.8 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.1123, allocations: 34.56 kB / 473.8 MB, free: 5.492 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.1123, allocations: 0 / 473.8 MB, free: 5.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001356/0.1137, allocations: 0.7124 MB / 474.5 MB, free: 4.707 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.108e-05/0.1137, allocations: 55.34 kB / 474.6 MB, free: 4.641 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.1139, allocations: 203.1 kB / 474.8 MB, free: 4.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.114, allocations: 25.7 kB / 474.8 MB, free: 4.402 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.1141, allocations: 188.1 kB / 475 MB, free: 4.215 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.431e-05/0.1141, allocations: 55.25 kB / 475 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.259e-05/0.1142, allocations: 25.7 kB / 475.1 MB, free: 4.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1143, allocations: 330.8 kB / 475.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.1145, allocations: 63.97 kB / 475.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/0.1147, allocations: 118.7 kB / 475.6 MB, free: 3.605 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003407/0.115, allocations: 182.2 kB / 475.8 MB, free: 3.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.115, allocations: 0 / 475.8 MB, free: 3.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005047/0.1155, allocations: 238.2 kB / 476 MB, free: 3.172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.1156, allocations: 8 kB / 476 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.1156, allocations: 3.984 kB / 476 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000165/0.1158, allocations: 20.86 kB / 476 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.116, allocations: 55.84 kB / 476.1 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/0.1171, allocations: 1.268 MB / 477.3 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.1173, allocations: 16.02 kB / 477.4 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.1173, allocations: 12.16 kB / 477.4 MB, free: 1.652 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.0001944/0.1175, allocations: 143.1 kB / 477.5 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.51e-05/0.1176, allocations: 19.75 kB / 477.5 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.37e-05/0.1176, allocations: 21.86 kB / 477.5 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1176, allocations: 3.938 kB / 477.6 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1176, allocations: 4 kB / 477.6 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.1177, allocations: 3.938 kB / 477.6 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000984/0.1186, allocations: 0.6218 MB / 478.2 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1187, allocations: 0 / 478.2 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/0.1189, allocations: 47.97 kB / 478.2 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.493e-05/0.119, allocations: 20.84 kB / 478.2 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.119, allocations: 8 kB / 478.3 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009993/0.12, allocations: 1.276 MB / 479.5 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.12, allocations: 3.984 kB / 479.5 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006073/0.1206, allocations: 392 kB / 479.9 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.148e-05/0.1207, allocations: 92.95 kB / 480 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.1207, allocations: 8 kB / 480 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/0.1209, allocations: 23.86 kB / 480 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.1209, allocations: 15.98 kB / 480.1 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.121, allocations: 4 kB / 480.1 MB, free: 14.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001191/0.1211, allocations: 140.5 kB / 480.2 MB, free: 14.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1211, allocations: 0 / 480.2 MB, free: 14.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003122/0.1214, allocations: 60 kB / 480.3 MB, free: 14.51 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.0001016/0.1215, allocations: 95.78 kB / 480.4 MB, free: 14.41 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005434/0.1221, allocations: 285.6 kB / 480.6 MB, free: 14.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1221, allocations: 4.062 kB / 480.6 MB, free: 14.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002743/0.1224, allocations: 194.6 kB / 480.8 MB, free: 13.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004473/0.1228, allocations: 41.48 kB / 480.9 MB, free: 13.87 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.1242, allocations: 0.8806 MB / 481.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003539/0.1246, allocations: 0.7673 MB / 482.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.111e-05/0.1247, allocations: 13.55 kB / 482.5 MB, free: 12.15 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.669e-05/0.1247, allocations: 15.44 kB / 482.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1248, allocations: 0 / 482.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of Templates: time 0.005039/0.1298, allocations: 2.1 MB / 484.6 MB, free: 10.06 MB / 318.1 MB make -j1 -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: