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.005058/0.005058, allocations: 99.38 kB / 15.73 MB, free: 6.035 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: 222.9 MB / 239.4 MB, free: 4.555 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.001461/0.001461, allocations: 187.8 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03575/0.03575, allocations: 8.786 MB / 348.6 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.00141, allocations: 83.88 kB / 464 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1045, allocations: 51.56 MB / 0.5034 GB, free: 9.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.2939/0.3984, allocations: 25.44 MB / 0.5283 GB, free: 4.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01681/0.4153, allocations: 7.946 MB / 0.536 GB, free: 4.883 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006693/0.4221, allocations: 171 kB / 0.5362 GB, free: 4.883 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01732/0.4394, allocations: 7.65 MB / 0.5437 GB, free: 3.957 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01194/0.4514, allocations: 3.044 MB / 0.5466 GB, free: 3.102 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006826/0.4583, allocations: 2.008 MB / 0.5486 GB, free: 2.914 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0161/0.4744, allocations: 9.229 MB / 0.5576 GB, free: 15.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02913/0.5035, allocations: 17.27 MB / 0.5745 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009453/0.5131, allocations: 4.758 MB / 0.5791 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009749/0.5228, allocations: 5.239 MB / 0.5842 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004216/0.5271, allocations: 1.359 MB / 0.5856 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005893/0.533, allocations: 1.71 MB / 0.5872 GB, free: 9.141 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004388/0.5374, allocations: 2.677 MB / 0.5899 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01185/0.5493, allocations: 5.08 MB / 0.5948 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02729/0.5766, allocations: 18.16 MB / 0.6126 GB, free: 15.62 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.5767, allocations: 0 / 0.6126 GB, free: 15.62 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5767, allocations: 4 kB / 0.6126 GB, free: 15.61 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005058/0.5772, allocations: 0 / 0.6126 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.03418/0.6114, allocations: 10.75 MB / 0.6231 GB, free: 4.855 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.6115, allocations: 12.03 kB / 0.6231 GB, free: 4.844 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03206/0.6435, allocations: 5.685 MB / 0.6286 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01281/0.6564, allocations: 5.791 MB / 0.6343 GB, free: 9.406 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006363/0.6571, allocations: 0.5773 MB / 0.6348 GB, free: 8.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003683/0.6608, allocations: 0.7713 MB / 0.6356 GB, free: 8.078 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03581/0.6966, allocations: 12.76 MB / 0.648 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004549/0.6971, allocations: 11.91 kB / 0.6481 GB, free: 11.28 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003027/0.7002, allocations: 321 kB / 0.6484 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006446/0.7008, allocations: 0.4967 MB / 0.6488 GB, free: 10.48 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02692/0.7277, allocations: 12.26 MB / 0.6608 GB, free: 14.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08185/0.8096, allocations: 43.24 MB / 0.703 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0235/0.8332, allocations: 25.19 MB / 0.7276 GB, free: 5.777 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005311/0.8385, allocations: 2.98 MB / 0.7306 GB, free: 2.789 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000556/0.8391, allocations: 242.7 kB / 0.7308 GB, free: 2.527 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4932/1.332, allocations: 2.585 MB / 0.7333 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 8.607e-06/1.332, allocations: 0 / 0.7333 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.03784/1.37, allocations: 18.1 MB / 0.751 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/1.37, allocations: 351.6 kB / 0.7513 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005596/1.376, allocations: 3.525 MB / 0.7548 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004809/1.376, allocations: 87.61 kB / 0.7548 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001701/1.378, allocations: 3.375 MB / 0.7581 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001019/1.379, allocations: 1.351 MB / 0.7595 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00147/1.381, allocations: 1.079 MB / 0.7605 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.572e-05/1.381, allocations: 306.3 kB / 0.7608 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003412/1.384, allocations: 2.551 MB / 0.7633 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004454/1.389, allocations: 4.507 MB / 0.7677 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007714/1.396, allocations: 7.452 MB / 0.775 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.099e-05/1.396, allocations: 19.69 kB / 0.775 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01156/1.408, allocations: 8.28 MB / 0.7831 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.269e-05/1.408, allocations: 57.17 kB / 0.7831 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.107e-05/1.408, allocations: 61.88 kB / 0.7832 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002357/1.411, allocations: 0.992 MB / 0.7842 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003715/1.414, allocations: 1.268 MB / 0.7854 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/1.425, allocations: 8.809 MB / 0.794 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004628/1.429, allocations: 357.3 kB / 0.7943 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004806/1.43, allocations: 270.6 kB / 0.7946 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.00378/1.433, allocations: 2.899 MB / 0.7974 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007222/1.434, allocations: 391.1 kB / 0.7978 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00866/1.443, allocations: 6.17 MB / 0.8038 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.396e-05/1.443, allocations: 46.75 kB / 0.8039 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/1.443, allocations: 9.688 kB / 0.8039 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.091e-05/1.443, allocations: 27.86 kB / 0.8039 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02033/1.463, allocations: 14.63 MB / 0.8182 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/1.463, allocations: 4 kB / 0.8182 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002464/1.466, allocations: 0.6826 MB / 0.8189 GB, free: 112.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002175/1.468, allocations: 0.8808 MB / 0.8197 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002681/1.468, allocations: 87.98 kB / 0.8198 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008721/1.477, allocations: 7.745 MB / 0.8274 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.477, allocations: 4 kB / 0.8274 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01093/1.488, allocations: 8.778 MB / 0.836 GB, free: 94.61 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001922/1.49, allocations: 0.91 MB / 0.8368 GB, free: 93.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005645/1.491, allocations: 76 kB / 0.8369 GB, free: 93.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001851/1.492, allocations: 205.3 kB / 0.8371 GB, free: 93.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005176/1.493, allocations: 271.1 kB / 0.8374 GB, free: 93.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002003/1.493, allocations: 112 kB / 0.8375 GB, free: 93.03 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002893/1.496, allocations: 2.363 MB / 0.8398 GB, free: 90.67 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/1.496, allocations: 0 / 0.8398 GB, free: 90.67 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004549/1.501, allocations: 1.454 MB / 0.8412 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.0004608/1.501, allocations: 257.9 kB / 0.8415 GB, free: 88.96 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008866/1.51, allocations: 6.467 MB / 0.8478 GB, free: 82.48 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/1.51, allocations: 8.5 kB / 0.8478 GB, free: 82.47 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00477/1.515, allocations: 3.084 MB / 0.8508 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.004009/1.519, allocations: 0.8085 MB / 0.8516 GB, free: 78.59 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02084/1.54, allocations: 13.75 MB / 0.865 GB, free: 64.75 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003931/1.544, allocations: 5.01 MB / 0.8699 GB, free: 59.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003896/1.548, allocations: 1.59 MB / 0.8715 GB, free: 58.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000902/1.548, allocations: 331.4 kB / 0.8718 GB, free: 57.78 MB / 0.5294 GB Notification: Performance of SimCode: time 1.252e-06/1.548, allocations: 4 kB / 0.8718 GB, free: 57.78 MB / 0.5294 GB Notification: Performance of Templates: time 0.08985/1.638, allocations: 59 MB / 0.9294 GB, free: 15.17 MB / 0.545 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.makefile (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)