Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.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_Slip1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009519/0.0009519, allocations: 99.58 kB / 16.02 MB, free: 76 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.316/1.316, allocations: 223.3 MB / 240 MB, free: 5.406 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.0009869/0.0009868, allocations: 188.4 kB / 291.3 MB, free: 2.059 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03526/0.03526, allocations: 8.792 MB / 351.2 MB, free: 4.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000337/0.000337, allocations: 10.28 kB / 414.5 MB, free: 42.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06512/0.06547, allocations: 52.56 MB / 467 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.02257/0.08807, allocations: 23.9 MB / 490.9 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01248/0.1006, allocations: 7.851 MB / 498.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00293/0.1035, allocations: 163.5 kB / 499 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003395/0.1069, allocations: 1.54 MB / 0.4888 GB, free: 11.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005759/0.1127, allocations: 2.497 MB / 0.4912 GB, free: 8.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002724/0.1154, allocations: 1.319 MB / 0.4925 GB, free: 7.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007033/0.1225, allocations: 7.348 MB / 0.4997 GB, free: 312 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01865/0.1412, allocations: 13.41 MB / 0.5128 GB, free: 2.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003156/0.1443, allocations: 2.677 MB / 0.5154 GB, free: 84 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003451/0.1478, allocations: 3.314 MB / 0.5186 GB, free: 12.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005894/0.1484, allocations: 428 kB / 0.519 GB, free: 12.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001599/0.15, allocations: 0.7925 MB / 0.5198 GB, free: 11.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.1511, allocations: 1.37 MB / 0.5211 GB, free: 10.17 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002738/0.1538, allocations: 3.286 MB / 0.5243 GB, free: 6.859 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1711/0.325, allocations: 12.12 MB / 0.5362 GB, free: 22.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.325, allocations: 6.062 kB / 0.5362 GB, free: 22.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.325, allocations: 0 / 0.5362 GB, free: 22.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002308/0.3253, allocations: 0 / 0.5362 GB, free: 22.91 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.01747/0.3427, allocations: 7.389 MB / 0.5434 GB, free: 20.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.3428, allocations: 9.75 kB / 0.5434 GB, free: 20.76 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02478/0.3676, allocations: 4.402 MB / 0.5477 GB, free: 19.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007189/0.3748, allocations: 4.52 MB / 0.5521 GB, free: 17.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003529/0.3751, allocations: 490.1 kB / 0.5526 GB, free: 17.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00127/0.3764, allocations: 0.6331 MB / 0.5532 GB, free: 17.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01466/0.3911, allocations: 10.35 MB / 0.5633 GB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001453/0.3912, allocations: 13.03 kB / 0.5633 GB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007075/0.392, allocations: 267 kB / 0.5636 GB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003084/0.3923, allocations: 413 kB / 0.564 GB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01354/0.4058, allocations: 9.871 MB / 0.5736 GB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04185/0.4477, allocations: 35.78 MB / 0.6086 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01794/0.4657, allocations: 20.64 MB / 0.6287 GB, free: 1.477 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003296/0.469, allocations: 2.304 MB / 0.631 GB, free: 15.17 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002534/0.4692, allocations: 224.5 kB / 0.6312 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.493e-05/0.4693, allocations: 64.89 kB / 0.6312 GB, free: 14.85 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.779e-06/0.4693, allocations: 0 / 0.6312 GB, free: 14.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.01996/0.4893, allocations: 10.89 MB / 0.6419 GB, free: 3.852 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.4893, allocations: 85.78 kB / 0.642 GB, free: 3.754 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003993/0.4933, allocations: 3.028 MB / 0.6449 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001712/0.4935, allocations: 73.7 kB / 0.645 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001709/0.4952, allocations: 2.86 MB / 0.6478 GB, free: 13.75 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007368/0.496, allocations: 1.036 MB / 0.6488 GB, free: 12.72 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004975/0.4965, allocations: 363.8 kB / 0.6491 GB, free: 12.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.776e-05/0.4966, allocations: 305.1 kB / 0.6494 GB, free: 12.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002964/0.4995, allocations: 2.024 MB / 0.6514 GB, free: 10.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003969/0.5035, allocations: 3.727 MB / 0.655 GB, free: 5.539 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007177/0.5107, allocations: 6.049 MB / 0.6609 GB, free: 14.92 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.25e-05/0.5107, allocations: 16 kB / 0.661 GB, free: 14.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01029/0.521, allocations: 6.627 MB / 0.6674 GB, free: 8.582 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.314e-05/0.5211, allocations: 34.25 kB / 0.6675 GB, free: 8.551 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-05/0.5212, allocations: 58.62 kB / 0.6675 GB, free: 8.496 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001872/0.523, allocations: 0.6681 MB / 0.6682 GB, free: 7.824 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003688/0.5267, allocations: 1.068 MB / 0.6692 GB, free: 6.832 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008405/0.5352, allocations: 5.802 MB / 0.6749 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002794/0.538, allocations: 275.5 kB / 0.6751 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003364/0.5383, allocations: 232 kB / 0.6754 GB, free: 448 kB / 462.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.003266/0.5416, allocations: 2.32 MB / 0.6776 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004797/0.5421, allocations: 324 kB / 0.6779 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007908/0.55, allocations: 4.638 MB / 0.6825 GB, free: 9.191 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.433e-05/0.55, allocations: 32 kB / 0.6825 GB, free: 9.16 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.5501, allocations: 4 kB / 0.6825 GB, free: 9.156 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.689e-05/0.5501, allocations: 15.94 kB / 0.6825 GB, free: 9.141 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01645/0.5665, allocations: 11.26 MB / 0.6935 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/0.5666, allocations: 4 kB / 0.6935 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002181/0.5688, allocations: 0.5271 MB / 0.694 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001618/0.5704, allocations: 0.5729 MB / 0.6946 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001647/0.5706, allocations: 67.98 kB / 0.6947 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007145/0.5777, allocations: 5.038 MB / 0.6996 GB, free: 7.473 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.5777, allocations: 7.938 kB / 0.6996 GB, free: 7.465 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009479/0.5872, allocations: 6.597 MB / 0.706 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1639/0.7511, allocations: 0.7411 MB / 0.7068 GB, free: 174 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009911/0.7521, allocations: 60.11 kB / 0.7068 GB, free: 174 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001765/0.7539, allocations: 146.6 kB / 0.707 GB, free: 174 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004108/0.7543, allocations: 204.7 kB / 0.7072 GB, free: 174 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001749/0.7545, allocations: 91.94 kB / 0.7072 GB, free: 174 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002743/0.7572, allocations: 2.02 MB / 0.7092 GB, free: 173.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7572, allocations: 0 / 0.7092 GB, free: 173.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003415/0.7607, allocations: 1.173 MB / 0.7104 GB, free: 173.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.000386/0.7611, allocations: 232.3 kB / 0.7106 GB, free: 173.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007195/0.7683, allocations: 5.017 MB / 0.7155 GB, free: 173.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.7683, allocations: 1.312 kB / 0.7155 GB, free: 173.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003537/0.7718, allocations: 2.271 MB / 0.7177 GB, free: 173.1 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004434/0.7763, allocations: 0.6125 MB / 0.7183 GB, free: 173.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01483/0.7911, allocations: 13.76 MB / 0.7317 GB, free: 165.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002921/0.7941, allocations: 4.032 MB / 0.7357 GB, free: 164.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.7951, allocations: 313.2 kB / 0.736 GB, free: 164.1 MB / 494.1 MB Notification: Performance of SimCode: time 6.11e-07/0.7951, allocations: 4 kB / 0.736 GB, free: 164.1 MB / 494.1 MB Notification: Performance of Templates: time 0.0865/0.8816, allocations: 105.1 MB / 0.8386 GB, free: 65.28 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe 2>&1)