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.001367/0.001367, allocations: 105.8 kB / 16.41 MB, free: 6.465 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.349/1.349, allocations: 222.9 MB / 240.1 MB, free: 4.531 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.001365/0.001365, allocations: 180.5 kB / 290.4 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03387/0.03387, allocations: 8.797 MB / 349.3 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 67.89 kB / 464.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09824/0.09971, allocations: 51.57 MB / 0.5041 GB, free: 9.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.2547/0.3545, allocations: 25.41 MB / 0.5289 GB, free: 4.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01665/0.3712, allocations: 7.95 MB / 0.5367 GB, free: 4.832 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006323/0.3775, allocations: 175.7 kB / 0.5368 GB, free: 4.828 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01743/0.395, allocations: 7.64 MB / 0.5443 GB, free: 3.922 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01034/0.4054, allocations: 3.049 MB / 0.5473 GB, free: 3.066 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006328/0.4117, allocations: 2.015 MB / 0.5492 GB, free: 2.871 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01391/0.4257, allocations: 9.217 MB / 0.5582 GB, free: 15.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0312/0.4569, allocations: 17.28 MB / 0.5751 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009315/0.4663, allocations: 4.762 MB / 0.5798 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009455/0.4758, allocations: 5.24 MB / 0.5849 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003969/0.4798, allocations: 1.355 MB / 0.5862 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005873/0.4857, allocations: 1.708 MB / 0.5879 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004317/0.49, allocations: 2.675 MB / 0.5905 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009922/0.5, allocations: 5.091 MB / 0.5955 GB, free: 1.406 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02288/0.5229, allocations: 18.15 MB / 0.6132 GB, free: 15.61 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.523, allocations: 4 kB / 0.6132 GB, free: 15.61 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.523, allocations: 0 / 0.6132 GB, free: 15.61 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005005/0.5235, allocations: 0 / 0.6132 GB, free: 15.61 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.03361/0.5571, allocations: 10.75 MB / 0.6237 GB, free: 4.844 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.5572, allocations: 12.03 kB / 0.6237 GB, free: 4.832 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03287/0.59, allocations: 5.68 MB / 0.6292 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01232/0.6024, allocations: 5.785 MB / 0.6349 GB, free: 9.402 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005984/0.603, allocations: 0.5893 MB / 0.6355 GB, free: 8.824 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002966/0.606, allocations: 0.7671 MB / 0.6362 GB, free: 8.066 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03085/0.6369, allocations: 12.76 MB / 0.6487 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004055/0.6374, allocations: 15.89 kB / 0.6487 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002604/0.64, allocations: 322.9 kB / 0.649 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006173/0.6406, allocations: 0.4928 MB / 0.6495 GB, free: 10.47 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0269/0.6675, allocations: 12.25 MB / 0.6614 GB, free: 14.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07338/0.7409, allocations: 43.25 MB / 0.7037 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02481/0.7658, allocations: 25.19 MB / 0.7283 GB, free: 5.758 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005315/0.7712, allocations: 2.974 MB / 0.7312 GB, free: 2.777 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005303/0.7717, allocations: 247.8 kB / 0.7314 GB, free: 2.512 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4257/1.197, allocations: 2.577 MB / 0.7339 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.031e-05/1.197, allocations: 0 / 0.7339 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04161/1.239, allocations: 18.1 MB / 0.7516 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001294/1.239, allocations: 357 kB / 0.7519 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006579/1.246, allocations: 3.518 MB / 0.7554 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007253/1.247, allocations: 88.86 kB / 0.7555 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002352/1.249, allocations: 3.373 MB / 0.7588 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001664/1.251, allocations: 1.351 MB / 0.7601 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001801/1.252, allocations: 1.076 MB / 0.7611 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.015e-05/1.253, allocations: 309.1 kB / 0.7614 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003944/1.256, allocations: 2.554 MB / 0.7639 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004825/1.261, allocations: 4.508 MB / 0.7683 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008697/1.27, allocations: 7.457 MB / 0.7756 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.887e-05/1.27, allocations: 19.72 kB / 0.7756 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01463/1.285, allocations: 8.267 MB / 0.7837 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001246/1.285, allocations: 61.31 kB / 0.7838 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001342/1.285, allocations: 60.25 kB / 0.7838 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002919/1.288, allocations: 1.002 MB / 0.7848 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005362/1.293, allocations: 1.259 MB / 0.786 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01169/1.305, allocations: 8.813 MB / 0.7946 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004959/1.31, allocations: 358.6 kB / 0.795 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001022/1.311, allocations: 268.2 kB / 0.7952 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.005786/1.317, allocations: 2.904 MB / 0.7981 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001454/1.319, allocations: 391.1 kB / 0.7984 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01061/1.329, allocations: 6.168 MB / 0.8045 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.664e-05/1.329, allocations: 47.98 kB / 0.8045 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.436e-05/1.329, allocations: 8 kB / 0.8045 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.13e-05/1.329, allocations: 22.11 kB / 0.8045 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02475/1.354, allocations: 14.64 MB / 0.8188 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.417e-05/1.354, allocations: 4 kB / 0.8188 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002824/1.357, allocations: 0.6826 MB / 0.8195 GB, free: 112.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002409/1.359, allocations: 0.8845 MB / 0.8204 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005675/1.36, allocations: 87.98 kB / 0.8204 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009617/1.37, allocations: 7.746 MB / 0.828 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/1.37, allocations: 4 kB / 0.828 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01345/1.383, allocations: 8.783 MB / 0.8366 GB, free: 94.61 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002306/1.385, allocations: 0.9122 MB / 0.8375 GB, free: 93.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001188/1.387, allocations: 76 kB / 0.8376 GB, free: 93.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002812/1.39, allocations: 191.8 kB / 0.8377 GB, free: 93.41 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006969/1.39, allocations: 279.1 kB / 0.838 GB, free: 93.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003322/1.391, allocations: 112 kB / 0.8381 GB, free: 93.03 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003948/1.395, allocations: 2.359 MB / 0.8404 GB, free: 90.68 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.9e-07/1.395, allocations: 0 / 0.8404 GB, free: 90.68 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006395/1.401, allocations: 1.451 MB / 0.8418 GB, free: 89.23 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.0008533/1.402, allocations: 261.8 kB / 0.8421 GB, free: 88.97 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01024/1.412, allocations: 6.466 MB / 0.8484 GB, free: 82.48 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/1.412, allocations: 1.938 kB / 0.8484 GB, free: 82.48 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004926/1.417, allocations: 3.085 MB / 0.8514 GB, free: 79.37 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005604/1.423, allocations: 0.8201 MB / 0.8522 GB, free: 78.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02574/1.448, allocations: 13.55 MB / 0.8654 GB, free: 64.95 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006421/1.455, allocations: 4.855 MB / 0.8702 GB, free: 60.05 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001842/1.457, allocations: 375.3 kB / 0.8705 GB, free: 59.69 MB / 0.5294 GB Notification: Performance of SimCode: time 1.422e-06/1.457, allocations: 0 / 0.8705 GB, free: 59.69 MB / 0.5294 GB Notification: Performance of Templates: time 0.3795/1.836, allocations: 132.3 MB / 0.9998 GB, free: 134.6 MB / 0.545 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.makefile (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)