Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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.SynchronousMachines.SMEE_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009182/0.0009182, allocations: 99.34 kB / 16.02 MB, free: 76 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.303/1.303, allocations: 223.3 MB / 240 MB, free: 5.352 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.0009313/0.0009313, allocations: 184.4 kB / 291.3 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03523/0.03523, allocations: 8.798 MB / 351.2 MB, free: 4.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003381/0.0003382, allocations: 11.34 kB / 414.5 MB, free: 42.69 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06634/0.06669, allocations: 52.56 MB / 467 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02211/0.08883, allocations: 23.93 MB / 491 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01251/0.1014, allocations: 7.785 MB / 498.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003154/0.1045, allocations: 167.5 kB / 498.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004321/0.1089, allocations: 1.816 MB / 0.489 GB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006956/0.1159, allocations: 2.77 MB / 0.4917 GB, free: 8.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003468/0.1193, allocations: 1.689 MB / 0.4933 GB, free: 6.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008854/0.1282, allocations: 9.372 MB / 0.5025 GB, free: 13.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0244/0.1526, allocations: 17.63 MB / 0.5197 GB, free: 11.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004148/0.1568, allocations: 3.402 MB / 0.523 GB, free: 8.266 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004306/0.1611, allocations: 4.1 MB / 0.527 GB, free: 4.148 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007325/0.1618, allocations: 0.5195 MB / 0.5275 GB, free: 3.629 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001784/0.1636, allocations: 0.8902 MB / 0.5284 GB, free: 2.738 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00129/0.1649, allocations: 1.689 MB / 0.5301 GB, free: 1.043 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1636/0.3286, allocations: 4.033 MB / 0.534 GB, free: 21.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01059/0.3392, allocations: 15.31 MB / 0.549 GB, free: 18.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3392, allocations: 0 / 0.549 GB, free: 18.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3392, allocations: 0 / 0.549 GB, free: 18.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002373/0.3395, allocations: 1.375 kB / 0.549 GB, free: 18.12 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.02244/0.3619, allocations: 9.052 MB / 0.5578 GB, free: 13.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.362, allocations: 8.812 kB / 0.5578 GB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03193/0.3939, allocations: 5.662 MB / 0.5633 GB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01043/0.4044, allocations: 5.675 MB / 0.5689 GB, free: 9.852 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003/0.4047, allocations: 0.5849 MB / 0.5695 GB, free: 9.828 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001731/0.4064, allocations: 0.7679 MB / 0.5702 GB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01943/0.4259, allocations: 12.77 MB / 0.5827 GB, free: 6.328 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001731/0.4261, allocations: 18.52 kB / 0.5827 GB, free: 6.316 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008369/0.4269, allocations: 325.4 kB / 0.583 GB, free: 6.074 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000362/0.4273, allocations: 0.4919 MB / 0.5835 GB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.019/0.4463, allocations: 12.25 MB / 0.5954 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05779/0.5041, allocations: 43.85 MB / 0.6383 GB, free: 13.99 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02203/0.5262, allocations: 25.16 MB / 0.6628 GB, free: 1.953 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00448/0.5307, allocations: 2.982 MB / 0.6657 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003194/0.531, allocations: 241 kB / 0.666 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003652/0.5347, allocations: 2.598 MB / 0.6685 GB, free: 12.04 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 5.65e-06/0.5347, allocations: 0 / 0.6685 GB, free: 12.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.03632/0.571, allocations: 18.16 MB / 0.6862 GB, free: 9.777 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/0.5712, allocations: 359.5 kB / 0.6866 GB, free: 9.352 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004904/0.5761, allocations: 3.515 MB / 0.69 GB, free: 5.832 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002939/0.5764, allocations: 93.7 kB / 0.6901 GB, free: 5.734 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002053/0.5785, allocations: 3.376 MB / 0.6934 GB, free: 2.34 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001053/0.5796, allocations: 1.345 MB / 0.6947 GB, free: 1.004 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006046/0.5802, allocations: 442.2 kB / 0.6951 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.638e-05/0.5803, allocations: 305.1 kB / 0.6954 GB, free: 272 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003855/0.5841, allocations: 2.555 MB / 0.6979 GB, free: 13.71 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004982/0.5891, allocations: 4.52 MB / 0.7023 GB, free: 8.336 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00914/0.5983, allocations: 7.464 MB / 0.7096 GB, free: 260 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.589e-05/0.5983, allocations: 16 kB / 0.7096 GB, free: 244 kB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.1829/0.7812, allocations: 8.28 MB / 0.7177 GB, free: 172.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.206e-05/0.7813, allocations: 58.67 kB / 0.7178 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.972e-05/0.7814, allocations: 62.91 kB / 0.7178 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002865/0.7843, allocations: 1.003 MB / 0.7188 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004016/0.7883, allocations: 1.257 MB / 0.7201 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/0.7987, allocations: 8.242 MB / 0.7281 GB, free: 167.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003594/0.8023, allocations: 362.2 kB / 0.7284 GB, free: 167.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003622/0.8027, allocations: 265.6 kB / 0.7287 GB, free: 167.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003858/0.8065, allocations: 2.9 MB / 0.7315 GB, free: 166.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005593/0.8071, allocations: 395.9 kB / 0.7319 GB, free: 166.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009225/0.8163, allocations: 6.189 MB / 0.738 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.311e-05/0.8164, allocations: 44.34 kB / 0.738 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.459e-05/0.8164, allocations: 10.56 kB / 0.738 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.239e-05/0.8164, allocations: 22.55 kB / 0.738 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01869/0.8351, allocations: 14.94 MB / 0.7526 GB, free: 153.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/0.8352, allocations: 4 kB / 0.7526 GB, free: 153.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002614/0.8378, allocations: 0.6816 MB / 0.7533 GB, free: 152.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002252/0.84, allocations: 0.8835 MB / 0.7541 GB, free: 152.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002012/0.8403, allocations: 83.33 kB / 0.7542 GB, free: 152 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008811/0.8491, allocations: 7.197 MB / 0.7613 GB, free: 145.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.8491, allocations: 4 kB / 0.7613 GB, free: 145.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0107/0.8598, allocations: 8.789 MB / 0.7698 GB, free: 136.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/0.8614, allocations: 0.9373 MB / 0.7708 GB, free: 135.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000474/0.8618, allocations: 72 kB / 0.7708 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002017/0.8639, allocations: 203.8 kB / 0.771 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005421/0.8644, allocations: 267.1 kB / 0.7713 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002151/0.8646, allocations: 123.9 kB / 0.7714 GB, free: 134.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003159/0.8678, allocations: 2.363 MB / 0.7737 GB, free: 132.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/0.8678, allocations: 3.938 kB / 0.7737 GB, free: 132.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004272/0.8721, allocations: 1.454 MB / 0.7751 GB, free: 130.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004632/0.8726, allocations: 252.1 kB / 0.7754 GB, free: 130.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008566/0.8811, allocations: 6.482 MB / 0.7817 GB, free: 124.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.8812, allocations: 0 / 0.7817 GB, free: 124.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004087/0.8853, allocations: 3.082 MB / 0.7847 GB, free: 121 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005643/0.8909, allocations: 0.7817 MB / 0.7855 GB, free: 120.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01905/0.91, allocations: 17.07 MB / 0.8021 GB, free: 103.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003665/0.9137, allocations: 4.857 MB / 0.8069 GB, free: 98.15 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001512/0.9152, allocations: 379.3 kB / 0.8072 GB, free: 97.78 MB / 494.1 MB Notification: Performance of SimCode: time 6.01e-07/0.9152, allocations: 0 / 0.8072 GB, free: 97.78 MB / 494.1 MB Notification: Performance of Templates: time 0.2869/1.202, allocations: 130.5 MB / 0.9347 GB, free: 134.8 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)