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.001175/0.001175, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.421/1.421, allocations: 223.3 MB / 239.4 MB, free: 5.453 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.001085/0.001085, allocations: 184.5 kB / 290.6 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03207/0.03207, allocations: 8.797 MB / 350.5 MB, free: 4.578 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003498/0.0003499, allocations: 12.61 kB / 413.8 MB, free: 42.72 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08105/0.08142, allocations: 52.55 MB / 466.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02265/0.1041, allocations: 23.95 MB / 490.3 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01491/0.1191, allocations: 7.798 MB / 498.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004404/0.1235, allocations: 159.5 kB / 498.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005235/0.1288, allocations: 1.812 MB / 0.4884 GB, free: 11.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008579/0.1374, allocations: 2.77 MB / 0.4911 GB, free: 8.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004622/0.142, allocations: 1.695 MB / 0.4927 GB, free: 6.773 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01182/0.1539, allocations: 9.361 MB / 0.5019 GB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03099/0.1849, allocations: 17.62 MB / 0.5191 GB, free: 11.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007321/0.1923, allocations: 3.398 MB / 0.5224 GB, free: 8.219 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007855/0.2002, allocations: 4.112 MB / 0.5264 GB, free: 4.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002678/0.2029, allocations: 0.5156 MB / 0.5269 GB, free: 3.574 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004348/0.2073, allocations: 0.8863 MB / 0.5278 GB, free: 2.688 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002077/0.2094, allocations: 1.697 MB / 0.5294 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1929/0.4023, allocations: 4.033 MB / 0.5334 GB, free: 21.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01545/0.4178, allocations: 17.05 MB / 0.55 GB, free: 17.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.4179, allocations: 2.188 kB / 0.55 GB, free: 17.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4179, allocations: 0 / 0.55 GB, free: 17.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004201/0.4183, allocations: 0.7812 kB / 0.55 GB, free: 17.68 MB / 366.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.02529/0.4436, allocations: 9.051 MB / 0.5589 GB, free: 13.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.4437, allocations: 11.19 kB / 0.5589 GB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0314/0.4751, allocations: 5.661 MB / 0.5644 GB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01178/0.4869, allocations: 5.679 MB / 0.57 GB, free: 9.324 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005133/0.4875, allocations: 0.5803 MB / 0.5705 GB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003071/0.4905, allocations: 0.7708 MB / 0.5713 GB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02574/0.5163, allocations: 12.77 MB / 0.5837 GB, free: 5.664 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000256/0.5166, allocations: 11.75 kB / 0.5837 GB, free: 5.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001594/0.5182, allocations: 329.4 kB / 0.5841 GB, free: 5.414 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003841/0.5186, allocations: 0.4976 MB / 0.5845 GB, free: 5.305 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02271/0.5413, allocations: 12.25 MB / 0.5965 GB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06996/0.6113, allocations: 43.84 MB / 0.6393 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02354/0.6349, allocations: 25.16 MB / 0.6639 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005359/0.6403, allocations: 2.984 MB / 0.6668 GB, free: 13.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004254/0.6408, allocations: 245.8 kB / 0.667 GB, free: 13.48 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004432/0.6452, allocations: 2.589 MB / 0.6696 GB, free: 10.83 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 8.146e-06/0.6453, allocations: 0 / 0.6696 GB, free: 10.83 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.04155/0.6868, allocations: 18.16 MB / 0.6873 GB, free: 8.566 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001583/0.687, allocations: 354.9 kB / 0.6877 GB, free: 8.148 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00582/0.6929, allocations: 3.515 MB / 0.6911 GB, free: 4.629 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006681/0.6936, allocations: 93.64 kB / 0.6912 GB, free: 4.531 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002238/0.6958, allocations: 3.38 MB / 0.6945 GB, free: 1.133 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001505/0.6973, allocations: 1.348 MB / 0.6958 GB, free: 15.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007754/0.6981, allocations: 442.2 kB / 0.6962 GB, free: 15.36 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.203e-05/0.6982, allocations: 313 kB / 0.6965 GB, free: 15.05 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004188/0.7024, allocations: 2.552 MB / 0.699 GB, free: 12.49 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005731/0.7082, allocations: 4.513 MB / 0.7034 GB, free: 7.125 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2155/0.9237, allocations: 7.46 MB / 0.7107 GB, free: 169.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.065e-05/0.9238, allocations: 21.44 kB / 0.7107 GB, free: 169.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01427/0.9381, allocations: 8.276 MB / 0.7188 GB, free: 168.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.347e-05/0.9382, allocations: 62.55 kB / 0.7189 GB, free: 168.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.383e-05/0.9383, allocations: 59.34 kB / 0.7189 GB, free: 168.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002434/0.9407, allocations: 0.9976 MB / 0.7199 GB, free: 168.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003851/0.9446, allocations: 1.262 MB / 0.7211 GB, free: 168.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/0.9547, allocations: 8.246 MB / 0.7292 GB, free: 163.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004205/0.9589, allocations: 358.5 kB / 0.7295 GB, free: 163.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005262/0.9595, allocations: 269.5 kB / 0.7298 GB, free: 163.8 MB / 494.1 MB 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.004614/0.9641, allocations: 2.901 MB / 0.7326 GB, free: 162.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000713/0.9648, allocations: 391.4 kB / 0.733 GB, free: 162.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009364/0.9742, allocations: 6.188 MB / 0.739 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.195e-05/0.9743, allocations: 39.5 kB / 0.7391 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.797e-05/0.9743, allocations: 12.44 kB / 0.7391 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.966e-05/0.9743, allocations: 23.02 kB / 0.7391 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02279/0.9971, allocations: 14.94 MB / 0.7537 GB, free: 151.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.506e-05/0.9972, allocations: 4.594 kB / 0.7537 GB, free: 151.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00254/0.9997, allocations: 0.6864 MB / 0.7544 GB, free: 151 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002402/1.002, allocations: 0.8738 MB / 0.7552 GB, free: 150.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004501/1.003, allocations: 87.73 kB / 0.7553 GB, free: 150.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009082/1.012, allocations: 7.198 MB / 0.7623 GB, free: 143.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/1.012, allocations: 12.03 kB / 0.7623 GB, free: 143.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0128/1.025, allocations: 8.78 MB / 0.7709 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002751/1.027, allocations: 0.9334 MB / 0.7718 GB, free: 133.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001179/1.029, allocations: 83.98 kB / 0.7719 GB, free: 133.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002822/1.031, allocations: 195.8 kB / 0.7721 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007254/1.032, allocations: 279.1 kB / 0.7724 GB, free: 132.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002237/1.032, allocations: 115.9 kB / 0.7725 GB, free: 132.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003927/1.036, allocations: 2.359 MB / 0.7748 GB, free: 130.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.91e-07/1.036, allocations: 0 / 0.7748 GB, free: 130.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006333/1.043, allocations: 1.455 MB / 0.7762 GB, free: 129 MB / 494.1 MB 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.0007925/1.044, allocations: 266.2 kB / 0.7764 GB, free: 128.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01017/1.054, allocations: 6.477 MB / 0.7828 GB, free: 122.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.103e-05/1.054, allocations: 0 / 0.7828 GB, free: 122.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005111/1.059, allocations: 3.086 MB / 0.7858 GB, free: 119.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006368/1.065, allocations: 0.7723 MB / 0.7865 GB, free: 118.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02364/1.089, allocations: 17.26 MB / 0.8034 GB, free: 101 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005261/1.094, allocations: 5.008 MB / 0.8083 GB, free: 95.99 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004639/1.099, allocations: 1.594 MB / 0.8098 GB, free: 94.39 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/1.1, allocations: 327.4 kB / 0.8102 GB, free: 94.07 MB / 494.1 MB Notification: Performance of SimCode: time 9.72e-07/1.1, allocations: 0 / 0.8102 GB, free: 94.07 MB / 494.1 MB Notification: Performance of Templates: time 0.08386/1.184, allocations: 58.67 MB / 0.8675 GB, free: 35.72 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: