Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008135/0.008136, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.394/1.394, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001646/0.001646, allocations: 188.5 kB / 289.7 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03439/0.03439, allocations: 8.788 MB / 348.6 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 79.88 kB / 464 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1203, allocations: 51.57 MB / 0.5034 GB, free: 9.453 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.2675/0.3879, allocations: 25.43 MB / 0.5283 GB, free: 4.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01369/0.4016, allocations: 7.951 MB / 0.536 GB, free: 4.863 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005331/0.407, allocations: 172.5 kB / 0.5362 GB, free: 4.863 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01791/0.4249, allocations: 7.645 MB / 0.5437 GB, free: 3.953 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01107/0.436, allocations: 3.048 MB / 0.5467 GB, free: 3.094 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005362/0.4414, allocations: 2.013 MB / 0.5486 GB, free: 2.898 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01231/0.4537, allocations: 9.215 MB / 0.5576 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03285/0.4866, allocations: 17.28 MB / 0.5745 GB, free: 5.918 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01404/0.5007, allocations: 4.764 MB / 0.5791 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01248/0.5132, allocations: 5.237 MB / 0.5843 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004347/0.5176, allocations: 1.355 MB / 0.5856 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007415/0.5251, allocations: 1.712 MB / 0.5873 GB, free: 9.121 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005179/0.5303, allocations: 2.679 MB / 0.5899 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01103/0.5414, allocations: 5.083 MB / 0.5948 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03158/0.573, allocations: 18.16 MB / 0.6126 GB, free: 15.6 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.335e-06/0.573, allocations: 0 / 0.6126 GB, free: 15.6 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.573, allocations: 0 / 0.6126 GB, free: 15.6 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005525/0.5736, allocations: 0 / 0.6126 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.04753/0.6212, allocations: 10.76 MB / 0.6231 GB, free: 4.832 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.6212, allocations: 12.03 kB / 0.6231 GB, free: 4.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03256/0.6538, allocations: 5.675 MB / 0.6286 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01275/0.6666, allocations: 5.786 MB / 0.6343 GB, free: 9.395 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000572/0.6672, allocations: 0.5845 MB / 0.6348 GB, free: 8.824 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003133/0.6703, allocations: 0.7679 MB / 0.6356 GB, free: 8.062 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03538/0.7057, allocations: 12.76 MB / 0.648 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004668/0.7062, allocations: 11.91 kB / 0.6481 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002511/0.7087, allocations: 322.9 kB / 0.6484 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005813/0.7093, allocations: 0.4928 MB / 0.6488 GB, free: 10.47 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02742/0.7368, allocations: 12.26 MB / 0.6608 GB, free: 14.19 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07693/0.8137, allocations: 43.24 MB / 0.703 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02541/0.8392, allocations: 25.19 MB / 0.7276 GB, free: 5.77 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006236/0.8455, allocations: 2.98 MB / 0.7306 GB, free: 2.781 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008613/0.8464, allocations: 243.5 kB / 0.7308 GB, free: 2.52 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4593/1.306, allocations: 2.577 MB / 0.7333 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.252e-05/1.306, allocations: 0 / 0.7333 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04163/1.347, allocations: 18.1 MB / 0.751 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001378/1.348, allocations: 361.1 kB / 0.7513 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006358/1.354, allocations: 3.519 MB / 0.7548 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006533/1.355, allocations: 92.28 kB / 0.7548 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002018/1.357, allocations: 3.373 MB / 0.7581 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001371/1.358, allocations: 1.347 MB / 0.7595 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001719/1.36, allocations: 1.084 MB / 0.7605 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.221e-05/1.36, allocations: 306.6 kB / 0.7608 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003769/1.364, allocations: 2.555 MB / 0.7633 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004223/1.368, allocations: 4.508 MB / 0.7677 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008924/1.377, allocations: 7.456 MB / 0.775 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.666e-05/1.377, allocations: 15.78 kB / 0.775 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01291/1.39, allocations: 8.272 MB / 0.7831 GB, free: 142 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.011e-05/1.39, allocations: 57.73 kB / 0.7831 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-05/1.39, allocations: 65.72 kB / 0.7832 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002474/1.393, allocations: 1.001 MB / 0.7842 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004307/1.397, allocations: 1.259 MB / 0.7854 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0108/1.408, allocations: 8.81 MB / 0.794 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004655/1.412, allocations: 360.7 kB / 0.7944 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008214/1.413, allocations: 262.2 kB / 0.7946 GB, free: 136.5 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.005085/1.418, allocations: 2.905 MB / 0.7974 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/1.419, allocations: 387.8 kB / 0.7978 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009019/1.428, allocations: 6.18 MB / 0.8038 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-05/1.428, allocations: 44 kB / 0.8039 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.318e-05/1.429, allocations: 8 kB / 0.8039 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.54e-05/1.429, allocations: 23.92 kB / 0.8039 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02038/1.449, allocations: 14.63 MB / 0.8182 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/1.449, allocations: 10.09 kB / 0.8182 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002517/1.452, allocations: 0.6865 MB / 0.8189 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002225/1.454, allocations: 0.8731 MB / 0.8197 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000245/1.454, allocations: 87.97 kB / 0.8198 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008782/1.463, allocations: 7.746 MB / 0.8274 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/1.463, allocations: 8 kB / 0.8274 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01153/1.474, allocations: 8.787 MB / 0.836 GB, free: 94.59 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002557/1.477, allocations: 0.9071 MB / 0.8369 GB, free: 93.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008876/1.478, allocations: 75.88 kB / 0.8369 GB, free: 93.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002031/1.48, allocations: 199.8 kB / 0.8371 GB, free: 93.39 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005458/1.48, allocations: 271.1 kB / 0.8374 GB, free: 93.13 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001946/1.481, allocations: 116 kB / 0.8375 GB, free: 93.02 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00314/1.484, allocations: 2.359 MB / 0.8398 GB, free: 90.66 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/1.484, allocations: 7.938 kB / 0.8398 GB, free: 90.66 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00576/1.49, allocations: 1.451 MB / 0.8412 GB, free: 89.21 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.0005388/1.49, allocations: 251.8 kB / 0.8415 GB, free: 88.96 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009062/1.499, allocations: 6.47 MB / 0.8478 GB, free: 82.47 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.906e-06/1.499, allocations: 5.875 kB / 0.8478 GB, free: 82.46 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004547/1.504, allocations: 3.085 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.004467/1.508, allocations: 0.818 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.0245/1.533, allocations: 13.75 MB / 0.865 GB, free: 64.74 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00424/1.537, allocations: 4.998 MB / 0.8699 GB, free: 59.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003988/1.541, allocations: 1.597 MB / 0.8715 GB, free: 58.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000906/1.542, allocations: 331.4 kB / 0.8718 GB, free: 57.78 MB / 0.5294 GB Notification: Performance of SimCode: time 5.41e-07/1.542, allocations: 0 / 0.8718 GB, free: 57.78 MB / 0.5294 GB Notification: Performance of Templates: time 0.08897/1.631, allocations: 59 MB / 0.9294 GB, free: 15.17 MB / 0.545 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)