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.0009028/0.0009029, allocations: 91.53 kB / 16.02 MB, free: 80 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.288/1.288, allocations: 223.3 MB / 240 MB, free: 5.516 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.0009483/0.0009484, allocations: 176.5 kB / 291.3 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03539/0.03539, allocations: 8.803 MB / 351.2 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003407/0.0003408, allocations: 16.5 kB / 414.5 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06493/0.06528, allocations: 52.55 MB / 467 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02213/0.08744, allocations: 23.92 MB / 491 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01255/0.1, allocations: 7.848 MB / 498.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003051/0.1031, allocations: 167.5 kB / 499 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00324/0.1063, allocations: 1.544 MB / 0.4888 GB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005461/0.1118, allocations: 2.501 MB / 0.4912 GB, free: 9.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002607/0.1144, allocations: 1.316 MB / 0.4925 GB, free: 7.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006408/0.1209, allocations: 7.354 MB / 0.4997 GB, free: 340 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01821/0.1391, allocations: 13.41 MB / 0.5128 GB, free: 2.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002897/0.142, allocations: 2.678 MB / 0.5154 GB, free: 116 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003318/0.1453, allocations: 3.31 MB / 0.5186 GB, free: 12.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005707/0.1459, allocations: 428 kB / 0.519 GB, free: 12.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001509/0.1474, allocations: 0.7964 MB / 0.5198 GB, free: 11.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001032/0.1485, allocations: 1.378 MB / 0.5212 GB, free: 10.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002587/0.1511, allocations: 3.275 MB / 0.5244 GB, free: 6.895 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1545/0.3055, allocations: 12.13 MB / 0.5362 GB, free: 22.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3056, allocations: 0 / 0.5362 GB, free: 22.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3056, allocations: 0 / 0.5362 GB, free: 22.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000241/0.3058, allocations: 0 / 0.5362 GB, free: 22.98 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.01737/0.3232, allocations: 7.387 MB / 0.5434 GB, free: 20.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.3232, allocations: 8.875 kB / 0.5434 GB, free: 20.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02444/0.3477, allocations: 4.404 MB / 0.5477 GB, free: 19.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006705/0.3544, allocations: 4.525 MB / 0.5521 GB, free: 18.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003533/0.3548, allocations: 487.6 kB / 0.5526 GB, free: 18.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001208/0.356, allocations: 0.628 MB / 0.5532 GB, free: 18.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01421/0.3702, allocations: 10.35 MB / 0.5633 GB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001366/0.3704, allocations: 12.91 kB / 0.5634 GB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007055/0.3711, allocations: 268.6 kB / 0.5636 GB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003063/0.3714, allocations: 419 kB / 0.564 GB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01326/0.3846, allocations: 9.862 MB / 0.5736 GB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04119/0.4259, allocations: 35.79 MB / 0.6086 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01821/0.4441, allocations: 20.63 MB / 0.6287 GB, free: 1.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003244/0.4474, allocations: 2.311 MB / 0.631 GB, free: 15.26 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002505/0.4476, allocations: 229.4 kB / 0.6312 GB, free: 15.01 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/0.4477, allocations: 60.89 kB / 0.6313 GB, free: 14.94 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.558e-06/0.4477, allocations: 4 kB / 0.6313 GB, free: 14.94 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.01972/0.4674, allocations: 10.89 MB / 0.6419 GB, free: 3.938 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.4675, allocations: 81.78 kB / 0.642 GB, free: 3.844 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003853/0.4713, allocations: 3.021 MB / 0.6449 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001668/0.4715, allocations: 73.7 kB / 0.645 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001687/0.4732, allocations: 2.862 MB / 0.6478 GB, free: 13.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007268/0.4739, allocations: 1.03 MB / 0.6488 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004903/0.4744, allocations: 374.1 kB / 0.6492 GB, free: 12.45 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.279e-05/0.4745, allocations: 301.1 kB / 0.6495 GB, free: 12.15 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002956/0.4775, allocations: 2.027 MB / 0.6514 GB, free: 10.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003985/0.4815, allocations: 3.727 MB / 0.6551 GB, free: 5.629 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007171/0.4887, allocations: 6.05 MB / 0.661 GB, free: 15.01 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.257e-05/0.4887, allocations: 16 kB / 0.661 GB, free: 14.99 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01008/0.4988, allocations: 6.625 MB / 0.6675 GB, free: 8.676 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.076e-05/0.4988, allocations: 28 kB / 0.6675 GB, free: 8.648 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-05/0.4989, allocations: 56 kB / 0.6675 GB, free: 8.594 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001857/0.5008, allocations: 0.6682 MB / 0.6682 GB, free: 7.922 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003661/0.5044, allocations: 1.064 MB / 0.6692 GB, free: 6.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008357/0.5128, allocations: 5.81 MB / 0.6749 GB, free: 1.027 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002719/0.5155, allocations: 279.5 kB / 0.6752 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003353/0.5159, allocations: 228 kB / 0.6754 GB, free: 0.5312 MB / 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.003189/0.5191, allocations: 2.325 MB / 0.6777 GB, free: 14.27 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004747/0.5196, allocations: 324.1 kB / 0.678 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008066/0.5276, allocations: 4.635 MB / 0.6825 GB, free: 9.285 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.443e-05/0.5277, allocations: 29.75 kB / 0.6825 GB, free: 9.258 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/0.5277, allocations: 11.98 kB / 0.6825 GB, free: 9.246 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.617e-05/0.5277, allocations: 11.95 kB / 0.6826 GB, free: 9.234 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01709/0.5448, allocations: 11.26 MB / 0.6935 GB, free: 13.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.5448, allocations: 8 kB / 0.6936 GB, free: 13.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002215/0.5471, allocations: 0.5305 MB / 0.6941 GB, free: 13.36 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001665/0.5487, allocations: 0.5725 MB / 0.6946 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001677/0.5489, allocations: 67.98 kB / 0.6947 GB, free: 12.72 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007433/0.5564, allocations: 5.034 MB / 0.6996 GB, free: 7.566 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.766e-06/0.5564, allocations: 15.48 kB / 0.6996 GB, free: 7.555 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00968/0.5661, allocations: 6.592 MB / 0.7061 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001235/0.5673, allocations: 0.7469 MB / 0.7068 GB, free: 56 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.1551/0.7225, allocations: 57.83 kB / 0.7068 GB, free: 174.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002304/0.7248, allocations: 147.2 kB / 0.707 GB, free: 174.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005204/0.7253, allocations: 202 kB / 0.7072 GB, free: 174.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000227/0.7256, allocations: 91.09 kB / 0.7073 GB, free: 174.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003072/0.7286, allocations: 2.018 MB / 0.7092 GB, free: 174.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7287, allocations: 2.344 kB / 0.7092 GB, free: 174.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003914/0.7326, allocations: 1.176 MB / 0.7104 GB, free: 174.2 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.0004652/0.7331, allocations: 223 kB / 0.7106 GB, free: 174.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007529/0.7406, allocations: 5.02 MB / 0.7155 GB, free: 173.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.7406, allocations: 1.156 kB / 0.7155 GB, free: 173.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003632/0.7442, allocations: 2.274 MB / 0.7177 GB, free: 173.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004712/0.749, allocations: 0.6124 MB / 0.7183 GB, free: 173.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01584/0.7648, allocations: 13.75 MB / 0.7317 GB, free: 166.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00332/0.7682, allocations: 4.037 MB / 0.7357 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001004/0.7692, allocations: 315 kB / 0.736 GB, free: 164.5 MB / 494.1 MB Notification: Performance of SimCode: time 3.9e-07/0.7692, allocations: 0 / 0.736 GB, free: 164.5 MB / 494.1 MB Notification: Performance of Templates: time 0.08513/0.8543, allocations: 105.1 MB / 0.8386 GB, free: 65.56 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)