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: 117.3 kB / 16.37 MB, free: 6.012 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.336/1.336, allocations: 222.9 MB / 240 MB, free: 4.512 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.001311/0.001311, allocations: 184.5 kB / 290.3 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.05163/0.05163, allocations: 8.799 MB / 349.3 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 85.39 kB / 412.5 MB, free: 41.67 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07415/0.07574, allocations: 51.58 MB / 464.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02596/0.1017, allocations: 25.43 MB / 489.5 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01536/0.1171, allocations: 7.948 MB / 497.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004547/0.1218, allocations: 171.5 kB / 497.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01758/0.1394, allocations: 7.641 MB / 0.4935 GB, free: 4.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009629/0.149, allocations: 3.051 MB / 0.4964 GB, free: 1.133 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006139/0.1552, allocations: 2.034 MB / 0.4984 GB, free: 15.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01284/0.168, allocations: 9.213 MB / 0.5074 GB, free: 5.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02399/0.1921, allocations: 17.27 MB / 0.5243 GB, free: 4.441 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1853/0.3774, allocations: 4.739 MB / 0.5289 GB, free: 19.76 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008245/0.3857, allocations: 5.238 MB / 0.534 GB, free: 19.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00463/0.3904, allocations: 1.354 MB / 0.5353 GB, free: 19.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005988/0.3964, allocations: 1.717 MB / 0.537 GB, free: 19.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006255/0.4027, allocations: 2.668 MB / 0.5396 GB, free: 19.3 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01415/0.4168, allocations: 5.084 MB / 0.5446 GB, free: 18.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01887/0.4357, allocations: 18.16 MB / 0.5623 GB, free: 13.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.4358, allocations: 0 / 0.5623 GB, free: 13.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4358, allocations: 0 / 0.5623 GB, free: 13.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000509/0.4363, allocations: 1.719 kB / 0.5623 GB, free: 13.35 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.03553/0.4719, allocations: 10.75 MB / 0.5728 GB, free: 6.992 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.362e-05/0.472, allocations: 9.719 kB / 0.5728 GB, free: 6.992 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03286/0.5048, allocations: 5.668 MB / 0.5784 GB, free: 4.453 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01332/0.5182, allocations: 5.803 MB / 0.584 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004915/0.5187, allocations: 0.5789 MB / 0.5846 GB, free: 364 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003348/0.5221, allocations: 0.7594 MB / 0.5853 GB, free: 112 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03838/0.5605, allocations: 12.77 MB / 0.5978 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004227/0.5609, allocations: 11.91 kB / 0.5978 GB, free: 3.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003245/0.5642, allocations: 318.7 kB / 0.5981 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006064/0.5648, allocations: 0.4967 MB / 0.5986 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02806/0.5929, allocations: 12.25 MB / 0.6106 GB, free: 6.281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08324/0.6761, allocations: 43.24 MB / 0.6528 GB, free: 10.42 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02544/0.7016, allocations: 25.19 MB / 0.6774 GB, free: 14.41 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005427/0.7071, allocations: 2.964 MB / 0.6803 GB, free: 11.44 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005169/0.7076, allocations: 248.5 kB / 0.6805 GB, free: 11.17 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004608/0.7123, allocations: 2.578 MB / 0.6831 GB, free: 8.527 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 8.025e-06/0.7123, allocations: 4 kB / 0.6831 GB, free: 8.523 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04237/0.7547, allocations: 18.1 MB / 0.7007 GB, free: 6.32 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001587/0.7549, allocations: 359.5 kB / 0.7011 GB, free: 5.895 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006845/0.7617, allocations: 3.522 MB / 0.7045 GB, free: 2.367 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006603/0.7624, allocations: 89.7 kB / 0.7046 GB, free: 2.273 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1831/0.9455, allocations: 3.373 MB / 0.7079 GB, free: 165.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001307/0.9468, allocations: 1.351 MB / 0.7092 GB, free: 164.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001681/0.9485, allocations: 1.082 MB / 0.7103 GB, free: 164.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.874e-05/0.9485, allocations: 305.8 kB / 0.7106 GB, free: 164.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003258/0.9518, allocations: 2.553 MB / 0.7131 GB, free: 164.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00433/0.9562, allocations: 4.507 MB / 0.7175 GB, free: 162.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008348/0.9645, allocations: 7.449 MB / 0.7247 GB, free: 159.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.28e-05/0.9646, allocations: 17.12 kB / 0.7248 GB, free: 159.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01188/0.9765, allocations: 8.278 MB / 0.7328 GB, free: 157.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.715e-05/0.9765, allocations: 58.95 kB / 0.7329 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.579e-05/0.9766, allocations: 59.78 kB / 0.733 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002377/0.979, allocations: 0.9975 MB / 0.7339 GB, free: 157.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003853/0.9829, allocations: 1.258 MB / 0.7352 GB, free: 157.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/0.9934, allocations: 8.81 MB / 0.7438 GB, free: 152.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004336/0.9978, allocations: 356.3 kB / 0.7441 GB, free: 152.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006937/0.9985, allocations: 265.2 kB / 0.7443 GB, free: 152.4 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.004491/1.003, allocations: 2.911 MB / 0.7472 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008338/1.004, allocations: 386.8 kB / 0.7476 GB, free: 150.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009262/1.013, allocations: 6.17 MB / 0.7536 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.708e-05/1.013, allocations: 44 kB / 0.7536 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/1.013, allocations: 15.94 kB / 0.7536 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.649e-05/1.013, allocations: 23.41 kB / 0.7537 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02191/1.035, allocations: 14.64 MB / 0.768 GB, free: 135.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.408e-05/1.035, allocations: 4 kB / 0.768 GB, free: 135.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002546/1.038, allocations: 0.6828 MB / 0.7686 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002191/1.04, allocations: 0.8733 MB / 0.7695 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002534/1.04, allocations: 92.55 kB / 0.7696 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008979/1.049, allocations: 7.747 MB / 0.7771 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/1.049, allocations: 11.97 kB / 0.7771 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01112/1.06, allocations: 8.777 MB / 0.7857 GB, free: 117.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002266/1.063, allocations: 0.9115 MB / 0.7866 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000648/1.063, allocations: 75.98 kB / 0.7867 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001993/1.065, allocations: 199.8 kB / 0.7869 GB, free: 116.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005383/1.066, allocations: 271.1 kB / 0.7871 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002184/1.066, allocations: 113 kB / 0.7872 GB, free: 115.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003073/1.069, allocations: 2.363 MB / 0.7895 GB, free: 113.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.91e-07/1.069, allocations: 0 / 0.7895 GB, free: 113.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004803/1.074, allocations: 1.453 MB / 0.791 GB, free: 112.1 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.0005123/1.074, allocations: 248.5 kB / 0.7912 GB, free: 111.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009051/1.084, allocations: 6.494 MB / 0.7975 GB, free: 105.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.084, allocations: 0 / 0.7975 GB, free: 105.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004279/1.088, allocations: 3.081 MB / 0.8006 GB, free: 102.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003758/1.092, allocations: 0.815 MB / 0.8014 GB, free: 101.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01987/1.112, allocations: 13.74 MB / 0.8148 GB, free: 87.68 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003973/1.116, allocations: 5.007 MB / 0.8197 GB, free: 82.64 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004814/1.12, allocations: 1.587 MB / 0.8212 GB, free: 81.07 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001007/1.121, allocations: 331.4 kB / 0.8215 GB, free: 80.75 MB / 494.1 MB Notification: Performance of SimCode: time 1.052e-06/1.121, allocations: 4 kB / 0.8215 GB, free: 80.74 MB / 494.1 MB Notification: Performance of Templates: time 0.08046/1.202, allocations: 56.87 MB / 0.8771 GB, free: 24.33 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)