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.001267/0.001267, allocations: 104.3 kB / 16.35 MB, free: 5.875 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.367/1.367, 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.001378/0.001378, allocations: 184 kB / 290.3 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03513/0.03513, allocations: 8.801 MB / 349.3 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 85.25 kB / 412.5 MB, free: 41.66 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09482/0.09655, allocations: 51.56 MB / 464.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02474/0.1213, allocations: 25.45 MB / 489.5 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01576/0.1371, allocations: 7.936 MB / 497.5 MB, free: 12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005028/0.1422, allocations: 175.5 kB / 497.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01732/0.1595, allocations: 7.656 MB / 0.4934 GB, free: 4.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009673/0.1692, allocations: 3.036 MB / 0.4964 GB, free: 1.109 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005691/0.1749, allocations: 2.032 MB / 0.4984 GB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01273/0.1877, allocations: 9.228 MB / 0.5074 GB, free: 5.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02666/0.2144, allocations: 17.25 MB / 0.5243 GB, free: 4.422 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2322/0.4466, allocations: 4.743 MB / 0.5289 GB, free: 19.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008302/0.4549, allocations: 5.235 MB / 0.534 GB, free: 19.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005473/0.4604, allocations: 1.354 MB / 0.5353 GB, free: 19.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009126/0.4696, allocations: 1.719 MB / 0.537 GB, free: 19.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007184/0.4768, allocations: 2.669 MB / 0.5396 GB, free: 19.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01556/0.4924, allocations: 5.083 MB / 0.5446 GB, free: 18.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02577/0.5182, allocations: 18.16 MB / 0.5623 GB, free: 13.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.5183, allocations: 3.984 kB / 0.5623 GB, free: 13.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5183, allocations: 0 / 0.5623 GB, free: 13.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005517/0.5188, 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.038/0.5568, allocations: 10.74 MB / 0.5728 GB, free: 6.945 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.921e-05/0.5569, allocations: 8.312 kB / 0.5728 GB, free: 6.945 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03237/0.5893, allocations: 5.674 MB / 0.5784 GB, free: 4.406 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01396/0.6033, allocations: 5.799 MB / 0.584 GB, free: 0.5625 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007036/0.6041, allocations: 0.5768 MB / 0.5846 GB, free: 316 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004822/0.6089, allocations: 0.7575 MB / 0.5853 GB, free: 64 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03675/0.6457, allocations: 12.77 MB / 0.5978 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003151/0.646, allocations: 11.91 kB / 0.5978 GB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004148/0.6502, allocations: 323.3 kB / 0.5981 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000623/0.6508, allocations: 0.4967 MB / 0.5986 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02878/0.6796, allocations: 12.26 MB / 0.6106 GB, free: 6.199 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0811/0.7608, allocations: 43.24 MB / 0.6528 GB, free: 10.34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02322/0.784, allocations: 25.18 MB / 0.6774 GB, free: 14.34 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005268/0.7893, allocations: 2.976 MB / 0.6803 GB, free: 11.36 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004115/0.7898, allocations: 243.4 kB / 0.6805 GB, free: 11.09 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003763/0.7935, allocations: 2.582 MB / 0.683 GB, free: 8.445 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 5.149e-06/0.7936, allocations: 0 / 0.683 GB, free: 8.445 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.03814/0.8317, allocations: 18.11 MB / 0.7007 GB, free: 6.238 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001638/0.8319, allocations: 355.5 kB / 0.7011 GB, free: 5.816 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005399/0.8373, allocations: 3.522 MB / 0.7045 GB, free: 2.289 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006867/0.838, allocations: 85.7 kB / 0.7046 GB, free: 2.199 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2369/1.075, allocations: 3.366 MB / 0.7079 GB, free: 165.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001838/1.077, allocations: 1.353 MB / 0.7092 GB, free: 165.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001822/1.079, allocations: 1.079 MB / 0.7103 GB, free: 165 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.661e-05/1.079, allocations: 309.8 kB / 0.7106 GB, free: 164.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003678/1.082, allocations: 2.547 MB / 0.713 GB, free: 164.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005203/1.088, allocations: 4.512 MB / 0.7174 GB, free: 162.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0104/1.098, allocations: 7.451 MB / 0.7247 GB, free: 159.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.909e-05/1.098, allocations: 17.22 kB / 0.7247 GB, free: 159.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01457/1.113, allocations: 8.279 MB / 0.7328 GB, free: 158.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.012e-05/1.113, allocations: 58.48 kB / 0.7329 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001051/1.113, allocations: 58.25 kB / 0.7329 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002709/1.116, allocations: 0.9969 MB / 0.7339 GB, free: 157.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004998/1.121, allocations: 1.259 MB / 0.7351 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/1.132, allocations: 8.815 MB / 0.7437 GB, free: 152.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004653/1.136, allocations: 354.9 kB / 0.7441 GB, free: 152.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005478/1.137, allocations: 276.2 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.005319/1.142, allocations: 2.905 MB / 0.7472 GB, free: 151.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009251/1.143, allocations: 388.7 kB / 0.7476 GB, free: 150.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009118/1.152, allocations: 6.174 MB / 0.7536 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.658e-05/1.152, allocations: 40 kB / 0.7536 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.952e-05/1.152, allocations: 16.81 kB / 0.7536 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-05/1.152, allocations: 20.44 kB / 0.7537 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02218/1.175, allocations: 14.64 MB / 0.768 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.76e-05/1.175, allocations: 6.672 kB / 0.768 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002404/1.177, allocations: 0.6758 MB / 0.7686 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00221/1.179, allocations: 0.8797 MB / 0.7695 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002181/1.18, allocations: 83.98 kB / 0.7696 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008851/1.188, allocations: 7.743 MB / 0.7771 GB, free: 126.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/1.188, allocations: 15.97 kB / 0.7771 GB, free: 126.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.011/1.199, allocations: 8.773 MB / 0.7857 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002414/1.202, allocations: 0.9139 MB / 0.7866 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006069/1.202, allocations: 75.98 kB / 0.7867 GB, free: 116.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001872/1.204, allocations: 197.4 kB / 0.7869 GB, free: 116.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005158/1.205, allocations: 271.1 kB / 0.7871 GB, free: 115.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002152/1.205, allocations: 116 kB / 0.7872 GB, free: 115.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003157/1.208, allocations: 2.363 MB / 0.7895 GB, free: 113.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/1.208, allocations: 0 / 0.7895 GB, free: 113.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004801/1.213, allocations: 1.449 MB / 0.7909 GB, free: 112 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.000593/1.214, allocations: 254.8 kB / 0.7912 GB, free: 111.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008703/1.222, allocations: 6.49 MB / 0.7975 GB, free: 105.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/1.222, allocations: 0 / 0.7975 GB, free: 105.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004013/1.226, allocations: 3.088 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.003982/1.23, allocations: 0.8227 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.02394/1.254, allocations: 13.73 MB / 0.8148 GB, free: 87.57 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004371/1.259, allocations: 5.001 MB / 0.8196 GB, free: 82.53 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003942/1.263, allocations: 1.587 MB / 0.8212 GB, free: 80.96 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008774/1.264, allocations: 335.4 kB / 0.8215 GB, free: 80.63 MB / 494.1 MB Notification: Performance of SimCode: time 1.062e-06/1.264, allocations: 0 / 0.8215 GB, free: 80.63 MB / 494.1 MB Notification: Performance of Templates: time 0.0829/1.347, allocations: 56.87 MB / 0.877 GB, free: 24.21 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 cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)