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.001196/0.001196, allocations: 105.7 kB / 16.35 MB, free: 6.34 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.363/1.363, allocations: 222.9 MB / 240 MB, free: 4.582 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.001289/0.001289, allocations: 196.4 kB / 290.3 MB, free: 2.297 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0338/0.0338, allocations: 8.801 MB / 349.3 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 80.7 kB / 412.5 MB, free: 41.79 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09841/0.1001, allocations: 51.55 MB / 464.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02632/0.1265, allocations: 25.43 MB / 489.5 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01911/0.1456, allocations: 8.014 MB / 497.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007256/0.153, allocations: 175.5 kB / 497.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01437/0.1674, allocations: 6.109 MB / 0.492 GB, free: 5.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01036/0.1778, allocations: 2.735 MB / 0.4947 GB, free: 2.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005533/0.1833, allocations: 1.619 MB / 0.4962 GB, free: 1.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01102/0.1944, allocations: 7.28 MB / 0.5034 GB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02314/0.2175, allocations: 13.3 MB / 0.5163 GB, free: 12.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006298/0.2239, allocations: 3.736 MB / 0.52 GB, free: 8.863 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006999/0.2309, allocations: 4.212 MB / 0.5241 GB, free: 4.637 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003097/0.234, allocations: 1.078 MB / 0.5252 GB, free: 3.559 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004831/0.2389, allocations: 1.425 MB / 0.5266 GB, free: 2.133 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2406/0.4795, allocations: 2.145 MB / 0.5286 GB, free: 23.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007346/0.4869, allocations: 4.112 MB / 0.5327 GB, free: 23.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01737/0.5043, allocations: 14.44 MB / 0.5468 GB, free: 22.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.5043, allocations: 0.6562 kB / 0.5468 GB, free: 22.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5043, allocations: 1.781 kB / 0.5468 GB, free: 22.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004056/0.5047, allocations: 1.125 kB / 0.5468 GB, free: 22.21 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.02909/0.5338, allocations: 8.773 MB / 0.5553 GB, free: 18.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.5339, allocations: 10 kB / 0.5553 GB, free: 18.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02438/0.5583, allocations: 4.404 MB / 0.5596 GB, free: 16.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01058/0.5689, allocations: 4.615 MB / 0.5642 GB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003978/0.5693, allocations: 489.5 kB / 0.5646 GB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002546/0.5719, allocations: 0.6267 MB / 0.5652 GB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01964/0.5915, allocations: 10.35 MB / 0.5753 GB, free: 9.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001613/0.5917, allocations: 8.719 kB / 0.5753 GB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008011/0.5925, allocations: 267.3 kB / 0.5756 GB, free: 9.207 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003115/0.5929, allocations: 418.2 kB / 0.576 GB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01555/0.6084, allocations: 9.87 MB / 0.5856 GB, free: 1.613 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0581/0.6666, allocations: 35.3 MB / 0.6201 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01877/0.6854, allocations: 20.65 MB / 0.6403 GB, free: 6.5 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003789/0.6892, allocations: 2.302 MB / 0.6425 GB, free: 4.191 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000377/0.6896, allocations: 229.2 kB / 0.6428 GB, free: 3.941 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.046e-05/0.6897, allocations: 64.83 kB / 0.6428 GB, free: 3.867 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.719e-06/0.6897, allocations: 0 / 0.6428 GB, free: 3.867 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02199/0.7117, allocations: 10.87 MB / 0.6534 GB, free: 8.887 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.7118, allocations: 81.78 kB / 0.6535 GB, free: 8.793 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004562/0.7163, allocations: 3.025 MB / 0.6565 GB, free: 5.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003367/0.7167, allocations: 77.7 kB / 0.6565 GB, free: 5.668 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001972/0.7187, allocations: 2.868 MB / 0.6593 GB, free: 2.785 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001044/0.7197, allocations: 1.023 MB / 0.6603 GB, free: 1.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001457/0.7212, allocations: 0.9055 MB / 0.6612 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.7213, allocations: 309.1 kB / 0.6615 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002913/0.7242, allocations: 2.024 MB / 0.6635 GB, free: 14.52 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004129/0.7284, allocations: 3.729 MB / 0.6671 GB, free: 10.03 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007678/0.7361, allocations: 6.042 MB / 0.673 GB, free: 3.414 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.195e-05/0.7361, allocations: 20 kB / 0.673 GB, free: 3.395 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01136/0.7475, allocations: 6.625 MB / 0.6795 GB, free: 13.07 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.423e-05/0.7476, allocations: 34.48 kB / 0.6796 GB, free: 13.04 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001138/0.7477, allocations: 59.66 kB / 0.6796 GB, free: 12.99 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/0.7495, allocations: 0.6671 MB / 0.6803 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003845/0.7533, allocations: 1.074 MB / 0.6813 GB, free: 11.32 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008902/0.7623, allocations: 6.224 MB / 0.6874 GB, free: 4.996 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004497/0.7668, allocations: 279.5 kB / 0.6877 GB, free: 4.723 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006402/0.7674, allocations: 232 kB / 0.6879 GB, free: 4.496 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.006538/0.774, allocations: 2.312 MB / 0.6901 GB, free: 2.246 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009836/0.775, allocations: 320.1 kB / 0.6904 GB, free: 1.93 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00779/0.7828, allocations: 4.632 MB / 0.695 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.573e-05/0.7828, allocations: 35.94 kB / 0.695 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/0.7829, allocations: 4 kB / 0.695 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-05/0.7829, allocations: 19.94 kB / 0.695 GB, free: 13.21 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01957/0.8025, allocations: 11.08 MB / 0.7058 GB, free: 2.102 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/0.8025, allocations: 8 kB / 0.7058 GB, free: 2.094 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002048/0.8046, allocations: 0.5277 MB / 0.7064 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001513/0.8061, allocations: 0.5764 MB / 0.7069 GB, free: 1.02 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001905/0.8063, allocations: 63.98 kB / 0.707 GB, free: 0.957 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2317/1.038, allocations: 5.443 MB / 0.7123 GB, free: 172.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/1.038, allocations: 8.969 kB / 0.7123 GB, free: 172.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01165/1.05, allocations: 6.58 MB / 0.7187 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002209/1.052, allocations: 0.7202 MB / 0.7194 GB, free: 172.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005777/1.053, allocations: 59.59 kB / 0.7195 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00157/1.054, allocations: 149.7 kB / 0.7196 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004495/1.055, allocations: 216.1 kB / 0.7198 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002076/1.055, allocations: 89.53 kB / 0.7199 GB, free: 172 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003414/1.058, allocations: 2.02 MB / 0.7219 GB, free: 171.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.058, allocations: 0 / 0.7219 GB, free: 171.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004408/1.063, allocations: 1.167 MB / 0.723 GB, free: 171.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.0004742/1.063, allocations: 234.1 kB / 0.7233 GB, free: 171 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007209/1.07, allocations: 5.041 MB / 0.7282 GB, free: 169.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.824e-06/1.07, allocations: 0 / 0.7282 GB, free: 169.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003283/1.074, allocations: 2.259 MB / 0.7304 GB, free: 168.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003275/1.077, allocations: 0.643 MB / 0.731 GB, free: 168 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01808/1.095, allocations: 10.99 MB / 0.7418 GB, free: 162.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003741/1.099, allocations: 4.146 MB / 0.7458 GB, free: 159.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003912/1.103, allocations: 1.324 MB / 0.7471 GB, free: 158.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008347/1.104, allocations: 277.7 kB / 0.7474 GB, free: 158.2 MB / 494.1 MB Notification: Performance of SimCode: time 5.71e-07/1.104, allocations: 0 / 0.7474 GB, free: 158.2 MB / 494.1 MB Notification: Performance of Templates: time 0.06931/1.173, allocations: 43.55 MB / 0.7899 GB, free: 116.9 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 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1)