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.007624/0.007624, allocations: 103.3 kB / 15.74 MB, free: 5.957 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.365/1.365, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.001229/0.001229, allocations: 192.5 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03433/0.03433, allocations: 8.791 MB / 348.6 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 76.16 kB / 464 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1039, allocations: 51.57 MB / 0.5034 GB, free: 9.414 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.326/0.4299, allocations: 25.43 MB / 0.5283 GB, free: 4.965 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01844/0.4484, allocations: 7.946 MB / 0.536 GB, free: 4.871 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006675/0.4551, allocations: 179 kB / 0.5362 GB, free: 4.867 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01903/0.4742, allocations: 7.645 MB / 0.5437 GB, free: 3.949 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01595/0.4902, allocations: 3.048 MB / 0.5466 GB, free: 3.094 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006934/0.4972, allocations: 2.018 MB / 0.5486 GB, free: 2.895 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01978/0.517, allocations: 9.221 MB / 0.5576 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03465/0.5517, allocations: 17.27 MB / 0.5745 GB, free: 5.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01165/0.5634, allocations: 4.768 MB / 0.5791 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01178/0.5752, allocations: 5.235 MB / 0.5843 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005434/0.5807, allocations: 1.355 MB / 0.5856 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008633/0.5893, allocations: 1.707 MB / 0.5872 GB, free: 9.137 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006874/0.5963, allocations: 2.679 MB / 0.5899 GB, free: 6.492 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01485/0.6112, allocations: 5.087 MB / 0.5948 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02698/0.6382, allocations: 18.15 MB / 0.6126 GB, free: 15.59 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.222e-05/0.6383, allocations: 3.984 kB / 0.6126 GB, free: 15.59 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.6383, allocations: 0 / 0.6126 GB, free: 15.59 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006219/0.6389, allocations: 0 / 0.6126 GB, free: 15.59 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.03835/0.6773, allocations: 10.75 MB / 0.6231 GB, free: 4.832 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.6773, allocations: 12.03 kB / 0.6231 GB, free: 4.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03275/0.7101, allocations: 5.677 MB / 0.6286 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01349/0.7236, allocations: 5.801 MB / 0.6343 GB, free: 9.379 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006705/0.7243, allocations: 0.5782 MB / 0.6348 GB, free: 8.812 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004425/0.7288, allocations: 0.7713 MB / 0.6356 GB, free: 8.051 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0379/0.7667, allocations: 12.75 MB / 0.648 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003803/0.7671, allocations: 11.84 kB / 0.6481 GB, free: 11.26 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003478/0.7706, allocations: 332.8 kB / 0.6484 GB, free: 10.95 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005777/0.7712, allocations: 0.5006 MB / 0.6489 GB, free: 10.45 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02896/0.8002, allocations: 12.24 MB / 0.6608 GB, free: 14.18 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08535/0.8856, allocations: 43.23 MB / 0.703 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02427/0.9099, allocations: 25.2 MB / 0.7276 GB, free: 5.75 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005343/0.9153, allocations: 2.979 MB / 0.7306 GB, free: 2.766 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003797/0.9157, allocations: 240.6 kB / 0.7308 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4889/1.405, allocations: 2.581 MB / 0.7333 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.204e-05/1.405, allocations: 0 / 0.7333 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04102/1.446, allocations: 18.1 MB / 0.751 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/1.446, allocations: 362.8 kB / 0.7513 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007126/1.453, allocations: 3.518 MB / 0.7548 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000857/1.454, allocations: 91.55 kB / 0.7548 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002232/1.456, allocations: 3.375 MB / 0.7581 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001591/1.458, allocations: 1.35 MB / 0.7595 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001828/1.46, allocations: 1.079 MB / 0.7605 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.146e-05/1.46, allocations: 305.1 kB / 0.7608 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003793/1.463, allocations: 2.55 MB / 0.7633 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004379/1.468, allocations: 4.517 MB / 0.7677 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008122/1.476, allocations: 7.453 MB / 0.775 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.024e-05/1.476, allocations: 19.78 kB / 0.775 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01276/1.489, allocations: 8.273 MB / 0.7831 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.915e-05/1.489, allocations: 60.91 kB / 0.7831 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001194/1.489, allocations: 61.22 kB / 0.7832 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00261/1.492, allocations: 0.9971 MB / 0.7842 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003987/1.496, allocations: 1.26 MB / 0.7854 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/1.507, allocations: 8.811 MB / 0.794 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005058/1.512, allocations: 362.4 kB / 0.7944 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007456/1.513, allocations: 265.1 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.004997/1.518, allocations: 2.902 MB / 0.7974 GB, free: 134.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001102/1.519, allocations: 392.2 kB / 0.7978 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008862/1.528, allocations: 6.174 MB / 0.8038 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.248e-05/1.528, allocations: 40 kB / 0.8039 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/1.528, allocations: 12 kB / 0.8039 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.107e-05/1.528, allocations: 23.92 kB / 0.8039 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02093/1.549, allocations: 14.63 MB / 0.8182 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.484e-05/1.549, allocations: 4.625 kB / 0.8182 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002433/1.551, allocations: 0.6865 MB / 0.8189 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00213/1.553, allocations: 0.8784 MB / 0.8197 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001955/1.553, allocations: 83.98 kB / 0.8198 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008814/1.562, allocations: 7.752 MB / 0.8274 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.562, allocations: 4 kB / 0.8274 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01079/1.573, allocations: 8.783 MB / 0.836 GB, free: 94.57 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002264/1.575, allocations: 0.9062 MB / 0.8369 GB, free: 93.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006843/1.576, allocations: 79.98 kB / 0.8369 GB, free: 93.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001965/1.578, allocations: 195.8 kB / 0.8371 GB, free: 93.37 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005776/1.579, allocations: 275.1 kB / 0.8374 GB, free: 93.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001913/1.579, allocations: 108 kB / 0.8375 GB, free: 93 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002909/1.582, allocations: 2.363 MB / 0.8398 GB, free: 90.64 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.91e-07/1.582, allocations: 0 / 0.8398 GB, free: 90.64 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005183/1.587, allocations: 1.451 MB / 0.8412 GB, free: 89.19 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.000577/1.588, allocations: 257.6 kB / 0.8415 GB, free: 88.94 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009299/1.597, allocations: 6.47 MB / 0.8478 GB, free: 82.45 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/1.597, allocations: 4 kB / 0.8478 GB, free: 82.45 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004512/1.601, allocations: 3.094 MB / 0.8508 GB, free: 79.33 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004192/1.606, allocations: 0.8141 MB / 0.8516 GB, free: 78.55 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02348/1.629, allocations: 13.74 MB / 0.865 GB, free: 64.72 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004623/1.634, allocations: 5.014 MB / 0.8699 GB, free: 59.66 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004231/1.638, allocations: 1.586 MB / 0.8715 GB, free: 58.07 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009809/1.639, allocations: 327.4 kB / 0.8718 GB, free: 57.76 MB / 0.5294 GB Notification: Performance of SimCode: time 8.32e-07/1.639, allocations: 0 / 0.8718 GB, free: 57.76 MB / 0.5294 GB Notification: Performance of Templates: time 0.08703/1.726, allocations: 59 MB / 0.9294 GB, free: 15.16 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)