Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.389/1.389, allocations: 223.3 MB / 239.4 MB, free: 5.5 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.001087/0.001087, allocations: 176.5 kB / 290.6 MB, free: 2.168 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03222/0.03222, allocations: 8.809 MB / 350.5 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004097/0.0004097, allocations: 10.91 kB / 413.8 MB, free: 42.84 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08377/0.08419, allocations: 52.56 MB / 466.4 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02266/0.1069, allocations: 23.95 MB / 490.3 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01371/0.1206, allocations: 7.79 MB / 498.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004259/0.1249, allocations: 159.5 kB / 498.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005965/0.1309, allocations: 1.816 MB / 0.4884 GB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009161/0.1401, allocations: 2.777 MB / 0.4911 GB, free: 8.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004689/0.1448, allocations: 1.687 MB / 0.4927 GB, free: 6.805 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01166/0.1565, allocations: 9.364 MB / 0.5019 GB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03202/0.1885, allocations: 17.62 MB / 0.5191 GB, free: 11.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00605/0.1946, allocations: 3.406 MB / 0.5224 GB, free: 8.234 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006395/0.2011, allocations: 4.104 MB / 0.5264 GB, free: 4.113 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001998/0.2031, allocations: 0.5195 MB / 0.5269 GB, free: 3.594 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003735/0.2068, allocations: 0.8824 MB / 0.5278 GB, free: 2.711 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002731/0.2096, allocations: 1.705 MB / 0.5294 GB, free: 1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2226/0.4322, allocations: 4.024 MB / 0.5334 GB, free: 21.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01993/0.4522, allocations: 17.06 MB / 0.55 GB, free: 17.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.4522, allocations: 3.281 kB / 0.55 GB, free: 17.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.786e-06/0.4522, allocations: 0 / 0.55 GB, free: 17.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006134/0.4529, allocations: 2.531 kB / 0.55 GB, free: 17.25 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.03039/0.4833, allocations: 9.043 MB / 0.5589 GB, free: 12.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.4833, allocations: 9.688 kB / 0.5589 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03229/0.5156, allocations: 5.657 MB / 0.5644 GB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01352/0.5292, allocations: 5.679 MB / 0.5699 GB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005749/0.5298, allocations: 0.5792 MB / 0.5705 GB, free: 8.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004326/0.5341, allocations: 0.7777 MB / 0.5713 GB, free: 8.863 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03376/0.5679, allocations: 12.77 MB / 0.5837 GB, free: 5.555 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002617/0.5682, allocations: 7.875 kB / 0.5837 GB, free: 5.551 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002045/0.5703, allocations: 325.5 kB / 0.5841 GB, free: 5.309 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004193/0.5707, allocations: 0.4914 MB / 0.5845 GB, free: 5.203 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02785/0.5986, allocations: 12.26 MB / 0.5965 GB, free: 9.172 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08472/0.6833, allocations: 43.86 MB / 0.6393 GB, free: 12.7 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02435/0.7077, allocations: 25.16 MB / 0.6639 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00538/0.7131, allocations: 2.977 MB / 0.6668 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005582/0.7137, allocations: 249.6 kB / 0.667 GB, free: 13.42 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004961/0.7187, allocations: 2.59 MB / 0.6696 GB, free: 10.76 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 7.664e-06/0.7187, allocations: 0 / 0.6696 GB, free: 10.76 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.04888/0.7676, allocations: 18.16 MB / 0.6873 GB, free: 8.5 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001548/0.7678, allocations: 359.1 kB / 0.6877 GB, free: 8.078 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006714/0.7745, allocations: 3.515 MB / 0.6911 GB, free: 4.559 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006991/0.7753, allocations: 93.7 kB / 0.6912 GB, free: 4.461 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002332/0.7776, allocations: 3.377 MB / 0.6945 GB, free: 1.066 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001717/0.7793, allocations: 1.351 MB / 0.6958 GB, free: 15.72 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001169/0.7805, allocations: 446.2 kB / 0.6962 GB, free: 15.28 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.587e-05/0.7806, allocations: 305.1 kB / 0.6965 GB, free: 14.98 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004694/0.7853, allocations: 2.556 MB / 0.699 GB, free: 12.42 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006158/0.7915, allocations: 4.513 MB / 0.7034 GB, free: 7.051 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2176/1.009, allocations: 7.462 MB / 0.7107 GB, free: 169.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.925e-05/1.009, allocations: 18 kB / 0.7107 GB, free: 169.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01795/1.027, allocations: 8.277 MB / 0.7188 GB, free: 168.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.643e-05/1.027, allocations: 59.12 kB / 0.7189 GB, free: 168.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001192/1.027, allocations: 61.69 kB / 0.7189 GB, free: 168.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00274/1.03, allocations: 1.006 MB / 0.7199 GB, free: 168.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004383/1.035, allocations: 1.254 MB / 0.7211 GB, free: 168 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/1.046, allocations: 8.244 MB / 0.7292 GB, free: 163.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00492/1.051, allocations: 362.6 kB / 0.7295 GB, free: 163.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001035/1.052, allocations: 264.2 kB / 0.7298 GB, free: 163.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.006422/1.058, allocations: 2.903 MB / 0.7326 GB, free: 161.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001062/1.059, allocations: 386.3 kB / 0.733 GB, free: 161.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009598/1.069, allocations: 6.193 MB / 0.739 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.797e-05/1.069, allocations: 39.31 kB / 0.7391 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.685e-05/1.069, allocations: 11.84 kB / 0.7391 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.455e-05/1.069, allocations: 21.75 kB / 0.7391 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02406/1.093, allocations: 14.94 MB / 0.7537 GB, free: 151.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/1.093, allocations: 4 kB / 0.7537 GB, free: 151.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00262/1.096, allocations: 0.6888 MB / 0.7544 GB, free: 150.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002318/1.098, allocations: 0.8731 MB / 0.7552 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003443/1.098, allocations: 90.52 kB / 0.7553 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008761/1.107, allocations: 7.194 MB / 0.7623 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/1.107, allocations: 8.031 kB / 0.7623 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01212/1.119, allocations: 8.791 MB / 0.7709 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002468/1.122, allocations: 0.9334 MB / 0.7718 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008676/1.123, allocations: 72 kB / 0.7719 GB, free: 133.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002159/1.125, allocations: 203.8 kB / 0.7721 GB, free: 132.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005101/1.125, allocations: 271.1 kB / 0.7724 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002121/1.125, allocations: 119.9 kB / 0.7725 GB, free: 132.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003147/1.129, allocations: 2.359 MB / 0.7748 GB, free: 130.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/1.129, allocations: 4.547 kB / 0.7748 GB, free: 130.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005253/1.134, allocations: 1.458 MB / 0.7762 GB, free: 128.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.0005925/1.135, allocations: 253.6 kB / 0.7764 GB, free: 128.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009112/1.144, allocations: 6.475 MB / 0.7828 GB, free: 122 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/1.144, allocations: 4 kB / 0.7828 GB, free: 122 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004511/1.148, allocations: 3.09 MB / 0.7858 GB, free: 118.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007156/1.155, allocations: 0.7804 MB / 0.7865 GB, free: 118.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02357/1.179, allocations: 17.27 MB / 0.8034 GB, free: 100.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005239/1.184, allocations: 5.004 MB / 0.8083 GB, free: 95.73 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004977/1.189, allocations: 1.586 MB / 0.8098 GB, free: 94.14 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/1.191, allocations: 331.4 kB / 0.8102 GB, free: 93.82 MB / 494.1 MB Notification: Performance of SimCode: time 7.32e-07/1.191, allocations: 7.172 kB / 0.8102 GB, free: 93.81 MB / 494.1 MB Notification: Performance of Templates: time 0.08809/1.279, allocations: 58.68 MB / 0.8675 GB, free: 35.45 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1) Environment - environmentSimulation: