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.001079/0.001079, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.373/1.373, allocations: 223.3 MB / 239.4 MB, free: 5.422 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.001083/0.001083, allocations: 172.5 kB / 290.6 MB, free: 2.086 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03491/0.03491, allocations: 8.808 MB / 350.5 MB, free: 4.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004022/0.0004024, allocations: 11.03 kB / 413.8 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09487/0.09529, allocations: 52.56 MB / 466.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02227/0.1176, allocations: 23.92 MB / 490.3 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01644/0.1341, allocations: 7.844 MB / 498.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005512/0.1396, allocations: 159.6 kB / 498.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005755/0.1454, allocations: 1.552 MB / 499.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008791/0.1542, allocations: 2.498 MB / 0.4906 GB, free: 8.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004397/0.1587, allocations: 1.321 MB / 0.4919 GB, free: 7.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01002/0.1687, allocations: 7.351 MB / 0.499 GB, free: 300 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0242/0.1929, allocations: 13.41 MB / 0.5121 GB, free: 2.754 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005907/0.1989, allocations: 2.67 MB / 0.5147 GB, free: 76 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006225/0.2051, allocations: 3.31 MB / 0.518 GB, free: 12.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002671/0.2078, allocations: 428 kB / 0.5184 GB, free: 12.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004354/0.2122, allocations: 0.7964 MB / 0.5192 GB, free: 11.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002785/0.215, allocations: 1.374 MB / 0.5205 GB, free: 10.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00634/0.2214, allocations: 3.283 MB / 0.5237 GB, free: 6.852 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2539/0.4753, allocations: 13.56 MB / 0.537 GB, free: 24.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.4753, allocations: 0 / 0.537 GB, free: 24.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.4754, allocations: 0.7188 kB / 0.537 GB, free: 24.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003516/0.4757, allocations: 0 / 0.537 GB, free: 24.09 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.02225/0.498, allocations: 7.393 MB / 0.5442 GB, free: 21.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.869e-05/0.498, allocations: 9.625 kB / 0.5442 GB, free: 21.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02605/0.5241, allocations: 4.399 MB / 0.5485 GB, free: 19.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01195/0.5361, allocations: 4.525 MB / 0.5529 GB, free: 18.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009399/0.5371, allocations: 492.7 kB / 0.5534 GB, free: 18.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00283/0.5399, allocations: 0.633 MB / 0.554 GB, free: 18.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02763/0.5676, allocations: 10.35 MB / 0.5641 GB, free: 16.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003795/0.568, allocations: 14.56 kB / 0.5641 GB, free: 16.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002178/0.5702, allocations: 267.7 kB / 0.5644 GB, free: 16.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004412/0.5706, allocations: 410.9 kB / 0.5648 GB, free: 16.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01843/0.5891, allocations: 9.859 MB / 0.5744 GB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05837/0.6475, allocations: 35.8 MB / 0.6093 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02079/0.6683, allocations: 20.64 MB / 0.6295 GB, free: 1.551 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004376/0.6727, allocations: 2.306 MB / 0.6318 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004463/0.6732, allocations: 230.5 kB / 0.632 GB, free: 14.99 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.494e-05/0.6733, allocations: 60.89 kB / 0.632 GB, free: 14.92 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 5.27e-06/0.6733, allocations: 0 / 0.632 GB, free: 14.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02431/0.6976, allocations: 10.89 MB / 0.6427 GB, free: 3.926 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.6977, allocations: 81.78 kB / 0.6427 GB, free: 3.832 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006022/0.7038, allocations: 3.025 MB / 0.6457 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003926/0.7042, allocations: 77.7 kB / 0.6458 GB, free: 0.707 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0021/0.7063, allocations: 2.862 MB / 0.6486 GB, free: 13.83 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001088/0.7074, allocations: 1.027 MB / 0.6496 GB, free: 12.81 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007635/0.7082, allocations: 371.8 kB / 0.6499 GB, free: 12.44 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.884e-05/0.7083, allocations: 305.1 kB / 0.6502 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003433/0.7117, allocations: 2.02 MB / 0.6522 GB, free: 10.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004897/0.7166, allocations: 3.732 MB / 0.6558 GB, free: 5.617 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008308/0.7249, allocations: 6.041 MB / 0.6617 GB, free: 15 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.007e-05/0.725, allocations: 16 kB / 0.6617 GB, free: 14.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01325/0.7383, allocations: 6.629 MB / 0.6682 GB, free: 8.66 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.279e-05/0.7384, allocations: 28 kB / 0.6682 GB, free: 8.633 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001054/0.7385, allocations: 55.94 kB / 0.6683 GB, free: 8.578 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001948/0.7405, allocations: 0.6674 MB / 0.669 GB, free: 7.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003947/0.7444, allocations: 1.066 MB / 0.67 GB, free: 6.918 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008614/0.7531, allocations: 5.808 MB / 0.6757 GB, free: 1.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003878/0.757, allocations: 275.5 kB / 0.6759 GB, free: 0.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007661/0.7578, allocations: 232 kB / 0.6762 GB, free: 0.5234 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.004574/0.7624, allocations: 2.319 MB / 0.6784 GB, free: 14.27 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008858/0.7633, allocations: 326.8 kB / 0.6787 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008844/0.7721, allocations: 4.627 MB / 0.6832 GB, free: 9.285 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.983e-05/0.7722, allocations: 36 kB / 0.6833 GB, free: 9.25 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.95e-05/0.7722, allocations: 8 kB / 0.6833 GB, free: 9.242 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.345e-05/0.7722, allocations: 15.94 kB / 0.6833 GB, free: 9.227 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02139/0.7936, allocations: 11.27 MB / 0.6943 GB, free: 13.85 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-05/0.7937, allocations: 4 kB / 0.6943 GB, free: 13.85 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002313/0.796, allocations: 0.5337 MB / 0.6948 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001747/0.7978, allocations: 0.5687 MB / 0.6954 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003609/0.7982, allocations: 71.98 kB / 0.6955 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007338/0.8055, allocations: 5.034 MB / 0.7004 GB, free: 7.551 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.796e-06/0.8056, allocations: 11.94 kB / 0.7004 GB, free: 7.539 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01147/0.817, allocations: 6.586 MB / 0.7068 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001872/0.8189, allocations: 0.7467 MB / 0.7075 GB, free: 44 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.2333/1.052, allocations: 55.28 kB / 0.7076 GB, free: 174.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002737/1.055, allocations: 147.6 kB / 0.7077 GB, free: 174.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006067/1.056, allocations: 206.6 kB / 0.7079 GB, free: 174.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001959/1.056, allocations: 89.2 kB / 0.708 GB, free: 174.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003762/1.06, allocations: 2.022 MB / 0.71 GB, free: 174.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.482e-06/1.06, allocations: 2.562 kB / 0.71 GB, free: 174.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006076/1.066, allocations: 1.174 MB / 0.7111 GB, free: 174.5 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.0006354/1.066, allocations: 228.7 kB / 0.7114 GB, free: 174.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009593/1.076, allocations: 5.018 MB / 0.7163 GB, free: 174 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/1.076, allocations: 3.625 kB / 0.7163 GB, free: 174 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004412/1.08, allocations: 2.276 MB / 0.7185 GB, free: 173.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005484/1.086, allocations: 0.6073 MB / 0.7191 GB, free: 173.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01897/1.105, allocations: 13.87 MB / 0.7326 GB, free: 166.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003531/1.109, allocations: 4.15 MB / 0.7367 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003902/1.112, allocations: 1.32 MB / 0.738 GB, free: 164.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000796/1.113, allocations: 275.8 kB / 0.7382 GB, free: 164.4 MB / 494.1 MB Notification: Performance of SimCode: time 9.62e-07/1.113, allocations: 1 kB / 0.7382 GB, free: 164.4 MB / 494.1 MB Notification: Performance of Templates: time 0.06939/1.183, allocations: 45.35 MB / 0.7825 GB, free: 123.9 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: