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.001066/0.001066, allocations: 112.4 kB / 16.37 MB, free: 6.469 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.337/1.337, allocations: 222.9 MB / 240 MB, free: 4.578 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.001307/0.001307, allocations: 199.7 kB / 290.3 MB, free: 2.293 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03434/0.03434, allocations: 8.793 MB / 349.3 MB, free: 4.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 83.41 kB / 412.5 MB, free: 41.76 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09739/0.0989, allocations: 51.56 MB / 464.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.004212/0.1031, allocations: 2.858 MB / 467 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009457/0.1041, allocations: 0.6505 MB / 467.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.1043, allocations: 8 kB / 467.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.1044, allocations: 55.5 kB / 467.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000222/0.1047, allocations: 87.19 kB / 467.7 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001601/0.1048, allocations: 91.83 kB / 467.8 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003323/0.1052, allocations: 382.3 kB / 468.2 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002369/0.1054, allocations: 132.5 kB / 468.3 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001423/0.1056, allocations: 143.5 kB / 468.5 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.1057, allocations: 151.3 kB / 468.6 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.503e-05/0.1058, allocations: 39.94 kB / 468.7 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.782e-05/0.1059, allocations: 36 kB / 468.7 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.052e-05/0.1059, allocations: 71.77 kB / 468.8 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001462/0.1061, allocations: 171.3 kB / 468.9 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003993/0.1065, allocations: 418.6 kB / 469.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.1065, allocations: 0 / 469.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1065, allocations: 3.938 kB / 469.4 MB, free: 8.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.852e-06/0.1065, allocations: 0 / 469.4 MB, free: 8.34 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.0008654/0.1074, allocations: 0.5811 MB / 469.9 MB, free: 7.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.1074, allocations: 12.03 kB / 469.9 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.46e-05/0.1075, allocations: 36.56 kB / 470 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.1079, allocations: 283.6 kB / 470.3 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.1079, allocations: 21.03 kB / 470.3 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.308e-05/0.108, allocations: 32.38 kB / 470.3 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004764/0.1084, allocations: 270.2 kB / 470.6 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.1085, allocations: 0 / 470.6 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.995e-05/0.1085, allocations: 19.98 kB / 470.6 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.1085, allocations: 11.98 kB / 470.6 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004232/0.1089, allocations: 206.5 kB / 470.8 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001464/0.1104, allocations: 1.028 MB / 471.8 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003712/0.1108, allocations: 158.4 kB / 472 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.111, allocations: 72.83 kB / 472.1 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.111, allocations: 7.922 kB / 472.1 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.111, allocations: 38.56 kB / 472.1 MB, free: 5.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.313e-06/0.1111, allocations: 4 kB / 472.1 MB, free: 5.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001487/0.1125, allocations: 0.6678 MB / 472.8 MB, free: 4.652 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.1126, allocations: 63.34 kB / 472.8 MB, free: 4.578 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001845/0.1128, allocations: 203.1 kB / 473 MB, free: 4.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.1128, allocations: 33.7 kB / 473.1 MB, free: 4.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.1129, allocations: 180.1 kB / 473.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.319e-05/0.113, allocations: 59.09 kB / 473.3 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.697e-05/0.1131, allocations: 41.7 kB / 473.3 MB, free: 4.047 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1132, allocations: 334.8 kB / 473.7 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.1133, allocations: 55.97 kB / 473.7 MB, free: 3.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.1135, allocations: 108.1 kB / 473.8 MB, free: 3.535 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003146/0.1139, allocations: 166.2 kB / 474 MB, free: 3.359 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1139, allocations: 0 / 474 MB, free: 3.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004347/0.1143, allocations: 228 kB / 474.2 MB, free: 3.129 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.1143, allocations: 8 kB / 474.2 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1143, allocations: 0 / 474.2 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001463/0.1145, allocations: 28.97 kB / 474.3 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002344/0.1147, allocations: 39.92 kB / 474.3 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001142/0.1159, allocations: 1.378 MB / 475.7 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.116, allocations: 11.98 kB / 475.7 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.388e-05/0.116, allocations: 4 kB / 475.7 MB, free: 1.516 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.0002533/0.1163, allocations: 161.7 kB / 475.8 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.277e-05/0.1164, allocations: 19.75 kB / 475.9 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.631e-05/0.1164, allocations: 21.88 kB / 475.9 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1164, allocations: 4 kB / 475.9 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.1164, allocations: 0 / 475.9 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1164, allocations: 7.984 kB / 475.9 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008669/0.1173, allocations: 0.6077 MB / 476.5 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1173, allocations: 0 / 476.5 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.1175, allocations: 35.92 kB / 476.5 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-05/0.1176, allocations: 24.84 kB / 476.6 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.1176, allocations: 0 / 476.6 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.1187, allocations: 1.374 MB / 477.9 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1187, allocations: 0 / 477.9 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005895/0.1193, allocations: 372.2 kB / 478.3 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.1194, allocations: 96.86 kB / 478.4 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.1195, allocations: 12.03 kB / 478.4 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.1196, allocations: 8 kB / 478.4 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.311e-05/0.1197, allocations: 20.06 kB / 478.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.1197, allocations: 7.938 kB / 478.4 MB, free: 14.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001194/0.1198, allocations: 140.5 kB / 478.6 MB, free: 14.36 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1198, allocations: 0 / 478.6 MB, free: 14.36 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.1202, allocations: 56 kB / 478.6 MB, free: 14.31 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.0001274/0.1203, allocations: 108.3 kB / 478.7 MB, free: 14.19 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005617/0.1209, allocations: 270.4 kB / 479 MB, free: 13.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1209, allocations: 4 kB / 479 MB, free: 13.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000268/0.1211, allocations: 190.9 kB / 479.2 MB, free: 13.71 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003751/0.1215, allocations: 35.98 kB / 479.2 MB, free: 13.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.1226, allocations: 0.6723 MB / 479.9 MB, free: 12.97 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.123, allocations: 0.7593 MB / 480.7 MB, free: 12.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.334e-05/0.123, allocations: 17.55 kB / 480.7 MB, free: 12.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.62e-05/0.1231, allocations: 19.44 kB / 480.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1231, allocations: 0 / 480.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of Templates: time 0.005475/0.1286, allocations: 2.275 MB / 483 MB, free: 9.895 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)