Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, 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.375/1.375, allocations: 223.2 MB / 238.9 MB, free: 5.645 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.002074/0.002074, allocations: 196.2 kB / 290.2 MB, free: 2.332 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03221/0.03221, allocations: 8.797 MB / 350.1 MB, free: 4.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000393/0.000393, allocations: 10.62 kB / 413.1 MB, free: 43.08 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1043, allocations: 52.56 MB / 465.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02062/0.125, allocations: 20.43 MB / 486.1 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01547/0.1405, allocations: 7.534 MB / 493.6 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004488/0.145, allocations: 151.6 kB / 493.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005481/0.1505, allocations: 1.512 MB / 495.3 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008805/0.1593, allocations: 2.608 MB / 497.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004515/0.1639, allocations: 1.34 MB / 499.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01366/0.1776, allocations: 7.894 MB / 0.4952 GB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02348/0.2011, allocations: 13.62 MB / 0.5085 GB, free: 6.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00492/0.206, allocations: 3.228 MB / 0.5117 GB, free: 3.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005092/0.2111, allocations: 3.568 MB / 0.5152 GB, free: 15.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001164/0.2123, allocations: 0.5156 MB / 0.5157 GB, free: 15.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002237/0.2145, allocations: 0.8159 MB / 0.5165 GB, free: 14.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001489/0.216, allocations: 1.608 MB / 0.518 GB, free: 12.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001957/0.218, allocations: 1.705 MB / 0.5197 GB, free: 10.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.245/0.463, allocations: 15.25 MB / 0.5346 GB, free: 21.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.463, allocations: 0.6562 kB / 0.5346 GB, free: 21.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.463, allocations: 1.344 kB / 0.5346 GB, free: 21.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005625/0.4636, allocations: 0.9062 kB / 0.5346 GB, free: 21.68 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.02816/0.4918, allocations: 9.066 MB / 0.5434 GB, free: 18.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.244e-05/0.4919, allocations: 12.27 kB / 0.5435 GB, free: 18.94 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0345/0.5264, allocations: 5.574 MB / 0.5489 GB, free: 16.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01421/0.5406, allocations: 5.559 MB / 0.5543 GB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005915/0.5413, allocations: 0.5836 MB / 0.5549 GB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003536/0.5448, allocations: 0.7648 MB / 0.5556 GB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03106/0.5759, allocations: 12.64 MB / 0.568 GB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002134/0.5761, allocations: 18.09 kB / 0.568 GB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001213/0.5773, allocations: 322.2 kB / 0.5683 GB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004082/0.5778, allocations: 0.4953 MB / 0.5688 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02464/0.6024, allocations: 12.2 MB / 0.5807 GB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09397/0.6964, allocations: 43.83 MB / 0.6235 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03326/0.7297, allocations: 25.14 MB / 0.6481 GB, free: 1.586 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008632/0.7307, allocations: 248.3 kB / 0.6483 GB, free: 1.32 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007286/0.738, allocations: 2.57 MB / 0.6508 GB, free: 14.69 MB / 446.1 MB Notification: Performance of pre-optimization done (n=391): time 1.136e-05/0.738, allocations: 0 / 0.6508 GB, free: 14.69 MB / 446.1 MB Notification: Performance of matching and sorting (n=397): time 0.06655/0.8046, allocations: 18.09 MB / 0.6685 GB, free: 12.49 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002595/0.8049, allocations: 351.5 kB / 0.6688 GB, free: 12.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008145/0.8131, allocations: 3.491 MB / 0.6722 GB, free: 8.574 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008846/0.814, allocations: 89.7 kB / 0.6723 GB, free: 8.48 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002817/0.8168, allocations: 3.373 MB / 0.6756 GB, free: 5.086 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002211/0.8191, allocations: 1.348 MB / 0.6769 GB, free: 3.75 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009566/0.82, allocations: 119.7 kB / 0.677 GB, free: 3.637 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0006549/0.8207, allocations: 0.5219 MB / 0.6775 GB, free: 3.109 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005558/0.8263, allocations: 2.545 MB / 0.68 GB, free: 0.5586 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007792/0.8341, allocations: 4.478 MB / 0.6844 GB, free: 11.23 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006869/0.841, allocations: 3.55 MB / 0.6879 GB, free: 7.723 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-05/0.8412, allocations: 16 kB / 0.6879 GB, free: 7.707 MB / 478.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01763/0.8588, allocations: 8.258 MB / 0.696 GB, free: 15.81 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001466/0.859, allocations: 65.69 kB / 0.696 GB, free: 15.74 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001558/0.8592, allocations: 60 kB / 0.6961 GB, free: 15.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003141/0.8623, allocations: 1.002 MB / 0.697 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005226/0.8676, allocations: 1.265 MB / 0.6983 GB, free: 13.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01358/0.8812, allocations: 8.501 MB / 0.7066 GB, free: 4.906 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005824/0.887, allocations: 363.4 kB / 0.7069 GB, free: 4.551 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00156/0.8886, allocations: 264 kB / 0.7072 GB, free: 4.293 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.007664/0.8963, allocations: 2.898 MB / 0.71 GB, free: 1.465 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001274/0.8976, allocations: 387.2 kB / 0.7104 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2523/1.15, allocations: 6.198 MB / 0.7164 GB, free: 169.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.622e-05/1.15, allocations: 40.53 kB / 0.7165 GB, free: 169.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.061e-05/1.15, allocations: 10.38 kB / 0.7165 GB, free: 169.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.903e-05/1.15, allocations: 21.27 kB / 0.7165 GB, free: 169.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02668/1.177, allocations: 14.91 MB / 0.7311 GB, free: 165 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.878e-05/1.177, allocations: 6.062 kB / 0.7311 GB, free: 165 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002645/1.179, allocations: 0.6858 MB / 0.7317 GB, free: 164.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002273/1.182, allocations: 0.8811 MB / 0.7326 GB, free: 164.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000318/1.182, allocations: 87.12 kB / 0.7327 GB, free: 164.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00957/1.192, allocations: 7.442 MB / 0.74 GB, free: 160.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.192, allocations: 3.844 kB / 0.74 GB, free: 160.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01426/1.206, allocations: 9.237 MB / 0.749 GB, free: 156.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003131/1.209, allocations: 0.9368 MB / 0.7499 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009466/1.21, allocations: 79.58 kB / 0.75 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002303/1.212, allocations: 203.3 kB / 0.7502 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005072/1.213, allocations: 271.8 kB / 0.7504 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002756/1.213, allocations: 111 kB / 0.7505 GB, free: 155.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003598/1.217, allocations: 2.336 MB / 0.7528 GB, free: 154.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.217, allocations: 0 / 0.7528 GB, free: 154.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005456/1.222, allocations: 1.459 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.000595/1.223, allocations: 250.6 kB / 0.7545 GB, free: 152.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008619/1.232, allocations: 6.463 MB / 0.7608 GB, free: 146.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/1.232, allocations: 0 / 0.7608 GB, free: 146.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004054/1.236, 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.00318/1.239, allocations: 0.7172 MB / 0.7645 GB, free: 143 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02167/1.261, allocations: 16.45 MB / 0.7806 GB, free: 126.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004913/1.266, allocations: 5.135 MB / 0.7856 GB, free: 121.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005017/1.271, allocations: 1.594 MB / 0.7871 GB, free: 119.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/1.272, allocations: 335.4 kB / 0.7875 GB, free: 119.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.743e-06/1.272, allocations: 0 / 0.7875 GB, free: 119.4 MB / 494.1 MB Notification: Performance of Templates: time 0.08687/1.359, allocations: 57.16 MB / 0.8433 GB, free: 62.54 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1) Environment - environmentSimulation: