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.001131/0.001131, 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.318/1.318, allocations: 222.9 MB / 240 MB, free: 4.559 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.001402/0.001402, allocations: 180.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.0357/0.0357, allocations: 8.8 MB / 349.3 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 78.41 kB / 412.5 MB, free: 41.67 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08343/0.08493, allocations: 51.57 MB / 464.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02363/0.1086, allocations: 25.42 MB / 489.5 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01494/0.1236, allocations: 7.948 MB / 497.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004208/0.1278, allocations: 171.5 kB / 497.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01567/0.1435, allocations: 7.649 MB / 0.4934 GB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009019/0.1526, allocations: 3.05 MB / 0.4964 GB, free: 1.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005453/0.158, allocations: 2.026 MB / 0.4984 GB, free: 15.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01213/0.1702, allocations: 9.218 MB / 0.5074 GB, free: 5.902 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02183/0.192, allocations: 17.26 MB / 0.5242 GB, free: 4.488 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1788/0.3709, allocations: 4.742 MB / 0.5289 GB, free: 19.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006653/0.3776, allocations: 5.239 MB / 0.534 GB, free: 19.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003423/0.381, allocations: 1.353 MB / 0.5353 GB, free: 19.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004552/0.3856, allocations: 1.721 MB / 0.537 GB, free: 19.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002836/0.3884, allocations: 2.668 MB / 0.5396 GB, free: 19.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008097/0.3965, allocations: 5.088 MB / 0.5446 GB, free: 18.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01503/0.4116, allocations: 18.15 MB / 0.5623 GB, free: 13.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.4116, allocations: 2.562 kB / 0.5623 GB, free: 13.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4116, allocations: 0 / 0.5623 GB, free: 13.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003801/0.412, allocations: 1.156 kB / 0.5623 GB, free: 13.39 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.02813/0.4401, allocations: 10.75 MB / 0.5728 GB, free: 7.055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.4402, allocations: 8.625 kB / 0.5728 GB, free: 7.055 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02775/0.468, allocations: 5.679 MB / 0.5784 GB, free: 4.512 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0114/0.4794, allocations: 5.791 MB / 0.584 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000301/0.4797, allocations: 0.575 MB / 0.5846 GB, free: 432 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002363/0.4821, allocations: 0.7686 MB / 0.5853 GB, free: 172 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02921/0.5113, allocations: 12.76 MB / 0.5978 GB, free: 3.426 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002445/0.5116, allocations: 7.906 kB / 0.5978 GB, free: 3.418 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002155/0.5137, allocations: 324.7 kB / 0.5981 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004857/0.5142, allocations: 0.4944 MB / 0.5986 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02545/0.5397, allocations: 12.26 MB / 0.6105 GB, free: 6.348 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08238/0.6221, allocations: 43.25 MB / 0.6528 GB, free: 10.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02651/0.6487, allocations: 25.19 MB / 0.6774 GB, free: 14.48 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005405/0.6541, allocations: 2.968 MB / 0.6803 GB, free: 11.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005692/0.6547, allocations: 241.6 kB / 0.6805 GB, free: 11.24 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004645/0.6594, allocations: 2.589 MB / 0.683 GB, free: 8.586 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 6.893e-06/0.6594, allocations: 0 / 0.683 GB, free: 8.586 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.03894/0.6983, allocations: 18.1 MB / 0.7007 GB, free: 6.383 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001786/0.6986, allocations: 355.5 kB / 0.7011 GB, free: 5.961 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005437/0.704, allocations: 3.522 MB / 0.7045 GB, free: 2.434 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006643/0.7047, allocations: 89.64 kB / 0.7046 GB, free: 2.34 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1717/0.8764, allocations: 3.371 MB / 0.7079 GB, free: 165.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001806/0.8782, allocations: 1.353 MB / 0.7092 GB, free: 165.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001827/0.8801, allocations: 1.078 MB / 0.7102 GB, free: 165.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.86e-05/0.8801, allocations: 305.4 kB / 0.7105 GB, free: 164.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003571/0.8837, allocations: 2.55 MB / 0.713 GB, free: 164.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005024/0.8887, allocations: 4.515 MB / 0.7174 GB, free: 162.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009372/0.8981, allocations: 7.445 MB / 0.7247 GB, free: 160 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001237/0.8983, allocations: 16.88 kB / 0.7247 GB, free: 160 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.0136/0.9119, allocations: 8.279 MB / 0.7328 GB, free: 158.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.153e-05/0.912, allocations: 58.48 kB / 0.7329 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.028e-05/0.9121, allocations: 62.97 kB / 0.7329 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002288/0.9143, allocations: 0.9948 MB / 0.7339 GB, free: 157.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003852/0.9182, allocations: 1.259 MB / 0.7351 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00994/0.9282, allocations: 8.815 MB / 0.7437 GB, free: 152.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004932/0.9331, allocations: 352.5 kB / 0.7441 GB, free: 152.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007481/0.9339, allocations: 268.3 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.004057/0.938, allocations: 2.909 MB / 0.7472 GB, free: 151.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006655/0.9386, allocations: 385.9 kB / 0.7475 GB, free: 150.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008533/0.9472, allocations: 6.166 MB / 0.7536 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.459e-05/0.9472, allocations: 40 kB / 0.7536 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.559e-05/0.9472, allocations: 16.56 kB / 0.7536 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.268e-05/0.9473, allocations: 26.59 kB / 0.7536 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02116/0.9685, allocations: 14.63 MB / 0.7679 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.666e-05/0.9685, allocations: 8.5 kB / 0.7679 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002425/0.9709, allocations: 0.6857 MB / 0.7686 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00207/0.973, allocations: 0.8715 MB / 0.7695 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002244/0.9733, allocations: 88.67 kB / 0.7695 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008437/0.9817, allocations: 7.743 MB / 0.7771 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.9817, allocations: 14.8 kB / 0.7771 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01051/0.9922, allocations: 8.773 MB / 0.7857 GB, free: 117.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002153/0.9944, allocations: 0.914 MB / 0.7866 GB, free: 116.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005911/0.995, allocations: 80 kB / 0.7867 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001835/0.9969, allocations: 198.2 kB / 0.7868 GB, free: 116.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004784/0.9974, allocations: 271.1 kB / 0.7871 GB, free: 116.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002067/0.9976, allocations: 120 kB / 0.7872 GB, free: 116 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002848/1, allocations: 2.355 MB / 0.7895 GB, free: 113.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.9e-07/1, allocations: 0 / 0.7895 GB, free: 113.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004535/1.005, allocations: 1.457 MB / 0.7909 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.0005916/1.006, allocations: 244.4 kB / 0.7912 GB, free: 112 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008727/1.014, allocations: 6.505 MB / 0.7975 GB, free: 105.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/1.014, allocations: 0 / 0.7975 GB, free: 105.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004164/1.019, allocations: 3.074 MB / 0.8005 GB, free: 102.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003781/1.022, allocations: 0.8174 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.02039/1.043, allocations: 13.74 MB / 0.8147 GB, free: 87.78 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004276/1.047, allocations: 5.003 MB / 0.8196 GB, free: 82.73 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004051/1.051, allocations: 1.597 MB / 0.8212 GB, free: 81.16 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00103/1.052, allocations: 331.4 kB / 0.8215 GB, free: 80.83 MB / 494.1 MB Notification: Performance of SimCode: time 6.71e-07/1.052, allocations: 0 / 0.8215 GB, free: 80.83 MB / 494.1 MB Notification: Performance of Templates: time 0.08156/1.134, allocations: 56.84 MB / 0.877 GB, free: 24.44 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)