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.008208/0.008207, allocations: 101.5 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.437/1.437, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001426/0.001426, allocations: 184.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0348/0.0348, allocations: 8.793 MB / 348.6 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 79.88 kB / 463.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1031, allocations: 51.56 MB / 0.5034 GB, free: 9.566 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02605/0.1292, allocations: 25.43 MB / 0.5282 GB, free: 24 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2339/0.3632, allocations: 7.945 MB / 0.536 GB, free: 5.387 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005148/0.3683, allocations: 173.5 kB / 0.5362 GB, free: 5.387 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01679/0.3852, allocations: 7.639 MB / 0.5436 GB, free: 4.477 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01031/0.3955, allocations: 3.049 MB / 0.5466 GB, free: 3.617 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005768/0.4013, allocations: 2.02 MB / 0.5486 GB, free: 3.418 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01482/0.4161, allocations: 9.218 MB / 0.5576 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02718/0.4434, allocations: 17.27 MB / 0.5744 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01077/0.4542, allocations: 4.769 MB / 0.5791 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01111/0.4653, allocations: 5.236 MB / 0.5842 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005553/0.4709, allocations: 1.355 MB / 0.5855 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007447/0.4784, allocations: 1.714 MB / 0.5872 GB, free: 9.262 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004848/0.4833, allocations: 2.667 MB / 0.5898 GB, free: 6.629 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00945/0.4928, allocations: 5.086 MB / 0.5948 GB, free: 1.562 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02486/0.5177, allocations: 18.15 MB / 0.6125 GB, free: 15.74 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.146e-05/0.5178, allocations: 4 kB / 0.6125 GB, free: 15.73 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.5178, allocations: 0 / 0.6125 GB, free: 15.73 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006063/0.5184, allocations: 4 kB / 0.6125 GB, free: 15.73 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.03871/0.5571, allocations: 10.75 MB / 0.623 GB, free: 4.973 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.5572, allocations: 8.031 kB / 0.623 GB, free: 4.965 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03442/0.5916, allocations: 5.673 MB / 0.6286 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01612/0.6078, allocations: 5.798 MB / 0.6342 GB, free: 9.531 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007615/0.6086, allocations: 0.5774 MB / 0.6348 GB, free: 8.965 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004307/0.6129, allocations: 0.7647 MB / 0.6355 GB, free: 8.207 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03766/0.6506, allocations: 12.76 MB / 0.648 GB, free: 11.42 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004934/0.6512, allocations: 11.91 kB / 0.648 GB, free: 11.41 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003584/0.6548, allocations: 329.3 kB / 0.6483 GB, free: 11.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006483/0.6554, allocations: 0.4966 MB / 0.6488 GB, free: 10.6 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02973/0.6852, allocations: 12.25 MB / 0.6608 GB, free: 14.33 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09012/0.7754, allocations: 43.25 MB / 0.703 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02889/0.8043, allocations: 25.19 MB / 0.7276 GB, free: 5.895 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006378/0.8107, allocations: 2.984 MB / 0.7305 GB, free: 2.902 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006594/0.8114, allocations: 246.7 kB / 0.7308 GB, free: 2.637 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5082/1.32, allocations: 2.577 MB / 0.7333 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.197e-05/1.32, allocations: 0 / 0.7333 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04017/1.36, allocations: 18.09 MB / 0.7509 GB, free: 161.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/1.36, allocations: 357.3 kB / 0.7513 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006136/1.366, allocations: 3.526 MB / 0.7547 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007261/1.367, allocations: 88.95 kB / 0.7548 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002235/1.369, allocations: 3.371 MB / 0.7581 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001814/1.371, allocations: 1.352 MB / 0.7594 GB, free: 156 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001687/1.373, allocations: 1.08 MB / 0.7605 GB, free: 155.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.531e-05/1.373, allocations: 307.1 kB / 0.7608 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0039/1.377, allocations: 2.548 MB / 0.7633 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004325/1.381, allocations: 4.518 MB / 0.7677 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01066/1.392, allocations: 7.445 MB / 0.7749 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002087/1.392, allocations: 19.72 kB / 0.775 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01734/1.409, allocations: 8.28 MB / 0.783 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/1.409, allocations: 57.94 kB / 0.7831 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001314/1.41, allocations: 59.22 kB / 0.7832 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002782/1.412, allocations: 1.002 MB / 0.7841 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004603/1.417, allocations: 1.255 MB / 0.7854 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.012/1.429, allocations: 8.807 MB / 0.794 GB, free: 137.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005954/1.435, allocations: 361 kB / 0.7943 GB, free: 136.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001328/1.436, allocations: 268.1 kB / 0.7946 GB, free: 136.9 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.007301/1.444, allocations: 2.899 MB / 0.7974 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001934/1.446, allocations: 388.2 kB / 0.7978 GB, free: 134 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009796/1.455, allocations: 6.175 MB / 0.8038 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.613e-05/1.456, allocations: 40 kB / 0.8038 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-05/1.456, allocations: 16 kB / 0.8038 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.114e-05/1.456, allocations: 23.86 kB / 0.8039 GB, free: 128 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0209/1.477, allocations: 14.64 MB / 0.8182 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.66e-05/1.477, allocations: 8.578 kB / 0.8182 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002451/1.479, allocations: 0.6826 MB / 0.8188 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002311/1.481, allocations: 0.8731 MB / 0.8197 GB, free: 111.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003124/1.482, allocations: 93 kB / 0.8198 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009023/1.491, allocations: 7.748 MB / 0.8273 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.491, allocations: 4 kB / 0.8273 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01192/1.503, allocations: 8.779 MB / 0.8359 GB, free: 94.88 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002507/1.505, allocations: 0.9101 MB / 0.8368 GB, free: 93.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001058/1.506, allocations: 79.94 kB / 0.8369 GB, free: 93.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002399/1.509, allocations: 192.9 kB / 0.8371 GB, free: 93.69 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005799/1.509, allocations: 279.1 kB / 0.8373 GB, free: 93.41 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001948/1.51, allocations: 112 kB / 0.8374 GB, free: 93.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003264/1.513, allocations: 2.361 MB / 0.8397 GB, free: 90.95 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.11e-07/1.513, allocations: 0 / 0.8397 GB, free: 90.95 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007463/1.52, allocations: 1.454 MB / 0.8412 GB, free: 89.5 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.0008852/1.521, allocations: 245.7 kB / 0.8414 GB, free: 89.26 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01056/1.532, allocations: 6.479 MB / 0.8477 GB, free: 82.76 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.333e-05/1.532, allocations: 0 / 0.8477 GB, free: 82.76 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004829/1.537, allocations: 3.086 MB / 0.8507 GB, free: 79.65 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004468/1.541, allocations: 0.8209 MB / 0.8515 GB, free: 78.87 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02252/1.564, allocations: 13.74 MB / 0.865 GB, free: 65.03 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004738/1.568, allocations: 5.005 MB / 0.8698 GB, free: 59.99 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004152/1.573, allocations: 1.605 MB / 0.8714 GB, free: 58.38 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00113/1.574, allocations: 327.4 kB / 0.8717 GB, free: 58.06 MB / 0.5294 GB Notification: Performance of SimCode: time 1.032e-06/1.574, allocations: 0 / 0.8717 GB, free: 58.06 MB / 0.5294 GB Notification: Performance of Templates: time 0.09384/1.668, allocations: 58.97 MB / 0.9293 GB, free: 15.48 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)