Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.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_Slip4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007414/0.007414, allocations: 96.91 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.204/2.204, allocations: 222.9 MB / 239.5 MB, free: 4.824 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.002336/0.002336, allocations: 179.8 kB / 289.8 MB, free: 2.57 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05637/0.05637, allocations: 8.786 MB / 348.7 MB, free: 4.965 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 82.48 kB / 411.1 MB, free: 42.4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1415, allocations: 51.57 MB / 462.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.03852/0.1801, allocations: 24.99 MB / 487.6 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02529/0.2055, allocations: 7.944 MB / 495.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007956/0.2135, allocations: 167.5 kB / 495.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0182/0.2318, allocations: 5.776 MB / 0.4898 GB, free: 7.984 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01302/0.2448, allocations: 2.526 MB / 0.4922 GB, free: 5.453 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007142/0.252, allocations: 1.51 MB / 0.4937 GB, free: 3.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01545/0.2675, allocations: 7.347 MB / 0.5009 GB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02585/0.2934, allocations: 10.96 MB / 0.5116 GB, free: 1.488 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008141/0.3016, allocations: 3.24 MB / 0.5147 GB, free: 14.24 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008232/0.3099, allocations: 4.04 MB / 0.5187 GB, free: 10.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003382/0.3133, allocations: 0.6992 MB / 0.5194 GB, free: 9.484 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005109/0.3184, allocations: 1.07 MB / 0.5204 GB, free: 8.414 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003454/0.3219, allocations: 1.756 MB / 0.5221 GB, free: 6.652 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008668/0.3306, allocations: 3.722 MB / 0.5258 GB, free: 2.914 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2954/0.626, allocations: 12.47 MB / 0.5379 GB, free: 26.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.6261, allocations: 0.5625 kB / 0.5379 GB, free: 26.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.6261, allocations: 0.9375 kB / 0.5379 GB, free: 26.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005565/0.6267, allocations: 0 / 0.5379 GB, free: 26.29 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: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.03893/0.6656, allocations: 8.806 MB / 0.5465 GB, free: 23.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.018e-05/0.6657, allocations: 9.062 kB / 0.5465 GB, free: 23.06 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04315/0.7089, allocations: 4.383 MB / 0.5508 GB, free: 21.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01926/0.7282, allocations: 4.503 MB / 0.5552 GB, free: 20.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008675/0.7291, allocations: 490.8 kB / 0.5557 GB, free: 20.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004816/0.734, allocations: 0.6324 MB / 0.5563 GB, free: 20.06 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04698/0.781, allocations: 10.35 MB / 0.5664 GB, free: 17.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004333/0.7815, allocations: 8.812 kB / 0.5664 GB, free: 17.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004081/0.7856, allocations: 267 kB / 0.5667 GB, free: 16.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008147/0.7865, allocations: 417.1 kB / 0.5671 GB, free: 16.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03756/0.8241, allocations: 9.864 MB / 0.5767 GB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1128/0.9369, allocations: 35.67 MB / 0.6116 GB, free: 5.949 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03614/0.9731, allocations: 20.67 MB / 0.6317 GB, free: 14.67 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007365/0.9805, allocations: 2.303 MB / 0.634 GB, free: 12.37 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000605/0.9812, allocations: 224.2 kB / 0.6342 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.906e-05/0.9813, allocations: 70.28 kB / 0.6343 GB, free: 12.05 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 8.766e-06/0.9813, allocations: 0 / 0.6343 GB, free: 12.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.04254/1.024, allocations: 10.86 MB / 0.6449 GB, free: 1.074 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/1.024, allocations: 81.78 kB / 0.645 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008844/1.033, allocations: 3.024 MB / 0.6479 GB, free: 13.94 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001034/1.034, allocations: 77.7 kB / 0.648 GB, free: 13.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003777/1.038, allocations: 2.862 MB / 0.6508 GB, free: 10.98 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002396/1.04, allocations: 1.028 MB / 0.6518 GB, free: 9.957 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002851/1.043, allocations: 0.9133 MB / 0.6527 GB, free: 9.031 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/1.043, allocations: 301.1 kB / 0.653 GB, free: 8.734 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006466/1.05, allocations: 2.027 MB / 0.6549 GB, free: 6.699 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009481/1.059, allocations: 3.727 MB / 0.6586 GB, free: 2.215 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01685/1.076, allocations: 6.046 MB / 0.6645 GB, free: 11.59 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001053/1.076, allocations: 16 kB / 0.6645 GB, free: 11.58 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02637/1.103, allocations: 6.63 MB / 0.671 GB, free: 5.258 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/1.103, allocations: 28 kB / 0.671 GB, free: 5.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001621/1.103, allocations: 52 kB / 0.671 GB, free: 5.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003932/1.107, allocations: 0.6683 MB / 0.6717 GB, free: 4.508 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009356/1.116, allocations: 1.071 MB / 0.6727 GB, free: 3.512 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01722/1.134, allocations: 5.8 MB / 0.6784 GB, free: 13.62 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007788/1.142, allocations: 279.5 kB / 0.6787 GB, free: 13.35 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001623/1.143, allocations: 232 kB / 0.6789 GB, free: 13.12 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 251 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 559 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,28,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00923/1.153, allocations: 2.319 MB / 0.6812 GB, free: 10.87 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001687/1.154, allocations: 324 kB / 0.6815 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01621/1.17, allocations: 4.628 MB / 0.686 GB, free: 5.891 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.678e-05/1.171, allocations: 36 kB / 0.686 GB, free: 5.855 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.429e-05/1.171, allocations: 8 kB / 0.686 GB, free: 5.848 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.594e-05/1.171, allocations: 15.94 kB / 0.686 GB, free: 5.832 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0423/1.213, allocations: 11.25 MB / 0.697 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.898e-05/1.213, allocations: 4 kB / 0.697 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005125/1.218, allocations: 0.537 MB / 0.6976 GB, free: 9.957 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003421/1.222, allocations: 0.5645 MB / 0.6981 GB, free: 9.391 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006873/1.222, allocations: 67.98 kB / 0.6982 GB, free: 9.324 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/1.236, allocations: 5.033 MB / 0.7031 GB, free: 4.18 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.494e-05/1.236, allocations: 11.94 kB / 0.7031 GB, free: 4.168 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3873/1.623, allocations: 6.579 MB / 0.7095 GB, free: 175.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004591/1.628, allocations: 0.718 MB / 0.7102 GB, free: 175 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0023/1.63, allocations: 63.78 kB / 0.7103 GB, free: 175 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005278/1.636, allocations: 148.6 kB / 0.7104 GB, free: 175 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001489/1.637, allocations: 207.4 kB / 0.7106 GB, free: 175 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005232/1.638, allocations: 88.05 kB / 0.7107 GB, free: 175 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00803/1.646, allocations: 2.014 MB / 0.7127 GB, free: 174.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.366e-06/1.646, allocations: 2.688 kB / 0.7127 GB, free: 174.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01188/1.658, allocations: 1.18 MB / 0.7138 GB, free: 174.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (smee.short.port_p.reference.gamma,mechanicalPowerSensor.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 290 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,26,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001782/1.66, allocations: 222 kB / 0.7141 GB, free: 174.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01707/1.677, allocations: 5.027 MB / 0.719 GB, free: 173.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.55e-05/1.677, allocations: 3.969 kB / 0.719 GB, free: 173.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006334/1.683, allocations: 2.266 MB / 0.7212 GB, free: 172.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006622/1.69, allocations: 0.6219 MB / 0.7218 GB, free: 172 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03363/1.723, allocations: 13.66 MB / 0.7351 GB, free: 164.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007135/1.731, allocations: 4.04 MB / 0.7391 GB, free: 162.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002712/1.733, allocations: 312.9 kB / 0.7394 GB, free: 162.7 MB / 494.1 MB Notification: Performance of SimCode: time 3.707e-06/1.733, allocations: 0 / 0.7394 GB, free: 162.7 MB / 494.1 MB Notification: Performance of Templates: time 0.2075/1.941, allocations: 106 MB / 0.8429 GB, free: 61.47 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1)