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.00132/0.00132, allocations: 107.9 kB / 16.37 MB, free: 6.477 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.451/1.451, allocations: 222.9 MB / 240 MB, free: 4.57 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.001297/0.001297, allocations: 188.5 kB / 290.3 MB, free: 2.285 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03383/0.03383, allocations: 8.806 MB / 349.3 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 77.8 kB / 412.5 MB, free: 41.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09453/0.09604, allocations: 51.57 MB / 464.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.004349/0.1004, allocations: 2.85 MB / 466.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.1016, allocations: 0.67 MB / 467.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.1018, allocations: 4 kB / 467.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.102, allocations: 47.52 kB / 467.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002342/0.1022, allocations: 95.17 kB / 467.8 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001669/0.1024, allocations: 83.84 kB / 467.8 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003657/0.1028, allocations: 382.3 kB / 468.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002601/0.1031, allocations: 140.5 kB / 468.4 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.1032, allocations: 135.5 kB / 468.5 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.1034, allocations: 163.2 kB / 468.6 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.732e-05/0.1035, allocations: 36 kB / 468.7 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.925e-05/0.1035, allocations: 36 kB / 468.7 MB, free: 9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.288e-05/0.1036, allocations: 79.75 kB / 468.8 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.1037, allocations: 163.3 kB / 469 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003664/0.1041, allocations: 414.5 kB / 469.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1041, allocations: 0 / 469.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1041, allocations: 0 / 469.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.615e-06/0.1042, allocations: 4 kB / 469.4 MB, free: 8.352 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.0009552/0.1051, allocations: 0.5928 MB / 470 MB, free: 7.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.1052, allocations: 8.031 kB / 470 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.022e-05/0.1052, allocations: 32.56 kB / 470 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004023/0.1057, allocations: 271.7 kB / 470.3 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.919e-05/0.1057, allocations: 25.03 kB / 470.3 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.278e-05/0.1058, allocations: 32.36 kB / 470.3 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005286/0.1063, allocations: 274.2 kB / 470.6 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.1063, allocations: 0 / 470.6 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.004e-05/0.1064, allocations: 16 kB / 470.6 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.1064, allocations: 4 kB / 470.6 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004487/0.1068, allocations: 214.5 kB / 470.8 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.1085, allocations: 1.032 MB / 471.8 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003706/0.1088, allocations: 150.5 kB / 472 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.109, allocations: 80.81 kB / 472.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.1091, allocations: 3.938 kB / 472.1 MB, free: 5.457 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.1091, allocations: 34.56 kB / 472.1 MB, free: 5.414 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.1091, allocations: 0 / 472.1 MB, free: 5.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001453/0.1106, allocations: 0.684 MB / 472.8 MB, free: 4.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.1106, allocations: 59.41 kB / 472.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/0.1108, allocations: 199.1 kB / 473 MB, free: 4.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.556e-05/0.1109, allocations: 25.7 kB / 473.1 MB, free: 4.355 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.111, allocations: 188.1 kB / 473.3 MB, free: 4.168 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.141e-05/0.111, allocations: 59.11 kB / 473.3 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.686e-05/0.1111, allocations: 37.7 kB / 473.3 MB, free: 4.066 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.1113, allocations: 330.8 kB / 473.7 MB, free: 3.734 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.1114, allocations: 63.97 kB / 473.7 MB, free: 3.672 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.1116, allocations: 104.9 kB / 473.8 MB, free: 3.555 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.1119, allocations: 166.2 kB / 474 MB, free: 3.379 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1119, allocations: 0 / 474 MB, free: 3.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004315/0.1124, allocations: 230.1 kB / 474.2 MB, free: 3.145 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.1124, allocations: 8.125 kB / 474.2 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.1124, allocations: 7.984 kB / 474.2 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001418/0.1126, allocations: 20.86 kB / 474.3 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.1128, allocations: 43.91 kB / 474.3 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/0.1138, allocations: 1.378 MB / 475.7 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/0.1139, allocations: 8 kB / 475.7 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.114, allocations: 4 kB / 475.7 MB, free: 1.531 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.0001544/0.1141, allocations: 157.7 kB / 475.8 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.249e-05/0.1142, allocations: 23.75 kB / 475.9 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.728e-05/0.1142, allocations: 21.86 kB / 475.9 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1142, allocations: 0 / 475.9 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.1142, allocations: 0 / 475.9 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1142, allocations: 0 / 475.9 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008453/0.1151, allocations: 0.6136 MB / 476.5 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1151, allocations: 0 / 476.5 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001944/0.1153, allocations: 39.91 kB / 476.5 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.275e-05/0.1154, allocations: 24.84 kB / 476.6 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.1154, allocations: 4 kB / 476.6 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009189/0.1163, allocations: 1.375 MB / 477.9 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1163, allocations: 160 / 477.9 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005533/0.1169, allocations: 373.6 kB / 478.3 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.639e-05/0.117, allocations: 92.92 kB / 478.4 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.5e-05/0.117, allocations: 8 kB / 478.4 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.1172, allocations: 12.03 kB / 478.4 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.039e-05/0.1172, allocations: 11.98 kB / 478.4 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.1172, allocations: 11.83 kB / 478.4 MB, free: 14.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001127/0.1173, allocations: 144.5 kB / 478.6 MB, free: 14.38 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1174, allocations: 0 / 478.6 MB, free: 14.38 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003065/0.1177, allocations: 52 kB / 478.6 MB, free: 14.33 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.0001066/0.1178, allocations: 108.4 kB / 478.7 MB, free: 14.21 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005328/0.1183, allocations: 266.4 kB / 479 MB, free: 13.94 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1183, allocations: 4 kB / 479 MB, free: 13.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002828/0.1186, allocations: 198.9 kB / 479.2 MB, free: 13.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003867/0.119, allocations: 38.11 kB / 479.2 MB, free: 13.69 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.1201, allocations: 0.6763 MB / 479.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.1204, allocations: 0.7593 MB / 480.7 MB, free: 12.19 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.64e-05/0.1205, allocations: 21.53 kB / 480.7 MB, free: 12.17 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.523e-05/0.1206, allocations: 19.44 kB / 480.7 MB, free: 12.15 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1206, allocations: 0 / 480.7 MB, free: 12.15 MB / 318.1 MB Notification: Performance of Templates: time 0.005351/0.1259, allocations: 2.264 MB / 483 MB, free: 9.906 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 cvode -lv LOG_STATS > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)