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.0008955/0.0008955, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 223.3 MB / 240 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.0009461/0.0009461, allocations: 180.4 kB / 291.3 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03428/0.03428, allocations: 8.802 MB / 351.2 MB, free: 4.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003284/0.0003284, allocations: 16.34 kB / 414.5 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06449/0.06483, allocations: 52.55 MB / 467 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.00282/0.06769, allocations: 2.529 MB / 469.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.06872, allocations: 0.6467 MB / 470.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.06889, allocations: 4 kB / 470.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.06903, allocations: 35.7 kB / 470.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.06927, allocations: 83.36 kB / 470.3 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000147/0.06942, allocations: 71.89 kB / 470.4 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003487/0.06978, allocations: 358.4 kB / 470.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002039/0.06999, allocations: 120.1 kB / 470.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.07014, allocations: 111.5 kB / 471 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.07031, allocations: 139.3 kB / 471.1 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.664e-05/0.07036, allocations: 16 kB / 471.1 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.657e-05/0.07041, allocations: 16 kB / 471.1 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.684e-05/0.07046, allocations: 55.77 kB / 471.2 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.07062, allocations: 172.9 kB / 471.4 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.0709, allocations: 315.3 kB / 471.7 MB, free: 8.434 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.07091, allocations: 0 / 471.7 MB, free: 8.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.07091, allocations: 3.938 kB / 471.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.07093, allocations: 0 / 471.7 MB, free: 8.43 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.000781/0.07171, allocations: 0.5382 MB / 472.2 MB, free: 7.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.099e-05/0.07175, allocations: 11.97 kB / 472.2 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.229e-05/0.07183, allocations: 32.56 kB / 472.3 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002847/0.07212, allocations: 275.7 kB / 472.5 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.07215, allocations: 21.03 kB / 472.5 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.269e-05/0.07221, allocations: 32.38 kB / 472.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005361/0.07275, allocations: 278.2 kB / 472.8 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.07278, allocations: 7.984 kB / 472.9 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.888e-05/0.07282, allocations: 12 kB / 472.9 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.07284, allocations: 8 kB / 472.9 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004781/0.07332, allocations: 222.5 kB / 473.1 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00152/0.07485, allocations: 1.044 MB / 474.1 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.07523, allocations: 158.4 kB / 474.3 MB, free: 5.633 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001945/0.07543, allocations: 88.8 kB / 474.4 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.07546, allocations: 7.938 kB / 474.4 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.0755, allocations: 34.56 kB / 474.4 MB, free: 5.492 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.0755, allocations: 0 / 474.4 MB, free: 5.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001393/0.0769, allocations: 0.7105 MB / 475.1 MB, free: 4.711 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.07694, allocations: 63.28 kB / 475.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.07713, allocations: 199.1 kB / 475.4 MB, free: 4.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.07716, allocations: 29.7 kB / 475.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.07727, allocations: 180.1 kB / 475.6 MB, free: 4.219 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.44e-05/0.07732, allocations: 59.23 kB / 475.6 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.644e-05/0.07737, allocations: 21.72 kB / 475.7 MB, free: 4.133 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.0775, allocations: 338.8 kB / 476 MB, free: 3.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.07768, allocations: 63.97 kB / 476.1 MB, free: 3.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.07788, allocations: 110.7 kB / 476.2 MB, free: 3.609 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003521/0.07824, allocations: 184.1 kB / 476.4 MB, free: 3.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.07825, allocations: 0 / 476.4 MB, free: 3.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004874/0.07874, allocations: 243.6 kB / 476.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.07877, allocations: 8.125 kB / 476.6 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.07878, allocations: 0 / 476.6 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000116/0.0789, allocations: 20.84 kB / 476.6 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.0791, allocations: 51.91 kB / 476.7 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008486/0.07996, allocations: 1.272 MB / 477.9 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.0801, allocations: 11.98 kB / 478 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.08013, allocations: 8 kB / 478 MB, free: 1.66 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.0001255/0.08026, allocations: 145.9 kB / 478.1 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.32e-05/0.08031, allocations: 15.81 kB / 478.1 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.296e-05/0.08036, allocations: 25.81 kB / 478.1 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.289e-06/0.08037, allocations: 11.88 kB / 478.2 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.08038, allocations: 7.984 kB / 478.2 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.08039, allocations: 0 / 478.2 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008502/0.08124, allocations: 0.6179 MB / 478.8 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.08126, allocations: 0 / 478.8 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000206/0.08147, allocations: 43.92 kB / 478.8 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.969e-05/0.08155, allocations: 20.91 kB / 478.8 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.08157, allocations: 8 kB / 478.9 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008013/0.08238, allocations: 1.276 MB / 480.1 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.0824, allocations: 4.031 kB / 480.1 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006201/0.08302, allocations: 389.7 kB / 480.5 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.83e-05/0.08308, allocations: 88.92 kB / 480.6 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.586e-05/0.08311, allocations: 8 kB / 480.6 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.08329, allocations: 23.97 kB / 480.6 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.28e-05/0.08334, allocations: 19.86 kB / 480.6 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.08335, allocations: 4 kB / 480.7 MB, free: 14.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001209/0.08348, allocations: 148.5 kB / 480.8 MB, free: 14.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08349, allocations: 0 / 480.8 MB, free: 14.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003154/0.08381, allocations: 52 kB / 480.8 MB, free: 14.52 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 8.964e-05/0.0839, allocations: 104.9 kB / 481 MB, free: 14.4 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005345/0.08444, allocations: 276.1 kB / 481.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.08446, allocations: 256 / 481.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002923/0.08476, allocations: 206.6 kB / 481.4 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.0004079/0.08518, allocations: 30.94 kB / 481.5 MB, free: 13.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.08629, allocations: 0.9096 MB / 482.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.08658, allocations: 0.7595 MB / 483.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.549e-05/0.08664, allocations: 19.44 kB / 483.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.08665, allocations: 0 / 483.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of Templates: time 0.005573/0.09222, allocations: 4.056 MB / 487.2 MB, free: 8.074 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)