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.0008925/0.0008926, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.307/1.307, allocations: 223.2 MB / 238.9 MB, free: 5.488 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.001225/0.001225, allocations: 184.8 kB / 290.2 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03355/0.03355, allocations: 8.802 MB / 350.1 MB, free: 4.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003924/0.0003924, allocations: 11.2 kB / 413.1 MB, free: 43.08 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09183/0.09224, allocations: 52.55 MB / 465.6 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02051/0.1128, allocations: 20.41 MB / 486.1 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01368/0.1265, allocations: 7.533 MB / 493.6 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003629/0.1301, allocations: 151.5 kB / 493.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004573/0.1347, allocations: 1.508 MB / 495.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008546/0.1433, allocations: 2.615 MB / 497.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004229/0.1475, allocations: 1.35 MB / 499.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01356/0.1611, allocations: 7.881 MB / 0.4952 GB, free: 4.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02243/0.1836, allocations: 13.63 MB / 0.5085 GB, free: 6.312 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005815/0.1894, allocations: 3.22 MB / 0.5117 GB, free: 3.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00573/0.1952, allocations: 3.588 MB / 0.5152 GB, free: 15.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001606/0.1968, allocations: 0.5156 MB / 0.5157 GB, free: 14.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002707/0.1995, allocations: 0.8237 MB / 0.5165 GB, free: 14.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001543/0.2011, allocations: 1.6 MB / 0.518 GB, free: 12.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002433/0.2035, allocations: 1.709 MB / 0.5197 GB, free: 10.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2224/0.426, allocations: 15.25 MB / 0.5346 GB, free: 21.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.426, allocations: 0.5625 kB / 0.5346 GB, free: 21.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.626e-06/0.426, allocations: 2.688 kB / 0.5346 GB, free: 21.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005284/0.4265, allocations: 0 / 0.5346 GB, free: 21.59 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.02688/0.4534, allocations: 9.069 MB / 0.5435 GB, free: 18.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/0.4535, allocations: 8.344 kB / 0.5435 GB, free: 18.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03321/0.4867, allocations: 5.578 MB / 0.5489 GB, free: 16.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0185/0.5053, allocations: 5.558 MB / 0.5543 GB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008945/0.5062, allocations: 0.578 MB / 0.5549 GB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004817/0.5111, allocations: 0.764 MB / 0.5556 GB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03941/0.5505, allocations: 12.65 MB / 0.568 GB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005887/0.5511, allocations: 10.62 kB / 0.568 GB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003951/0.5551, allocations: 322.4 kB / 0.5683 GB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000693/0.5558, allocations: 0.5061 MB / 0.5688 GB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02856/0.5844, allocations: 12.2 MB / 0.5807 GB, free: 7.273 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09691/0.6814, allocations: 43.82 MB / 0.6235 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02699/0.7084, allocations: 25.14 MB / 0.6481 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007525/0.7092, allocations: 243.8 kB / 0.6483 GB, free: 1.242 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005686/0.7149, allocations: 2.571 MB / 0.6508 GB, free: 14.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=391): time 1.071e-05/0.715, allocations: 0 / 0.6508 GB, free: 14.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=397): time 0.04958/0.7646, allocations: 18.08 MB / 0.6685 GB, free: 12.41 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001903/0.7648, allocations: 363.5 kB / 0.6688 GB, free: 11.98 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005615/0.7704, allocations: 3.485 MB / 0.6722 GB, free: 8.496 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007916/0.7712, allocations: 89.7 kB / 0.6723 GB, free: 8.402 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002589/0.7738, allocations: 3.376 MB / 0.6756 GB, free: 5.008 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001777/0.7756, allocations: 1.351 MB / 0.6769 GB, free: 3.668 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002973/0.7759, allocations: 116 kB / 0.677 GB, free: 3.555 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003598/0.7763, allocations: 0.5219 MB / 0.6775 GB, free: 3.027 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00397/0.7803, allocations: 2.548 MB / 0.68 GB, free: 488 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005242/0.7855, allocations: 4.478 MB / 0.6844 GB, free: 11.14 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005569/0.7911, allocations: 3.55 MB / 0.6879 GB, free: 7.641 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.81e-05/0.7912, allocations: 16 kB / 0.6879 GB, free: 7.625 MB / 478.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01543/0.8066, allocations: 8.259 MB / 0.6959 GB, free: 15.73 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.8068, allocations: 57.7 kB / 0.696 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001371/0.8069, allocations: 60 kB / 0.6961 GB, free: 15.61 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002907/0.8098, allocations: 1.013 MB / 0.697 GB, free: 14.59 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00525/0.8151, allocations: 1.262 MB / 0.6983 GB, free: 13.42 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01443/0.8296, allocations: 8.49 MB / 0.7066 GB, free: 4.836 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005191/0.8348, allocations: 367.2 kB / 0.7069 GB, free: 4.477 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001324/0.8362, allocations: 268 kB / 0.7072 GB, free: 4.215 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,53.0%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006843/0.843, allocations: 2.894 MB / 0.71 GB, free: 1.391 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001471/0.8445, allocations: 387.3 kB / 0.7104 GB, free: 1.008 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2396/1.084, allocations: 6.194 MB / 0.7164 GB, free: 169.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.245e-05/1.084, allocations: 44.98 kB / 0.7165 GB, free: 169.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.408e-05/1.084, allocations: 11.25 kB / 0.7165 GB, free: 169.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.339e-05/1.084, allocations: 21.62 kB / 0.7165 GB, free: 169.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02586/1.11, allocations: 14.9 MB / 0.731 GB, free: 164.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.968e-05/1.11, allocations: 5.125 kB / 0.7311 GB, free: 164.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002764/1.113, allocations: 0.6976 MB / 0.7317 GB, free: 164.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002344/1.115, allocations: 0.8776 MB / 0.7326 GB, free: 164.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000345/1.116, allocations: 83.95 kB / 0.7327 GB, free: 164.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009396/1.125, allocations: 7.436 MB / 0.7399 GB, free: 160.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/1.125, allocations: 8 kB / 0.7399 GB, free: 160.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01223/1.137, allocations: 9.233 MB / 0.749 GB, free: 156.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002477/1.14, allocations: 0.9377 MB / 0.7499 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006807/1.141, allocations: 88.25 kB / 0.75 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001929/1.142, allocations: 195.7 kB / 0.7501 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005411/1.143, allocations: 273.6 kB / 0.7504 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002056/1.143, allocations: 115.3 kB / 0.7505 GB, free: 155.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003463/1.147, allocations: 2.33 MB / 0.7528 GB, free: 154.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.3e-07/1.147, allocations: 7.562 kB / 0.7528 GB, free: 154.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005578/1.152, allocations: 1.453 MB / 0.7542 GB, free: 152.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005981/1.153, allocations: 253 kB / 0.7545 GB, free: 152.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009969/1.163, allocations: 6.459 MB / 0.7608 GB, free: 146.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/1.163, allocations: 0 / 0.7608 GB, free: 146.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004773/1.168, allocations: 3.092 MB / 0.7638 GB, free: 143.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003913/1.172, allocations: 0.7304 MB / 0.7645 GB, free: 142.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02336/1.195, allocations: 16.45 MB / 0.7806 GB, free: 126.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00413/1.199, allocations: 5.125 MB / 0.7856 GB, free: 121.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004668/1.204, allocations: 1.59 MB / 0.7871 GB, free: 119.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009438/1.205, allocations: 339.4 kB / 0.7874 GB, free: 119.3 MB / 494.1 MB Notification: Performance of SimCode: time 1.683e-06/1.205, allocations: 0 / 0.7874 GB, free: 119.3 MB / 494.1 MB Notification: Performance of Templates: time 0.08494/1.29, allocations: 57.15 MB / 0.8433 GB, free: 62.46 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1) Environment - environmentSimulation: