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.00131/0.00131, allocations: 99.86 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.425/1.425, allocations: 223.2 MB / 239 MB, free: 5.637 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.001053/0.001053, allocations: 177.2 kB / 290.2 MB, free: 2.336 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03261/0.03261, allocations: 8.789 MB / 350.1 MB, free: 4.766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004124/0.0004124, allocations: 11.22 kB / 413.1 MB, free: 43.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1039, allocations: 52.56 MB / 465.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02154/0.1255, allocations: 20.42 MB / 486.1 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01641/0.142, allocations: 7.534 MB / 493.6 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005101/0.1471, allocations: 147.6 kB / 493.8 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005938/0.1531, allocations: 1.508 MB / 495.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009407/0.1625, allocations: 2.616 MB / 497.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004703/0.1673, allocations: 1.342 MB / 499.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01501/0.1823, allocations: 7.891 MB / 0.4952 GB, free: 4.043 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02678/0.2091, allocations: 13.62 MB / 0.5085 GB, free: 6.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006375/0.2155, allocations: 3.224 MB / 0.5117 GB, free: 3.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006634/0.2222, allocations: 3.553 MB / 0.5151 GB, free: 15.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001791/0.224, allocations: 0.5156 MB / 0.5156 GB, free: 15.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003066/0.2271, allocations: 0.8198 MB / 0.5164 GB, free: 14.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001562/0.2287, allocations: 1.604 MB / 0.518 GB, free: 12.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002618/0.2313, allocations: 1.705 MB / 0.5197 GB, free: 10.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2422/0.4735, allocations: 15.26 MB / 0.5346 GB, free: 21.6 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.4735, allocations: 0 / 0.5346 GB, free: 21.6 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4735, allocations: 0 / 0.5346 GB, free: 21.6 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004934/0.474, allocations: 0 / 0.5346 GB, free: 21.6 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.02684/0.5009, allocations: 9.069 MB / 0.5434 GB, free: 18.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.5009, allocations: 10.03 kB / 0.5434 GB, free: 18.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03322/0.5342, allocations: 5.573 MB / 0.5489 GB, free: 16.89 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01821/0.5525, allocations: 5.566 MB / 0.5543 GB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008923/0.5534, allocations: 0.5772 MB / 0.5549 GB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004819/0.5582, allocations: 0.7629 MB / 0.5556 GB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03973/0.598, allocations: 12.64 MB / 0.568 GB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008074/0.5989, allocations: 12.5 kB / 0.568 GB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004368/0.6033, allocations: 321.9 kB / 0.5683 GB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006702/0.604, allocations: 0.4966 MB / 0.5688 GB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02848/0.6325, allocations: 12.2 MB / 0.5807 GB, free: 7.348 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08266/0.7152, allocations: 43.83 MB / 0.6235 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02428/0.7395, allocations: 25.13 MB / 0.648 GB, free: 1.551 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000839/0.7404, allocations: 251.7 kB / 0.6483 GB, free: 1.281 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005235/0.7456, allocations: 2.57 MB / 0.6508 GB, free: 14.65 MB / 446.1 MB Notification: Performance of pre-optimization done (n=391): time 5.129e-06/0.7457, allocations: 0 / 0.6508 GB, free: 14.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=397): time 0.03925/0.7849, allocations: 18.1 MB / 0.6685 GB, free: 12.45 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001805/0.7851, allocations: 351.5 kB / 0.6688 GB, free: 12.03 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00555/0.7907, allocations: 3.483 MB / 0.6722 GB, free: 8.539 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006892/0.7914, allocations: 93.7 kB / 0.6723 GB, free: 8.441 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002145/0.7936, allocations: 3.373 MB / 0.6756 GB, free: 5.051 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00154/0.7951, allocations: 1.354 MB / 0.6769 GB, free: 3.707 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003076/0.7954, allocations: 116 kB / 0.677 GB, free: 3.594 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000321/0.7958, allocations: 0.5294 MB / 0.6775 GB, free: 3.062 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004063/0.7998, allocations: 2.537 MB / 0.68 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005791/0.8057, allocations: 4.482 MB / 0.6844 GB, free: 11.18 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005995/0.8117, allocations: 3.539 MB / 0.6878 GB, free: 7.688 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.199e-05/0.8118, allocations: 24 kB / 0.6879 GB, free: 7.664 MB / 478.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01435/0.8261, allocations: 8.264 MB / 0.6959 GB, free: 15.76 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.919e-05/0.8262, allocations: 65.67 kB / 0.696 GB, free: 15.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001097/0.8263, allocations: 60 kB / 0.6961 GB, free: 15.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002582/0.8289, allocations: 0.998 MB / 0.697 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004591/0.8335, allocations: 1.266 MB / 0.6983 GB, free: 13.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0123/0.8459, allocations: 8.493 MB / 0.7066 GB, free: 4.867 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005109/0.851, allocations: 359.3 kB / 0.7069 GB, free: 4.516 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008765/0.8519, allocations: 268 kB / 0.7072 GB, free: 4.254 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.005378/0.8573, allocations: 2.905 MB / 0.71 GB, free: 1.422 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009467/0.8583, allocations: 383.3 kB / 0.7104 GB, free: 1.043 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.242/1.1, allocations: 6.191 MB / 0.7164 GB, free: 169.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.005e-05/1.1, allocations: 41.59 kB / 0.7165 GB, free: 169.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.238e-05/1.1, allocations: 9.719 kB / 0.7165 GB, free: 169.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.903e-05/1.1, allocations: 21.14 kB / 0.7165 GB, free: 169.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02551/1.126, allocations: 14.92 MB / 0.731 GB, free: 164.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.679e-05/1.126, allocations: 3.906 kB / 0.7311 GB, free: 164.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002678/1.129, allocations: 0.6918 MB / 0.7317 GB, free: 164.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002333/1.131, allocations: 0.8799 MB / 0.7326 GB, free: 164.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002812/1.131, allocations: 83.47 kB / 0.7327 GB, free: 164.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009609/1.141, allocations: 7.439 MB / 0.7399 GB, free: 160.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/1.141, allocations: 7.656 kB / 0.7399 GB, free: 160.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01274/1.154, allocations: 9.235 MB / 0.749 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002973/1.157, allocations: 0.9435 MB / 0.7499 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001806/1.159, allocations: 75.55 kB / 0.7499 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003747/1.162, allocations: 203.8 kB / 0.7501 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007218/1.163, allocations: 268.1 kB / 0.7504 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002591/1.163, allocations: 115.5 kB / 0.7505 GB, free: 155.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003907/1.167, allocations: 2.33 MB / 0.7528 GB, free: 154.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.167, allocations: 0 / 0.7528 GB, free: 154.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006205/1.173, allocations: 1.46 MB / 0.7542 GB, free: 152.9 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.0007917/1.174, allocations: 255.7 kB / 0.7545 GB, free: 152.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01015/1.184, allocations: 6.466 MB / 0.7608 GB, free: 146.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/1.185, allocations: 1.875 kB / 0.7608 GB, free: 146.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005017/1.19, allocations: 3.09 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.004026/1.194, allocations: 0.7182 MB / 0.7645 GB, free: 143 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02532/1.219, allocations: 16.44 MB / 0.7805 GB, free: 126.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004843/1.224, allocations: 5.137 MB / 0.7856 GB, free: 121.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004668/1.229, allocations: 1.59 MB / 0.7871 GB, free: 119.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001032/1.23, allocations: 327.4 kB / 0.7874 GB, free: 119.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.353e-06/1.23, allocations: 0 / 0.7874 GB, free: 119.4 MB / 494.1 MB Notification: Performance of Templates: time 0.09027/1.32, allocations: 57.17 MB / 0.8433 GB, free: 62.53 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: