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.0007597/0.00076, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.342/1.342, allocations: 223.3 MB / 239.4 MB, free: 5.512 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.001141/0.001141, allocations: 168.6 kB / 290.6 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03225/0.03225, allocations: 8.791 MB / 350.5 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000529/0.000529, allocations: 10.61 kB / 413.8 MB, free: 42.79 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09991/0.1005, allocations: 52.55 MB / 466.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.0238/0.1243, allocations: 23.96 MB / 490.3 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01659/0.141, allocations: 7.782 MB / 498.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005563/0.1466, allocations: 159.5 kB / 498.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006197/0.1528, allocations: 1.824 MB / 0.4884 GB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009453/0.1623, allocations: 2.77 MB / 0.4911 GB, free: 8.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005322/0.1677, allocations: 1.685 MB / 0.4927 GB, free: 6.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0125/0.1802, allocations: 9.371 MB / 0.5019 GB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03151/0.2117, allocations: 17.63 MB / 0.5191 GB, free: 11.67 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005153/0.2169, allocations: 3.398 MB / 0.5224 GB, free: 8.258 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006333/0.2233, allocations: 4.1 MB / 0.5264 GB, free: 4.141 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001921/0.2253, allocations: 0.5195 MB / 0.5269 GB, free: 3.621 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003353/0.2286, allocations: 0.8901 MB / 0.5278 GB, free: 2.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002128/0.2308, allocations: 1.697 MB / 0.5294 GB, free: 1.027 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2113/0.4421, allocations: 4.029 MB / 0.5334 GB, free: 21.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01781/0.4599, allocations: 17.06 MB / 0.55 GB, free: 17.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.46, allocations: 0 / 0.55 GB, free: 17.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.46, allocations: 1.031 kB / 0.55 GB, free: 17.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004987/0.4605, allocations: 0 / 0.55 GB, free: 17.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.0283/0.4888, allocations: 9.049 MB / 0.5589 GB, free: 12.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.4889, allocations: 14.09 kB / 0.5589 GB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03148/0.5204, allocations: 5.659 MB / 0.5644 GB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01187/0.5323, allocations: 5.67 MB / 0.57 GB, free: 9.031 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005891/0.5329, allocations: 0.5884 MB / 0.5705 GB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003155/0.5361, allocations: 0.7691 MB / 0.5713 GB, free: 9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03091/0.567, allocations: 12.77 MB / 0.5837 GB, free: 5.648 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002286/0.5673, allocations: 20.02 kB / 0.5838 GB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001663/0.5689, allocations: 326.3 kB / 0.5841 GB, free: 5.395 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003997/0.5694, allocations: 0.4889 MB / 0.5846 GB, free: 5.293 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02522/0.5946, allocations: 12.25 MB / 0.5965 GB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07236/0.667, allocations: 43.85 MB / 0.6393 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02357/0.6906, allocations: 25.16 MB / 0.6639 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005135/0.6958, allocations: 2.98 MB / 0.6668 GB, free: 13.65 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003887/0.6962, allocations: 245.8 kB / 0.6671 GB, free: 13.39 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003912/0.7001, allocations: 2.586 MB / 0.6696 GB, free: 10.73 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 5.62e-06/0.7001, allocations: 0 / 0.6696 GB, free: 10.73 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.03904/0.7392, allocations: 18.16 MB / 0.6873 GB, free: 8.469 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001513/0.7394, allocations: 354.9 kB / 0.6877 GB, free: 8.051 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005466/0.7448, allocations: 3.519 MB / 0.6911 GB, free: 4.527 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006655/0.7455, allocations: 93.7 kB / 0.6912 GB, free: 4.43 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002338/0.7479, allocations: 3.378 MB / 0.6945 GB, free: 1.031 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001429/0.7493, allocations: 1.347 MB / 0.6958 GB, free: 15.69 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006597/0.75, allocations: 442.2 kB / 0.6962 GB, free: 15.25 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.183e-05/0.7501, allocations: 309.1 kB / 0.6965 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003986/0.7541, allocations: 2.556 MB / 0.699 GB, free: 12.39 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005135/0.7592, allocations: 4.517 MB / 0.7034 GB, free: 7.02 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1975/0.9568, allocations: 7.457 MB / 0.7107 GB, free: 169.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.052e-05/0.9569, allocations: 16.09 kB / 0.7107 GB, free: 169.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01525/0.9721, allocations: 8.291 MB / 0.7188 GB, free: 168.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.477e-05/0.9722, allocations: 56.42 kB / 0.7189 GB, free: 168.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.706e-05/0.9724, allocations: 61.09 kB / 0.7189 GB, free: 168.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00268/0.975, allocations: 0.9993 MB / 0.7199 GB, free: 168.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004579/0.9796, allocations: 1.255 MB / 0.7211 GB, free: 168.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/0.9903, allocations: 8.249 MB / 0.7292 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004403/0.9947, allocations: 357.6 kB / 0.7295 GB, free: 163.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006087/0.9953, allocations: 265 kB / 0.7298 GB, free: 163.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.00469/1, allocations: 2.904 MB / 0.7326 GB, free: 162.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007104/1.001, allocations: 389 kB / 0.733 GB, free: 162.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009838/1.011, allocations: 6.193 MB / 0.739 GB, free: 159.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.198e-05/1.011, allocations: 39.81 kB / 0.7391 GB, free: 159.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.078e-05/1.011, allocations: 9.812 kB / 0.7391 GB, free: 159.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.374e-05/1.011, allocations: 26.45 kB / 0.7391 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02395/1.035, allocations: 14.94 MB / 0.7537 GB, free: 151.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-05/1.035, allocations: 4 kB / 0.7537 GB, free: 151.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002594/1.037, allocations: 0.6788 MB / 0.7544 GB, free: 150.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002282/1.04, allocations: 0.8823 MB / 0.7552 GB, free: 150.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003943/1.04, allocations: 85.72 kB / 0.7553 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008677/1.049, allocations: 7.205 MB / 0.7623 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/1.049, allocations: 4 kB / 0.7623 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0116/1.06, allocations: 8.787 MB / 0.7709 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002044/1.062, allocations: 0.9334 MB / 0.7718 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006555/1.063, allocations: 79.98 kB / 0.7719 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002047/1.065, allocations: 199.8 kB / 0.7721 GB, free: 133 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000517/1.066, allocations: 271.1 kB / 0.7724 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/1.066, allocations: 117.5 kB / 0.7725 GB, free: 132.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003175/1.069, allocations: 2.367 MB / 0.7748 GB, free: 130.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.069, allocations: 0 / 0.7748 GB, free: 130.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00512/1.074, allocations: 1.451 MB / 0.7762 GB, free: 128.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.0005748/1.075, allocations: 252.9 kB / 0.7764 GB, free: 128.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008959/1.084, allocations: 6.48 MB / 0.7828 GB, free: 122 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/1.084, allocations: 4.547 kB / 0.7828 GB, free: 122 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004455/1.088, allocations: 3.09 MB / 0.7858 GB, free: 118.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005976/1.094, allocations: 0.7812 MB / 0.7865 GB, free: 118.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02211/1.116, allocations: 17.26 MB / 0.8034 GB, free: 100.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004811/1.121, allocations: 5.004 MB / 0.8083 GB, free: 95.74 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005318/1.127, allocations: 1.59 MB / 0.8098 GB, free: 94.14 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001495/1.128, allocations: 323.4 kB / 0.8102 GB, free: 93.83 MB / 494.1 MB Notification: Performance of SimCode: time 1.182e-06/1.128, allocations: 4 kB / 0.8102 GB, free: 93.82 MB / 494.1 MB Notification: Performance of Templates: time 0.08689/1.215, allocations: 58.68 MB / 0.8675 GB, free: 35.47 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1) Environment - environmentSimulation: