Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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_VCurve3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 116.8 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.346/1.346, allocations: 222.9 MB / 240 MB, free: 4.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.00129/0.00129, allocations: 196.5 kB / 290.3 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0351/0.0351, allocations: 8.793 MB / 349.3 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001883, allocations: 81.05 kB / 412.5 MB, free: 41.69 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08791/0.08982, allocations: 51.57 MB / 464.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02825/0.1181, allocations: 25.44 MB / 489.5 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01482/0.133, allocations: 7.936 MB / 497.5 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004209/0.1373, allocations: 171.5 kB / 497.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01657/0.1538, allocations: 7.653 MB / 0.4935 GB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009014/0.1629, allocations: 3.046 MB / 0.4964 GB, free: 1.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005126/0.168, allocations: 2.028 MB / 0.4984 GB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01288/0.1809, allocations: 9.212 MB / 0.5074 GB, free: 5.824 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02515/0.2061, allocations: 17.27 MB / 0.5243 GB, free: 4.398 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1666/0.3727, allocations: 4.741 MB / 0.5289 GB, free: 20.24 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00669/0.3795, allocations: 5.234 MB / 0.534 GB, free: 20.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002925/0.3824, allocations: 1.354 MB / 0.5353 GB, free: 20.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003927/0.3864, allocations: 1.713 MB / 0.537 GB, free: 20.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002378/0.3888, allocations: 2.671 MB / 0.5396 GB, free: 19.78 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006711/0.3955, allocations: 5.085 MB / 0.5446 GB, free: 18.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0149/0.4104, allocations: 18.15 MB / 0.5623 GB, free: 13.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.4105, allocations: 0 / 0.5623 GB, free: 13.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4105, allocations: 0 / 0.5623 GB, free: 13.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000364/0.4108, allocations: 1.844 kB / 0.5623 GB, free: 13.82 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.02855/0.4394, allocations: 10.75 MB / 0.5728 GB, free: 7.125 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.4395, allocations: 9.625 kB / 0.5728 GB, free: 7.125 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03017/0.4696, allocations: 5.676 MB / 0.5784 GB, free: 4.582 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01215/0.4818, allocations: 5.803 MB / 0.584 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003584/0.4822, allocations: 0.5835 MB / 0.5846 GB, free: 496 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002698/0.4849, allocations: 0.7566 MB / 0.5853 GB, free: 244 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02797/0.5129, allocations: 12.76 MB / 0.5978 GB, free: 3.488 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001977/0.5131, allocations: 11.91 kB / 0.5978 GB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001179/0.5143, allocations: 325.9 kB / 0.5981 GB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005135/0.5148, allocations: 0.4977 MB / 0.5986 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02332/0.5381, allocations: 12.25 MB / 0.6106 GB, free: 6.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06775/0.6059, allocations: 43.25 MB / 0.6528 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02229/0.6283, allocations: 25.18 MB / 0.6774 GB, free: 14.54 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004524/0.6328, allocations: 2.972 MB / 0.6803 GB, free: 11.57 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003415/0.6332, allocations: 245.2 kB / 0.6805 GB, free: 11.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003424/0.6366, allocations: 2.578 MB / 0.6831 GB, free: 8.656 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 5.03e-06/0.6366, allocations: 0 / 0.6831 GB, free: 8.656 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.03399/0.6706, allocations: 18.11 MB / 0.7007 GB, free: 6.453 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001643/0.6708, allocations: 359.5 kB / 0.7011 GB, free: 6.027 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00493/0.6758, allocations: 3.515 MB / 0.7045 GB, free: 2.508 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003744/0.6761, allocations: 97.69 kB / 0.7046 GB, free: 2.406 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1814/0.8575, allocations: 3.373 MB / 0.7079 GB, free: 166.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001419/0.859, allocations: 1.349 MB / 0.7092 GB, free: 165.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001735/0.8607, allocations: 1.078 MB / 0.7103 GB, free: 165.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.708e-05/0.8608, allocations: 307.3 kB / 0.7106 GB, free: 165.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00334/0.8641, allocations: 2.549 MB / 0.7131 GB, free: 165.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004494/0.8687, allocations: 4.513 MB / 0.7175 GB, free: 163.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00877/0.8774, allocations: 7.449 MB / 0.7247 GB, free: 160.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.434e-05/0.8775, allocations: 16.25 kB / 0.7247 GB, free: 160.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01274/0.8903, allocations: 8.281 MB / 0.7328 GB, free: 158.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.183e-05/0.8903, allocations: 58.27 kB / 0.7329 GB, free: 158.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.977e-05/0.8905, allocations: 58.81 kB / 0.7329 GB, free: 158.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002355/0.8928, allocations: 1 MB / 0.7339 GB, free: 158 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003996/0.8968, allocations: 1.256 MB / 0.7352 GB, free: 157.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/0.9073, allocations: 8.817 MB / 0.7438 GB, free: 152.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004292/0.9116, allocations: 351.3 kB / 0.7441 GB, free: 152.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006529/0.9123, allocations: 269 kB / 0.7444 GB, free: 152.8 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.004126/0.9164, allocations: 2.905 MB / 0.7472 GB, free: 151.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006801/0.9171, allocations: 390.8 kB / 0.7476 GB, free: 151 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008799/0.9259, allocations: 6.17 MB / 0.7536 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.137e-05/0.926, allocations: 40 kB / 0.7536 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/0.926, allocations: 15.94 kB / 0.7536 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.151e-05/0.926, allocations: 19.67 kB / 0.7537 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02049/0.9465, allocations: 14.63 MB / 0.768 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.527e-05/0.9466, allocations: 8 kB / 0.768 GB, free: 135.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002533/0.9491, allocations: 0.6795 MB / 0.7686 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002239/0.9514, allocations: 0.8762 MB / 0.7695 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002637/0.9516, allocations: 88.98 kB / 0.7696 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008737/0.9604, allocations: 7.749 MB / 0.7771 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/0.9604, allocations: 15.97 kB / 0.7771 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01066/0.9711, allocations: 8.773 MB / 0.7857 GB, free: 117.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002108/0.9732, allocations: 0.9139 MB / 0.7866 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005375/0.9738, allocations: 80 kB / 0.7867 GB, free: 116.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001889/0.9757, allocations: 195.8 kB / 0.7869 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004684/0.9761, allocations: 271.1 kB / 0.7871 GB, free: 116.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002101/0.9764, allocations: 120.9 kB / 0.7872 GB, free: 116.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002937/0.9793, allocations: 2.359 MB / 0.7895 GB, free: 113.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9793, allocations: 0 / 0.7895 GB, free: 113.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004306/0.9836, allocations: 1.455 MB / 0.791 GB, free: 112.4 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.0004795/0.9841, allocations: 251.1 kB / 0.7912 GB, free: 112.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00954/0.9937, allocations: 6.495 MB / 0.7975 GB, free: 105.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/0.9937, allocations: 2.297 kB / 0.7975 GB, free: 105.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004544/0.9983, allocations: 3.072 MB / 0.8005 GB, free: 102.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003843/1.002, allocations: 0.8187 MB / 0.8013 GB, free: 101.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02037/1.023, allocations: 13.74 MB / 0.8148 GB, free: 87.96 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00404/1.027, allocations: 5.002 MB / 0.8197 GB, free: 82.92 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003975/1.031, allocations: 1.597 MB / 0.8212 GB, free: 81.34 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009238/1.032, allocations: 331.4 kB / 0.8215 GB, free: 81.02 MB / 494.1 MB Notification: Performance of SimCode: time 7.21e-07/1.032, allocations: 0 / 0.8215 GB, free: 81.02 MB / 494.1 MB Notification: Performance of Templates: time 0.08343/1.115, allocations: 56.87 MB / 0.8771 GB, free: 24.6 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)