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.006722/0.006727, allocations: 103.9 kB / 15.73 MB, free: 6.473 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.539 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.001612/0.001612, allocations: 192.4 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03648/0.03648, allocations: 8.791 MB / 348.6 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 75.88 kB / 464 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.13, allocations: 51.55 MB / 0.5034 GB, free: 9.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.3036/0.4336, allocations: 25.44 MB / 0.5283 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.017/0.4506, allocations: 7.937 MB / 0.536 GB, free: 4.906 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00665/0.4574, allocations: 171.1 kB / 0.5362 GB, free: 4.906 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01821/0.4756, allocations: 7.654 MB / 0.5437 GB, free: 3.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01299/0.4886, allocations: 3.054 MB / 0.5467 GB, free: 3.117 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007198/0.4959, allocations: 2.002 MB / 0.5486 GB, free: 2.934 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01878/0.5147, allocations: 9.226 MB / 0.5576 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03981/0.5545, allocations: 17.27 MB / 0.5745 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01045/0.565, allocations: 4.765 MB / 0.5791 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.011/0.5761, allocations: 5.237 MB / 0.5842 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006809/0.5829, allocations: 1.352 MB / 0.5856 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007217/0.5902, allocations: 1.715 MB / 0.5872 GB, free: 9.113 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004829/0.5951, allocations: 2.672 MB / 0.5899 GB, free: 6.473 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01085/0.6059, allocations: 5.084 MB / 0.5948 GB, free: 1.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0271/0.6331, allocations: 18.16 MB / 0.6126 GB, free: 15.58 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.6331, allocations: 0 / 0.6126 GB, free: 15.58 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.6332, allocations: 0 / 0.6126 GB, free: 15.58 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005283/0.6337, allocations: 0 / 0.6126 GB, free: 15.58 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.03538/0.6691, allocations: 10.76 MB / 0.6231 GB, free: 4.816 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.6691, allocations: 8.031 kB / 0.6231 GB, free: 4.809 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03342/0.7026, allocations: 5.677 MB / 0.6286 GB, free: 15.19 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01739/0.72, allocations: 5.794 MB / 0.6343 GB, free: 9.375 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006166/0.7207, allocations: 0.5773 MB / 0.6348 GB, free: 8.809 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004034/0.7247, allocations: 0.7675 MB / 0.6356 GB, free: 8.051 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0338/0.7585, allocations: 12.76 MB / 0.648 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002724/0.7588, allocations: 11.91 kB / 0.6481 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002407/0.7612, allocations: 319.1 kB / 0.6484 GB, free: 10.95 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005555/0.7618, allocations: 0.5044 MB / 0.6489 GB, free: 10.45 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03024/0.7921, allocations: 12.25 MB / 0.6608 GB, free: 14.18 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08188/0.874, allocations: 43.24 MB / 0.703 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02444/0.8985, allocations: 25.19 MB / 0.7276 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005295/0.9038, allocations: 2.98 MB / 0.7306 GB, free: 2.754 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004078/0.9042, allocations: 243.2 kB / 0.7308 GB, free: 2.492 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5137/1.418, allocations: 2.584 MB / 0.7333 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.161e-05/1.418, allocations: 0 / 0.7333 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.03782/1.456, allocations: 18.1 MB / 0.751 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001522/1.456, allocations: 351.2 kB / 0.7513 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006071/1.462, allocations: 3.523 MB / 0.7548 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005058/1.463, allocations: 87.3 kB / 0.7548 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001982/1.465, allocations: 3.381 MB / 0.7581 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001164/1.466, allocations: 1.351 MB / 0.7595 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001507/1.467, allocations: 1.078 MB / 0.7605 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.284e-05/1.467, allocations: 305.1 kB / 0.7608 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003591/1.471, allocations: 2.548 MB / 0.7633 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003918/1.475, allocations: 4.515 MB / 0.7677 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007422/1.482, allocations: 7.446 MB / 0.775 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.825e-05/1.482, allocations: 23.72 kB / 0.775 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01197/1.494, allocations: 8.274 MB / 0.7831 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.1e-05/1.495, allocations: 57.36 kB / 0.7831 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.501e-05/1.495, allocations: 59.88 kB / 0.7832 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002563/1.497, allocations: 1.002 MB / 0.7842 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004099/1.501, allocations: 1.26 MB / 0.7854 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01221/1.514, allocations: 8.819 MB / 0.794 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005636/1.519, allocations: 352.3 kB / 0.7943 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001162/1.52, allocations: 271.7 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.006535/1.527, allocations: 2.9 MB / 0.7974 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001854/1.529, allocations: 383.2 kB / 0.7978 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009789/1.539, allocations: 6.177 MB / 0.8038 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-05/1.539, allocations: 40 kB / 0.8039 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/1.539, allocations: 15.94 kB / 0.8039 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-05/1.539, allocations: 19.92 kB / 0.8039 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02021/1.559, allocations: 14.63 MB / 0.8182 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.504e-05/1.559, allocations: 4 kB / 0.8182 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002401/1.561, allocations: 0.6832 MB / 0.8189 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002252/1.564, allocations: 0.8803 MB / 0.8197 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002605/1.564, allocations: 89.42 kB / 0.8198 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009466/1.573, allocations: 7.752 MB / 0.8274 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/1.573, allocations: 5.75 kB / 0.8274 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01196/1.585, allocations: 8.775 MB / 0.836 GB, free: 94.57 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002265/1.588, allocations: 0.91 MB / 0.8369 GB, free: 93.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007582/1.589, allocations: 76 kB / 0.8369 GB, free: 93.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002009/1.591, allocations: 195.8 kB / 0.8371 GB, free: 93.37 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007805/1.591, allocations: 275.1 kB / 0.8374 GB, free: 93.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002331/1.592, allocations: 116 kB / 0.8375 GB, free: 92.98 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00481/1.596, allocations: 2.359 MB / 0.8398 GB, free: 90.63 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.21e-07/1.596, allocations: 0 / 0.8398 GB, free: 90.63 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01121/1.608, allocations: 1.454 MB / 0.8412 GB, free: 89.18 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.001562/1.609, allocations: 253.8 kB / 0.8414 GB, free: 88.93 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01711/1.626, allocations: 6.477 MB / 0.8478 GB, free: 82.43 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.691e-05/1.626, allocations: 0 / 0.8478 GB, free: 82.43 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.009554/1.636, allocations: 3.087 MB / 0.8508 GB, free: 79.32 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009533/1.646, allocations: 0.8085 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.04156/1.687, allocations: 13.75 MB / 0.865 GB, free: 64.71 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01015/1.697, allocations: 5.01 MB / 0.8699 GB, free: 59.66 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.009002/1.707, allocations: 1.59 MB / 0.8714 GB, free: 58.07 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002513/1.709, allocations: 331.4 kB / 0.8718 GB, free: 57.75 MB / 0.5294 GB Notification: Performance of SimCode: time 1.273e-06/1.709, allocations: 0 / 0.8718 GB, free: 57.75 MB / 0.5294 GB Notification: Performance of Templates: time 0.1579/1.867, allocations: 59.01 MB / 0.9294 GB, free: 15.12 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)