Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.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_Slip2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009213/0.0009213, allocations: 92.16 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.295/1.295, allocations: 223.3 MB / 240 MB, free: 5.52 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.0009243/0.0009244, allocations: 172.5 kB / 291.3 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03531/0.03531, allocations: 8.801 MB / 351.2 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003373/0.0003373, allocations: 10.88 kB / 414.5 MB, free: 42.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06721/0.06757, allocations: 52.55 MB / 467 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02195/0.08955, allocations: 23.93 MB / 491 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01138/0.1009, allocations: 7.851 MB / 498.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002567/0.1035, allocations: 167.5 kB / 499 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00343/0.107, allocations: 1.536 MB / 0.4888 GB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005868/0.1129, allocations: 2.499 MB / 0.4912 GB, free: 9.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002983/0.1159, allocations: 1.323 MB / 0.4925 GB, free: 7.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007429/0.1233, allocations: 7.358 MB / 0.4997 GB, free: 332 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01927/0.1426, allocations: 13.4 MB / 0.5128 GB, free: 2.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003331/0.1459, allocations: 2.678 MB / 0.5154 GB, free: 108 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004432/0.1504, allocations: 3.306 MB / 0.5186 GB, free: 12.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001023/0.1514, allocations: 431.9 kB / 0.519 GB, free: 12.36 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001924/0.1533, allocations: 0.7925 MB / 0.5198 GB, free: 11.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001083/0.1544, allocations: 1.37 MB / 0.5212 GB, free: 10.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002843/0.1573, allocations: 3.29 MB / 0.5244 GB, free: 6.883 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1705/0.3278, allocations: 12.12 MB / 0.5362 GB, free: 23.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3279, allocations: 3.25 kB / 0.5362 GB, free: 23.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3279, allocations: 0 / 0.5362 GB, free: 23.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002368/0.3281, allocations: 2.531 kB / 0.5362 GB, free: 23.1 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.01786/0.346, allocations: 7.387 MB / 0.5434 GB, free: 20.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.346, allocations: 9.625 kB / 0.5434 GB, free: 20.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02455/0.3706, allocations: 4.405 MB / 0.5477 GB, free: 19.47 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007975/0.3786, allocations: 4.526 MB / 0.5522 GB, free: 18.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003715/0.379, allocations: 489.5 kB / 0.5526 GB, free: 18.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001407/0.3804, allocations: 0.629 MB / 0.5532 GB, free: 18.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01497/0.3954, allocations: 10.35 MB / 0.5633 GB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001433/0.3955, allocations: 10.31 kB / 0.5634 GB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006979/0.3962, allocations: 268.5 kB / 0.5636 GB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003019/0.3965, allocations: 416.2 kB / 0.564 GB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01544/0.412, allocations: 9.853 MB / 0.5736 GB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04512/0.4572, allocations: 35.79 MB / 0.6086 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01829/0.4755, allocations: 20.63 MB / 0.6287 GB, free: 1.562 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003724/0.4792, allocations: 2.311 MB / 0.631 GB, free: 15.25 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003238/0.4796, allocations: 225.2 kB / 0.6312 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.953e-05/0.4797, allocations: 64.89 kB / 0.6313 GB, free: 14.93 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 5.129e-06/0.4797, allocations: 4 kB / 0.6313 GB, free: 14.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.0214/0.5011, allocations: 10.89 MB / 0.6419 GB, free: 3.926 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/0.5011, allocations: 81.78 kB / 0.642 GB, free: 3.832 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004704/0.5059, allocations: 3.021 MB / 0.6449 GB, free: 0.793 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001847/0.5061, allocations: 77.7 kB / 0.645 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001784/0.5078, allocations: 2.864 MB / 0.6478 GB, free: 13.83 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007879/0.5086, allocations: 1.028 MB / 0.6488 GB, free: 12.81 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005447/0.5092, allocations: 371.8 kB / 0.6492 GB, free: 12.44 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.489e-05/0.5093, allocations: 301.1 kB / 0.6495 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003158/0.5125, allocations: 2.024 MB / 0.6514 GB, free: 10.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004162/0.5166, allocations: 3.732 MB / 0.6551 GB, free: 5.621 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00753/0.5242, allocations: 6.049 MB / 0.661 GB, free: 15 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.701e-05/0.5242, allocations: 16 kB / 0.661 GB, free: 14.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01089/0.5351, allocations: 6.623 MB / 0.6675 GB, free: 8.668 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.777e-05/0.5352, allocations: 28 kB / 0.6675 GB, free: 8.641 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.822e-05/0.5353, allocations: 56 kB / 0.6675 GB, free: 8.586 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001926/0.5372, allocations: 0.6675 MB / 0.6682 GB, free: 7.918 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003799/0.541, allocations: 1.065 MB / 0.6692 GB, free: 6.926 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008518/0.5495, allocations: 5.805 MB / 0.6749 GB, free: 1.027 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003029/0.5526, allocations: 283.5 kB / 0.6752 GB, free: 0.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000369/0.553, allocations: 228 kB / 0.6754 GB, free: 0.5273 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.003409/0.5564, allocations: 2.319 MB / 0.6777 GB, free: 14.28 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005865/0.557, allocations: 320.1 kB / 0.678 GB, free: 13.96 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008125/0.5651, allocations: 4.641 MB / 0.6825 GB, free: 9.285 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-05/0.5652, allocations: 28 kB / 0.6825 GB, free: 9.258 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.485e-05/0.5652, allocations: 11.98 kB / 0.6825 GB, free: 9.246 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.683e-05/0.5652, allocations: 14.36 kB / 0.6825 GB, free: 9.234 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01778/0.583, allocations: 11.26 MB / 0.6935 GB, free: 13.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.51e-05/0.583, allocations: 12.09 kB / 0.6936 GB, free: 13.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002218/0.5853, allocations: 0.5334 MB / 0.6941 GB, free: 13.36 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001688/0.587, allocations: 0.5684 MB / 0.6946 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001963/0.5872, allocations: 70.72 kB / 0.6947 GB, free: 12.72 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007255/0.5944, allocations: 5.034 MB / 0.6996 GB, free: 7.566 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.705e-06/0.5945, allocations: 15.41 kB / 0.6996 GB, free: 7.555 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009801/0.6043, allocations: 6.58 MB / 0.7061 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/0.6057, allocations: 0.7506 MB / 0.7068 GB, free: 56 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.1676/0.7734, allocations: 57.8 kB / 0.7068 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002447/0.7759, allocations: 150.8 kB / 0.707 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003941/0.7763, allocations: 206 kB / 0.7072 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001878/0.7765, allocations: 92.86 kB / 0.7073 GB, free: 174.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002783/0.7792, allocations: 2.017 MB / 0.7092 GB, free: 174.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7793, allocations: 0 / 0.7092 GB, free: 174.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003643/0.7829, allocations: 1.167 MB / 0.7104 GB, free: 174.1 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.00039/0.7833, allocations: 231.8 kB / 0.7106 GB, free: 174 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007407/0.7907, allocations: 5.022 MB / 0.7155 GB, free: 173.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.7907, allocations: 4.438 kB / 0.7155 GB, free: 173.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003577/0.7943, allocations: 2.271 MB / 0.7177 GB, free: 173.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004649/0.799, allocations: 0.6162 MB / 0.7183 GB, free: 173.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01527/0.8143, allocations: 13.74 MB / 0.7317 GB, free: 166.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003052/0.8173, allocations: 4.042 MB / 0.7357 GB, free: 164.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/0.8185, allocations: 304.8 kB / 0.736 GB, free: 164.4 MB / 494.1 MB Notification: Performance of SimCode: time 6.42e-07/0.8185, allocations: 0 / 0.736 GB, free: 164.4 MB / 494.1 MB Notification: Performance of Templates: time 0.08976/0.9083, allocations: 105.1 MB / 0.8386 GB, free: 65.57 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)