Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 101.8 kB / 16.35 MB, free: 5.879 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.436/1.436, allocations: 222.9 MB / 240 MB, free: 4.516 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.001302/0.001302, allocations: 192.3 kB / 290.3 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0369/0.0369, allocations: 8.793 MB / 349.3 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 78.7 kB / 412.5 MB, free: 41.7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0831/0.08473, allocations: 51.56 MB / 464.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02607/0.1108, allocations: 25.45 MB / 489.5 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01496/0.1258, allocations: 7.94 MB / 497.5 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004026/0.1299, allocations: 171.5 kB / 497.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01669/0.1466, allocations: 7.645 MB / 0.4934 GB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01018/0.1568, allocations: 3.041 MB / 0.4964 GB, free: 1.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006403/0.1633, allocations: 2.038 MB / 0.4984 GB, free: 15.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01556/0.1788, allocations: 9.216 MB / 0.5074 GB, free: 5.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02709/0.2059, allocations: 17.27 MB / 0.5243 GB, free: 4.391 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.212/0.418, allocations: 4.738 MB / 0.5289 GB, free: 19.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01006/0.4281, allocations: 5.236 MB / 0.534 GB, free: 19.58 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004944/0.433, allocations: 1.356 MB / 0.5353 GB, free: 19.58 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007516/0.4406, allocations: 1.714 MB / 0.537 GB, free: 19.58 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006117/0.4467, allocations: 2.672 MB / 0.5396 GB, free: 19.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01128/0.458, allocations: 5.079 MB / 0.5446 GB, free: 18.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02083/0.4789, allocations: 18.16 MB / 0.5623 GB, free: 13.33 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.479, allocations: 1.406 kB / 0.5623 GB, free: 13.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.479, allocations: 0 / 0.5623 GB, free: 13.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006395/0.4796, allocations: 3.156 kB / 0.5623 GB, free: 13.33 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.04145/0.5211, allocations: 10.75 MB / 0.5728 GB, free: 6.988 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.851e-05/0.5212, allocations: 11.28 kB / 0.5728 GB, free: 6.988 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03239/0.5536, allocations: 5.67 MB / 0.5784 GB, free: 4.449 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01322/0.5668, allocations: 5.798 MB / 0.584 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000447/0.5673, allocations: 0.5754 MB / 0.5846 GB, free: 364 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003777/0.5711, allocations: 0.7674 MB / 0.5853 GB, free: 108 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03292/0.604, allocations: 12.76 MB / 0.5978 GB, free: 3.344 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002533/0.6043, allocations: 15.89 kB / 0.5978 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002049/0.6064, allocations: 320.8 kB / 0.5981 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004732/0.6069, allocations: 0.4967 MB / 0.5986 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02526/0.6321, allocations: 12.26 MB / 0.6106 GB, free: 6.254 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08037/0.7125, allocations: 43.24 MB / 0.6528 GB, free: 10.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02291/0.7355, allocations: 25.18 MB / 0.6774 GB, free: 14.41 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005023/0.7405, allocations: 2.976 MB / 0.6803 GB, free: 11.42 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003867/0.7409, allocations: 247 kB / 0.6805 GB, free: 11.16 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003881/0.7448, allocations: 2.583 MB / 0.683 GB, free: 8.508 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 5.32e-06/0.7448, allocations: 3.469 kB / 0.6831 GB, free: 8.508 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.03754/0.7824, allocations: 18.11 MB / 0.7007 GB, free: 6.297 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001797/0.7826, allocations: 351.5 kB / 0.7011 GB, free: 5.879 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006014/0.7886, allocations: 3.518 MB / 0.7045 GB, free: 2.355 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007823/0.7894, allocations: 89.7 kB / 0.7046 GB, free: 2.262 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2396/1.029, allocations: 3.37 MB / 0.7079 GB, free: 165.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001472/1.031, allocations: 1.344 MB / 0.7092 GB, free: 164.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001998/1.033, allocations: 1.083 MB / 0.7103 GB, free: 164.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.717e-05/1.033, allocations: 312.3 kB / 0.7106 GB, free: 164.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003704/1.036, allocations: 2.548 MB / 0.713 GB, free: 164.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005775/1.042, allocations: 4.512 MB / 0.7174 GB, free: 162.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01166/1.054, allocations: 7.451 MB / 0.7247 GB, free: 159.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001377/1.054, allocations: 21.19 kB / 0.7247 GB, free: 159.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01559/1.07, allocations: 8.275 MB / 0.7328 GB, free: 157.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.744e-05/1.07, allocations: 57.11 kB / 0.7329 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001066/1.07, allocations: 58.03 kB / 0.7329 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002416/1.072, allocations: 1.001 MB / 0.7339 GB, free: 157.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004443/1.077, allocations: 1.259 MB / 0.7351 GB, free: 157.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01103/1.088, allocations: 8.807 MB / 0.7437 GB, free: 152.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005485/1.093, allocations: 363.1 kB / 0.7441 GB, free: 152.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001324/1.095, allocations: 264.8 kB / 0.7443 GB, free: 152.3 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.005252/1.1, allocations: 2.906 MB / 0.7472 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009898/1.101, allocations: 382.5 kB / 0.7475 GB, free: 150.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008991/1.11, allocations: 6.172 MB / 0.7536 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.529e-05/1.11, allocations: 48 kB / 0.7536 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/1.11, allocations: 11.94 kB / 0.7536 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.29e-05/1.11, allocations: 22.69 kB / 0.7537 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02317/1.133, allocations: 14.64 MB / 0.7679 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-05/1.133, allocations: 8.094 kB / 0.768 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002419/1.136, allocations: 0.6798 MB / 0.7686 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002154/1.138, allocations: 0.8801 MB / 0.7695 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002455/1.138, allocations: 83.98 kB / 0.7696 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009462/1.148, allocations: 7.746 MB / 0.7771 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/1.148, allocations: 7.938 kB / 0.7771 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01134/1.159, allocations: 8.781 MB / 0.7857 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002375/1.161, allocations: 0.9062 MB / 0.7866 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000688/1.162, allocations: 83.36 kB / 0.7867 GB, free: 116.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001903/1.164, allocations: 195.8 kB / 0.7869 GB, free: 116.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005394/1.164, allocations: 275.1 kB / 0.7871 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002102/1.165, allocations: 108.5 kB / 0.7872 GB, free: 115.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003567/1.168, allocations: 2.363 MB / 0.7895 GB, free: 113.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.41e-07/1.168, allocations: 0 / 0.7895 GB, free: 113.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006972/1.175, allocations: 1.451 MB / 0.7909 GB, free: 112.1 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.000881/1.176, allocations: 263.3 kB / 0.7912 GB, free: 111.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009941/1.186, allocations: 6.481 MB / 0.7975 GB, free: 105.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/1.186, allocations: 0 / 0.7975 GB, free: 105.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004034/1.19, allocations: 3.08 MB / 0.8005 GB, free: 102.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003756/1.194, allocations: 0.8179 MB / 0.8013 GB, free: 101.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0211/1.215, allocations: 13.74 MB / 0.8147 GB, free: 87.63 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004889/1.22, allocations: 5.007 MB / 0.8196 GB, free: 82.58 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00434/1.224, allocations: 1.599 MB / 0.8212 GB, free: 81.01 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00104/1.225, allocations: 327.4 kB / 0.8215 GB, free: 80.69 MB / 494.1 MB Notification: Performance of SimCode: time 9.32e-07/1.225, allocations: 4 kB / 0.8215 GB, free: 80.68 MB / 494.1 MB Notification: Performance of Templates: time 0.08654/1.312, allocations: 56.86 MB / 0.877 GB, free: 24.28 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)