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.001381/0.001382, allocations: 108.7 kB / 16.41 MB, free: 6.5 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.346/1.346, allocations: 222.9 MB / 240.1 MB, free: 4.406 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.001442/0.001442, allocations: 188.5 kB / 290.4 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03357/0.03357, allocations: 8.792 MB / 349.3 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 76.2 kB / 464.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1031, allocations: 51.57 MB / 0.5041 GB, free: 9.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.2492/0.3523, allocations: 25.45 MB / 0.529 GB, free: 4.922 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01491/0.3673, allocations: 7.945 MB / 0.5367 GB, free: 4.824 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004938/0.3722, allocations: 172.5 kB / 0.5369 GB, free: 4.824 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0174/0.3897, allocations: 7.647 MB / 0.5443 GB, free: 3.906 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01029/0.4, allocations: 3.048 MB / 0.5473 GB, free: 3.051 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006222/0.4062, allocations: 2.013 MB / 0.5493 GB, free: 2.855 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01715/0.4234, allocations: 9.218 MB / 0.5583 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02886/0.4523, allocations: 17.27 MB / 0.5752 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009155/0.4615, allocations: 4.767 MB / 0.5798 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009549/0.4711, allocations: 5.232 MB / 0.5849 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004186/0.4754, allocations: 1.359 MB / 0.5862 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006186/0.4816, allocations: 1.715 MB / 0.5879 GB, free: 9.145 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004153/0.4858, allocations: 2.675 MB / 0.5905 GB, free: 6.504 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01009/0.4959, allocations: 5.082 MB / 0.5955 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02232/0.5182, allocations: 18.15 MB / 0.6132 GB, free: 15.61 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.5183, allocations: 4 kB / 0.6132 GB, free: 15.61 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5183, allocations: 4 kB / 0.6132 GB, free: 15.6 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005357/0.5188, allocations: 0 / 0.6132 GB, free: 15.6 MB / 430.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.03507/0.5539, allocations: 10.75 MB / 0.6237 GB, free: 4.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.554, allocations: 12.03 kB / 0.6237 GB, free: 4.828 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03262/0.5866, allocations: 5.677 MB / 0.6293 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01316/0.5998, allocations: 5.792 MB / 0.6349 GB, free: 9.398 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006939/0.6006, allocations: 0.5753 MB / 0.6355 GB, free: 8.832 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003443/0.604, allocations: 0.7678 MB / 0.6363 GB, free: 8.074 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03355/0.6376, allocations: 12.76 MB / 0.6487 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002962/0.638, allocations: 11.91 kB / 0.6487 GB, free: 11.28 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002608/0.6406, allocations: 320.2 kB / 0.649 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005325/0.6411, allocations: 0.4967 MB / 0.6495 GB, free: 10.48 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02692/0.668, allocations: 12.26 MB / 0.6615 GB, free: 14.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07212/0.7402, allocations: 43.23 MB / 0.7037 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02432/0.7646, allocations: 25.2 MB / 0.7283 GB, free: 5.77 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005482/0.7701, allocations: 2.984 MB / 0.7312 GB, free: 2.781 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005711/0.7707, allocations: 240.8 kB / 0.7315 GB, free: 2.52 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.468/1.239, allocations: 2.578 MB / 0.734 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.429e-05/1.239, allocations: 0 / 0.734 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04587/1.285, allocations: 18.1 MB / 0.7517 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/1.285, allocations: 356.5 kB / 0.752 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006784/1.292, allocations: 3.519 MB / 0.7554 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000715/1.292, allocations: 88.48 kB / 0.7555 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002251/1.295, allocations: 3.377 MB / 0.7588 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001667/1.296, allocations: 1.348 MB / 0.7601 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001805/1.298, allocations: 1.079 MB / 0.7612 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.505e-05/1.298, allocations: 308.9 kB / 0.7615 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004016/1.302, allocations: 2.555 MB / 0.764 GB, free: 154 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004552/1.307, allocations: 4.505 MB / 0.7684 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008437/1.315, allocations: 7.456 MB / 0.7757 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001007/1.315, allocations: 15.84 kB / 0.7757 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01358/1.329, allocations: 8.279 MB / 0.7838 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.125e-05/1.329, allocations: 60.02 kB / 0.7838 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001281/1.329, allocations: 61.44 kB / 0.7839 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002526/1.332, allocations: 0.9951 MB / 0.7848 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0044/1.336, allocations: 1.261 MB / 0.7861 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/1.348, allocations: 8.809 MB / 0.7947 GB, free: 136.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005297/1.353, allocations: 362.4 kB / 0.795 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001192/1.354, allocations: 266.5 kB / 0.7953 GB, free: 136.6 MB / 0.5294 GB 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.006245/1.361, allocations: 2.897 MB / 0.7981 GB, free: 134.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001633/1.362, allocations: 391.2 kB / 0.7985 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01104/1.373, allocations: 6.172 MB / 0.8045 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.663e-05/1.373, allocations: 43.98 kB / 0.8045 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.751e-05/1.374, allocations: 14.39 kB / 0.8046 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.527e-05/1.374, allocations: 19.92 kB / 0.8046 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0265/1.4, allocations: 14.64 MB / 0.8189 GB, free: 113.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.332e-05/1.4, allocations: 4 kB / 0.8189 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002759/1.403, allocations: 0.6899 MB / 0.8196 GB, free: 112.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002408/1.405, allocations: 0.8774 MB / 0.8204 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005675/1.406, allocations: 83.98 kB / 0.8205 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009651/1.416, allocations: 7.753 MB / 0.8281 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/1.416, allocations: 8.031 kB / 0.8281 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01333/1.429, allocations: 8.775 MB / 0.8366 GB, free: 94.61 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002453/1.431, allocations: 0.91 MB / 0.8375 GB, free: 93.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001278/1.433, allocations: 76 kB / 0.8376 GB, free: 93.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002871/1.436, allocations: 197.1 kB / 0.8378 GB, free: 93.41 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000724/1.436, allocations: 271.1 kB / 0.838 GB, free: 93.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003541/1.437, allocations: 112 kB / 0.8382 GB, free: 93.03 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004466/1.441, allocations: 2.363 MB / 0.8405 GB, free: 90.68 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/1.441, allocations: 4 kB / 0.8405 GB, free: 90.67 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007028/1.448, allocations: 1.454 MB / 0.8419 GB, free: 89.22 MB / 0.5294 GB 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.0009256/1.449, allocations: 253.1 kB / 0.8421 GB, free: 88.97 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01089/1.46, allocations: 6.478 MB / 0.8485 GB, free: 82.48 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/1.46, allocations: 0 / 0.8485 GB, free: 82.48 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005223/1.465, allocations: 3.087 MB / 0.8515 GB, free: 79.36 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005653/1.471, allocations: 0.8144 MB / 0.8523 GB, free: 78.58 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02615/1.497, allocations: 13.54 MB / 0.8655 GB, free: 64.94 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006197/1.504, allocations: 4.859 MB / 0.8702 GB, free: 60.04 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001699/1.505, allocations: 375.3 kB / 0.8706 GB, free: 59.68 MB / 0.5294 GB Notification: Performance of SimCode: time 1.142e-06/1.505, allocations: 0 / 0.8706 GB, free: 59.68 MB / 0.5294 GB Notification: Performance of Templates: time 0.3812/1.887, allocations: 132.3 MB / 0.9998 GB, free: 135 MB / 0.545 GB 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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)