Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 112.6 kB / 16.37 MB, free: 6 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.397/1.397, allocations: 222.9 MB / 240 MB, free: 4.543 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.001331/0.001331, allocations: 188.5 kB / 290.3 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03453/0.03453, allocations: 8.788 MB / 349.3 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 81.38 kB / 412.5 MB, free: 41.88 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08109/0.08271, allocations: 51.56 MB / 464.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02535/0.1081, allocations: 25.45 MB / 489.5 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01851/0.1267, allocations: 7.94 MB / 497.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005774/0.1325, allocations: 167.6 kB / 497.6 MB, free: 12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01829/0.1508, allocations: 7.654 MB / 0.4935 GB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01034/0.1612, allocations: 3.04 MB / 0.4964 GB, free: 1.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005837/0.167, allocations: 2.034 MB / 0.4984 GB, free: 15.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0124/0.1794, allocations: 9.216 MB / 0.5074 GB, free: 6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02522/0.2047, allocations: 17.27 MB / 0.5243 GB, free: 4.578 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2309/0.4356, allocations: 4.744 MB / 0.5289 GB, free: 19.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01026/0.446, allocations: 5.232 MB / 0.534 GB, free: 19.49 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004999/0.451, allocations: 1.354 MB / 0.5353 GB, free: 19.49 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008072/0.4591, allocations: 1.72 MB / 0.537 GB, free: 19.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005786/0.4649, allocations: 2.665 MB / 0.5396 GB, free: 19.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01219/0.4772, allocations: 5.086 MB / 0.5446 GB, free: 18.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02411/0.5013, allocations: 18.15 MB / 0.5623 GB, free: 13.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.928e-06/0.5014, allocations: 0.9688 kB / 0.5623 GB, free: 13.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5014, allocations: 1.719 kB / 0.5623 GB, free: 13.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005979/0.502, allocations: 0 / 0.5623 GB, free: 13.27 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.03637/0.5384, allocations: 10.75 MB / 0.5728 GB, free: 7.004 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.442e-05/0.5384, allocations: 8.75 kB / 0.5728 GB, free: 7.004 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03176/0.5702, allocations: 5.678 MB / 0.5784 GB, free: 4.457 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01354/0.5838, allocations: 5.795 MB / 0.584 GB, free: 0.6172 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004756/0.5843, allocations: 0.5775 MB / 0.5846 GB, free: 372 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003592/0.5879, allocations: 0.7608 MB / 0.5853 GB, free: 120 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03728/0.6252, allocations: 12.76 MB / 0.5978 GB, free: 3.465 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000385/0.6256, allocations: 19.36 kB / 0.5978 GB, free: 3.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004163/0.6298, allocations: 322.6 kB / 0.5981 GB, free: 3.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005688/0.6304, allocations: 0.4939 MB / 0.5986 GB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02911/0.6595, allocations: 12.25 MB / 0.6106 GB, free: 6.387 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07985/0.7394, allocations: 43.24 MB / 0.6528 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02184/0.7613, allocations: 25.19 MB / 0.6774 GB, free: 14.52 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005233/0.7666, allocations: 2.968 MB / 0.6803 GB, free: 11.55 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004493/0.7671, allocations: 242 kB / 0.6805 GB, free: 11.29 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004144/0.7712, allocations: 2.582 MB / 0.683 GB, free: 8.637 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 5.891e-06/0.7712, allocations: 0 / 0.683 GB, free: 8.637 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.03906/0.8103, allocations: 18.11 MB / 0.7007 GB, free: 6.43 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002214/0.8106, allocations: 355.2 kB / 0.7011 GB, free: 6.012 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00605/0.8166, allocations: 3.526 MB / 0.7045 GB, free: 2.48 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007364/0.8174, allocations: 89.64 kB / 0.7046 GB, free: 2.387 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2436/1.061, allocations: 3.372 MB / 0.7079 GB, free: 165.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001698/1.063, allocations: 1.349 MB / 0.7092 GB, free: 164.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002274/1.065, allocations: 1.082 MB / 0.7103 GB, free: 164.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.956e-05/1.065, allocations: 304.9 kB / 0.7106 GB, free: 164.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003909/1.069, allocations: 2.547 MB / 0.713 GB, free: 164.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005823/1.075, allocations: 4.512 MB / 0.7175 GB, free: 162.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0117/1.087, allocations: 7.45 MB / 0.7247 GB, free: 159.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000164/1.087, allocations: 17.69 kB / 0.7247 GB, free: 159.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01814/1.105, allocations: 8.274 MB / 0.7328 GB, free: 158.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/1.105, allocations: 57.52 kB / 0.7329 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001341/1.105, allocations: 59.66 kB / 0.7329 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002556/1.108, allocations: 1.008 MB / 0.7339 GB, free: 157.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004624/1.112, allocations: 1.251 MB / 0.7351 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01168/1.124, allocations: 8.819 MB / 0.7438 GB, free: 152.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005496/1.13, allocations: 354.4 kB / 0.7441 GB, free: 152.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001406/1.131, allocations: 265.9 kB / 0.7443 GB, free: 152.6 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.006325/1.137, allocations: 2.903 MB / 0.7472 GB, free: 151.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000959/1.138, allocations: 390.7 kB / 0.7476 GB, free: 150.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009975/1.148, allocations: 6.174 MB / 0.7536 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.967e-05/1.148, allocations: 41.55 kB / 0.7536 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.549e-05/1.148, allocations: 15.94 kB / 0.7536 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-05/1.148, allocations: 22.83 kB / 0.7537 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02376/1.172, allocations: 14.64 MB / 0.768 GB, free: 135.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.622e-05/1.172, allocations: 4 kB / 0.768 GB, free: 135.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002464/1.175, allocations: 0.6805 MB / 0.7686 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002243/1.177, allocations: 0.8828 MB / 0.7695 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003758/1.177, allocations: 80.67 kB / 0.7696 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008913/1.186, allocations: 7.746 MB / 0.7771 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/1.186, allocations: 10.23 kB / 0.7771 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01203/1.198, allocations: 8.775 MB / 0.7857 GB, free: 117.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002682/1.201, allocations: 0.91 MB / 0.7866 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001195/1.202, allocations: 80.88 kB / 0.7867 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00263/1.205, allocations: 199.6 kB / 0.7869 GB, free: 116.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000586/1.206, allocations: 275.1 kB / 0.7871 GB, free: 116.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002171/1.206, allocations: 112 kB / 0.7872 GB, free: 116 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003784/1.21, allocations: 2.363 MB / 0.7895 GB, free: 113.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.91e-07/1.21, allocations: 0 / 0.7895 GB, free: 113.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006931/1.217, allocations: 1.451 MB / 0.791 GB, free: 112.2 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.0009741/1.218, allocations: 254.6 kB / 0.7912 GB, free: 111.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009867/1.227, allocations: 6.487 MB / 0.7975 GB, free: 105.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/1.228, allocations: 4.062 kB / 0.7975 GB, free: 105.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004723/1.232, allocations: 3.083 MB / 0.8006 GB, free: 102.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004373/1.237, allocations: 0.8058 MB / 0.8013 GB, free: 101.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02547/1.262, allocations: 13.74 MB / 0.8148 GB, free: 87.74 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005345/1.268, allocations: 5.008 MB / 0.8197 GB, free: 82.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004503/1.272, allocations: 1.581 MB / 0.8212 GB, free: 81.13 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/1.273, allocations: 335.4 kB / 0.8215 GB, free: 80.8 MB / 494.1 MB Notification: Performance of SimCode: time 8.32e-07/1.273, allocations: 0 / 0.8215 GB, free: 80.8 MB / 494.1 MB Notification: Performance of Templates: time 0.08592/1.359, allocations: 56.87 MB / 0.877 GB, free: 24.39 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)