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.001083/0.001083, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 239.2 MB, free: 4.594 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.001351/0.001351, allocations: 192.5 kB / 289.6 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03327/0.03327, allocations: 8.794 MB / 348.5 MB, free: 4.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 79.42 kB / 411.1 MB, free: 42.21 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1023, allocations: 51.57 MB / 462.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02527/0.1276, allocations: 25.44 MB / 488.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01773/0.1454, allocations: 7.933 MB / 496 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006767/0.1522, allocations: 171.5 kB / 496.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01752/0.1698, allocations: 7.657 MB / 0.492 GB, free: 5.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01054/0.1803, allocations: 3.042 MB / 0.495 GB, free: 2.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006368/0.1867, allocations: 2.033 MB / 0.497 GB, free: 64 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01369/0.2004, allocations: 9.157 MB / 0.5059 GB, free: 6.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0294/0.2299, allocations: 17.33 MB / 0.5229 GB, free: 5.395 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008633/0.2385, allocations: 4.738 MB / 0.5275 GB, free: 0.6445 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2211/0.4597, allocations: 5.259 MB / 0.5326 GB, free: 23.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004887/0.4646, allocations: 1.355 MB / 0.5339 GB, free: 23.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01094/0.4756, allocations: 1.724 MB / 0.5356 GB, free: 23.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006137/0.4818, allocations: 2.674 MB / 0.5382 GB, free: 23.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01697/0.4988, allocations: 5.084 MB / 0.5432 GB, free: 22.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0263/0.5251, allocations: 18.05 MB / 0.5608 GB, free: 16.53 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.5251, allocations: 0 / 0.5608 GB, free: 16.53 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5251, allocations: 0 / 0.5608 GB, free: 16.53 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006125/0.5258, allocations: 1.031 kB / 0.5608 GB, free: 16.53 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.04175/0.5675, allocations: 10.81 MB / 0.5714 GB, free: 9.742 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.5676, allocations: 9.5 kB / 0.5714 GB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03221/0.5998, allocations: 5.637 MB / 0.5769 GB, free: 7.219 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01297/0.6128, allocations: 5.658 MB / 0.5824 GB, free: 3.449 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007085/0.6135, allocations: 0.5802 MB / 0.583 GB, free: 3.188 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004321/0.6179, allocations: 0.7752 MB / 0.5838 GB, free: 2.934 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04386/0.6618, allocations: 12.76 MB / 0.5962 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005078/0.6623, allocations: 15.27 kB / 0.5962 GB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004009/0.6664, allocations: 322.9 kB / 0.5965 GB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007099/0.6671, allocations: 0.4965 MB / 0.597 GB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03333/0.7004, allocations: 12.24 MB / 0.609 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1002/0.8007, allocations: 43.69 MB / 0.6516 GB, free: 13.26 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02757/0.8283, allocations: 25.19 MB / 0.6762 GB, free: 1.195 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007042/0.8354, allocations: 2.965 MB / 0.6791 GB, free: 14.23 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007805/0.8362, allocations: 250.4 kB / 0.6794 GB, free: 13.96 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005853/0.8421, allocations: 2.582 MB / 0.6819 GB, free: 11.31 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 8.867e-06/0.8421, allocations: 0 / 0.6819 GB, free: 11.31 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.0416/0.8838, allocations: 18.11 MB / 0.6996 GB, free: 9.102 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000163/0.884, allocations: 355.5 kB / 0.6999 GB, free: 8.68 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005904/0.8899, allocations: 3.518 MB / 0.7034 GB, free: 5.156 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007162/0.8906, allocations: 89.7 kB / 0.7034 GB, free: 5.062 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002528/0.8931, allocations: 3.37 MB / 0.7067 GB, free: 1.672 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001881/0.895, allocations: 1.357 MB / 0.7081 GB, free: 336 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2319/1.127, allocations: 1.077 MB / 0.7091 GB, free: 167.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.691e-05/1.127, allocations: 304.9 kB / 0.7094 GB, free: 167 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003717/1.131, allocations: 2.553 MB / 0.7119 GB, free: 167 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005008/1.136, allocations: 4.511 MB / 0.7163 GB, free: 164.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01156/1.147, allocations: 7.448 MB / 0.7236 GB, free: 162.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001249/1.148, allocations: 24.91 kB / 0.7236 GB, free: 162.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01556/1.163, allocations: 8.275 MB / 0.7317 GB, free: 160.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.913e-05/1.163, allocations: 58.48 kB / 0.7317 GB, free: 160.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001133/1.163, allocations: 62.78 kB / 0.7318 GB, free: 160.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002639/1.166, allocations: 1.003 MB / 0.7328 GB, free: 159.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005044/1.171, allocations: 1.263 MB / 0.734 GB, free: 159.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01123/1.182, allocations: 8.819 MB / 0.7426 GB, free: 154.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005609/1.188, allocations: 358.6 kB / 0.743 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001336/1.189, allocations: 261.8 kB / 0.7432 GB, free: 154.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.006479/1.196, allocations: 2.909 MB / 0.7461 GB, free: 153.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001077/1.197, allocations: 386.6 kB / 0.7464 GB, free: 153.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009867/1.207, allocations: 6.183 MB / 0.7525 GB, free: 150.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.928e-05/1.207, allocations: 40.7 kB / 0.7525 GB, free: 150.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/1.207, allocations: 16.69 kB / 0.7525 GB, free: 150.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.935e-05/1.207, allocations: 22.64 kB / 0.7525 GB, free: 150.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0224/1.229, allocations: 14.91 MB / 0.7671 GB, free: 137.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/1.229, allocations: 4 kB / 0.7671 GB, free: 137.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003882/1.233, allocations: 0.6871 MB / 0.7678 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003616/1.237, allocations: 0.8848 MB / 0.7686 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008705/1.238, allocations: 87.5 kB / 0.7687 GB, free: 136.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01475/1.253, allocations: 7.759 MB / 0.7763 GB, free: 128.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/1.253, allocations: 15.97 kB / 0.7763 GB, free: 128.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02105/1.274, allocations: 8.776 MB / 0.7849 GB, free: 120 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003652/1.278, allocations: 0.9062 MB / 0.7858 GB, free: 119 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001269/1.279, allocations: 75.98 kB / 0.7858 GB, free: 118.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003792/1.283, allocations: 195.8 kB / 0.786 GB, free: 118.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008004/1.283, allocations: 271.1 kB / 0.7863 GB, free: 118.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000337/1.284, allocations: 116 kB / 0.7864 GB, free: 118.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005408/1.289, allocations: 2.363 MB / 0.7887 GB, free: 116 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.41e-07/1.289, allocations: 0 / 0.7887 GB, free: 116 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009167/1.298, allocations: 1.452 MB / 0.7901 GB, free: 114.6 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.001083/1.3, allocations: 255.3 kB / 0.7904 GB, free: 114.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.04923/1.349, allocations: 11.91 MB / 0.802 GB, free: 102.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/1.349, allocations: 4 kB / 0.802 GB, free: 102.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009413/1.358, allocations: 3.086 MB / 0.805 GB, free: 99.34 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01174/1.37, allocations: 0.8096 MB / 0.8058 GB, free: 98.57 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04275/1.413, allocations: 13.91 MB / 0.8194 GB, free: 84.57 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01074/1.424, allocations: 5 MB / 0.8243 GB, free: 79.53 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.01039/1.434, allocations: 1.586 MB / 0.8258 GB, free: 77.94 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002407/1.437, allocations: 335.4 kB / 0.8261 GB, free: 77.61 MB / 494.1 MB Notification: Performance of SimCode: time 1.673e-06/1.437, allocations: 0 / 0.8261 GB, free: 77.61 MB / 494.1 MB Notification: Performance of Templates: time 0.2983/1.735, allocations: 61.95 MB / 0.8866 GB, free: 154.8 MB / 494.1 MB 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)