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.01118/0.01118, allocations: 96.19 kB / 15.87 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.292/2.292, allocations: 222.9 MB / 239.5 MB, free: 4.816 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.002118/0.002118, allocations: 192.4 kB / 289.8 MB, free: 2.547 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05489/0.05489, allocations: 8.799 MB / 348.7 MB, free: 4.941 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002356/0.002356, allocations: 79.31 kB / 411.1 MB, free: 42.59 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1492, allocations: 51.57 MB / 462.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.04288/0.1922, allocations: 25.03 MB / 487.7 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.026/0.2182, allocations: 7.863 MB / 495.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00874/0.227, allocations: 163.5 kB / 495.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0264/0.2535, allocations: 7.226 MB / 0.4911 GB, free: 6.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01732/0.2709, allocations: 2.806 MB / 0.4939 GB, free: 3.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008721/0.2796, allocations: 1.891 MB / 0.4957 GB, free: 1.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02005/0.2997, allocations: 9.373 MB / 0.5049 GB, free: 8.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03986/0.3396, allocations: 14.37 MB / 0.5189 GB, free: 10.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01137/0.3511, allocations: 4.069 MB / 0.5229 GB, free: 5.973 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01255/0.3637, allocations: 4.99 MB / 0.5277 GB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005102/0.3689, allocations: 0.8555 MB / 0.5286 GB, free: 112 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3444/0.7133, allocations: 1.205 MB / 0.5298 GB, free: 23.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007286/0.7207, allocations: 2.165 MB / 0.5319 GB, free: 23.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02018/0.7409, allocations: 4.569 MB / 0.5363 GB, free: 23.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02844/0.7694, allocations: 15.77 MB / 0.5517 GB, free: 20.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.115e-05/0.7695, allocations: 1.156 kB / 0.5517 GB, free: 20.28 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.7695, allocations: 0 / 0.5517 GB, free: 20.28 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007098/0.7702, allocations: 0 / 0.5517 GB, free: 20.28 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.06416/0.8344, allocations: 10.79 MB / 0.5623 GB, free: 15.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.373e-05/0.8345, allocations: 9.25 kB / 0.5623 GB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0564/0.8909, allocations: 5.638 MB / 0.5678 GB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02131/0.9123, allocations: 5.663 MB / 0.5733 GB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001006/0.9134, allocations: 0.5802 MB / 0.5739 GB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00624/0.9196, allocations: 0.7664 MB / 0.5746 GB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05648/0.9762, allocations: 12.76 MB / 0.5871 GB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005032/0.9767, allocations: 11.09 kB / 0.5871 GB, free: 1.641 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004898/0.9816, allocations: 330.6 kB / 0.5874 GB, free: 1.332 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006766/0.9823, allocations: 0.4928 MB / 0.5879 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04485/1.027, allocations: 12.24 MB / 0.5999 GB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.125/1.152, allocations: 43.71 MB / 0.6425 GB, free: 8.285 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03984/1.192, allocations: 25.19 MB / 0.6671 GB, free: 12.22 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009102/1.201, allocations: 2.96 MB / 0.67 GB, free: 9.254 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008644/1.202, allocations: 249.4 kB / 0.6703 GB, free: 8.988 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0082/1.21, allocations: 2.578 MB / 0.6728 GB, free: 6.344 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 1.288e-05/1.211, allocations: 0 / 0.6728 GB, free: 6.344 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.0821/1.293, allocations: 18.11 MB / 0.6905 GB, free: 4.133 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003267/1.293, allocations: 355.5 kB / 0.6908 GB, free: 3.711 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01268/1.306, allocations: 3.522 MB / 0.6943 GB, free: 188 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001248/1.307, allocations: 97.27 kB / 0.6943 GB, free: 88 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005325/1.312, allocations: 3.373 MB / 0.6976 GB, free: 12.69 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003256/1.316, allocations: 1.343 MB / 0.699 GB, free: 11.36 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004672/1.32, allocations: 1.081 MB / 0.7 GB, free: 10.27 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/1.321, allocations: 305.1 kB / 0.7003 GB, free: 9.969 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008642/1.329, allocations: 2.552 MB / 0.7028 GB, free: 7.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01173/1.341, allocations: 4.509 MB / 0.7072 GB, free: 2.047 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.403/1.744, allocations: 7.444 MB / 0.7145 GB, free: 166.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001269/1.744, allocations: 17.19 kB / 0.7145 GB, free: 166.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.03/1.774, allocations: 8.277 MB / 0.7226 GB, free: 165.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001261/1.775, allocations: 57.23 kB / 0.7226 GB, free: 165.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001462/1.775, allocations: 59.12 kB / 0.7227 GB, free: 165.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004621/1.779, allocations: 1.002 MB / 0.7237 GB, free: 165.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008587/1.788, allocations: 1.256 MB / 0.7249 GB, free: 165.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01986/1.808, allocations: 8.24 MB / 0.7329 GB, free: 161.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009517/1.818, allocations: 358.3 kB / 0.7333 GB, free: 161.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002189/1.82, allocations: 270.5 kB / 0.7335 GB, free: 161 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.01234/1.832, allocations: 2.904 MB / 0.7364 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002107/1.834, allocations: 390.2 kB / 0.7367 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01948/1.854, allocations: 6.176 MB / 0.7428 GB, free: 157 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.04e-05/1.854, allocations: 43.52 kB / 0.7428 GB, free: 157 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.032e-05/1.854, allocations: 7.188 kB / 0.7428 GB, free: 157 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001769/1.854, allocations: 27.45 kB / 0.7428 GB, free: 157 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04687/1.901, allocations: 14.92 MB / 0.7574 GB, free: 146.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.839e-05/1.901, allocations: 4 kB / 0.7574 GB, free: 146.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004704/1.906, allocations: 0.6844 MB / 0.7581 GB, free: 145.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00371/1.91, allocations: 0.8793 MB / 0.7589 GB, free: 144.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001139/1.911, allocations: 89.67 kB / 0.759 GB, free: 144.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01432/1.925, allocations: 7.184 MB / 0.766 GB, free: 138 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.405e-06/1.925, allocations: 8 kB / 0.766 GB, free: 138 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02219/1.947, allocations: 8.768 MB / 0.7746 GB, free: 129.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004131/1.952, allocations: 0.9126 MB / 0.7755 GB, free: 128.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002038/1.954, allocations: 79.98 kB / 0.7756 GB, free: 128.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004444/1.958, allocations: 195.8 kB / 0.7758 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0012/1.959, allocations: 271.1 kB / 0.776 GB, free: 127.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003979/1.96, allocations: 116.8 kB / 0.7761 GB, free: 127.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005998/1.966, allocations: 2.367 MB / 0.7784 GB, free: 125.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.9e-07/1.966, allocations: 0 / 0.7784 GB, free: 125.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01083/1.977, allocations: 1.449 MB / 0.7799 GB, free: 123.7 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.001527/1.978, allocations: 258.5 kB / 0.7801 GB, free: 123.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01645/1.995, allocations: 6.46 MB / 0.7864 GB, free: 117 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.288e-05/1.995, allocations: 4.438 kB / 0.7864 GB, free: 117 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008082/2.003, allocations: 3.083 MB / 0.7894 GB, free: 113.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008451/2.011, allocations: 0.7745 MB / 0.7902 GB, free: 113.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04134/2.053, allocations: 16.98 MB / 0.8068 GB, free: 96.05 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01061/2.064, allocations: 4.857 MB / 0.8115 GB, free: 91.15 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002672/2.066, allocations: 375.3 kB / 0.8119 GB, free: 90.79 MB / 494.1 MB Notification: Performance of SimCode: time 3.296e-06/2.066, allocations: 0 / 0.8119 GB, free: 90.79 MB / 494.1 MB Notification: Performance of Templates: time 0.5738/2.64, allocations: 131.6 MB / 0.9404 GB, free: 122.4 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)