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.01201/0.01201, allocations: 101.1 kB / 15.88 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.33/2.33, allocations: 222.9 MB / 239.5 MB, free: 4.828 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.002431/0.00243, allocations: 188.5 kB / 289.8 MB, free: 2.562 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06183/0.06183, allocations: 8.783 MB / 348.7 MB, free: 4.965 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002224/0.002223, allocations: 75.42 kB / 411.1 MB, free: 42.49 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1638, allocations: 51.58 MB / 462.6 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.05341/0.2173, allocations: 24.98 MB / 487.6 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03183/0.2492, allocations: 7.936 MB / 495.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01049/0.2598, allocations: 167.5 kB / 495.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02289/0.2828, allocations: 5.771 MB / 0.4897 GB, free: 8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01329/0.2961, allocations: 2.511 MB / 0.4922 GB, free: 5.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007826/0.3039, allocations: 1.526 MB / 0.4937 GB, free: 3.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01703/0.321, allocations: 7.358 MB / 0.5009 GB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02871/0.3498, allocations: 10.94 MB / 0.5115 GB, free: 1.504 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009147/0.359, allocations: 3.248 MB / 0.5147 GB, free: 14.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01016/0.3692, allocations: 4.04 MB / 0.5187 GB, free: 10.19 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004096/0.3733, allocations: 0.6992 MB / 0.5193 GB, free: 9.492 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006878/0.3803, allocations: 1.058 MB / 0.5204 GB, free: 8.434 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004656/0.385, allocations: 1.768 MB / 0.5221 GB, free: 6.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0129/0.3979, allocations: 3.722 MB / 0.5257 GB, free: 2.922 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4146/0.8126, allocations: 12.48 MB / 0.5379 GB, free: 26.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.011e-05/0.8126, allocations: 5.047 kB / 0.5379 GB, free: 26.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.8126, allocations: 2.656 kB / 0.5379 GB, free: 26.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005806/0.8132, allocations: 0 / 0.5379 GB, free: 26.27 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.05228/0.8655, allocations: 8.799 MB / 0.5465 GB, free: 23.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.518e-05/0.8656, allocations: 10.25 kB / 0.5465 GB, free: 23.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04384/0.9095, allocations: 4.379 MB / 0.5508 GB, free: 21.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02163/0.9312, allocations: 4.502 MB / 0.5552 GB, free: 20.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009005/0.9322, allocations: 492.8 kB / 0.5557 GB, free: 20.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005507/0.9377, allocations: 0.6346 MB / 0.5563 GB, free: 20.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05469/0.9925, allocations: 10.35 MB / 0.5664 GB, free: 17.06 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005471/0.9931, allocations: 10.66 kB / 0.5664 GB, free: 17.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004254/0.9974, allocations: 264.4 kB / 0.5667 GB, free: 16.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006817/0.9981, allocations: 415.2 kB / 0.5671 GB, free: 16.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0345/1.033, allocations: 9.862 MB / 0.5767 GB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1032/1.136, allocations: 35.68 MB / 0.6115 GB, free: 5.949 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0325/1.168, allocations: 20.66 MB / 0.6317 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006715/1.175, allocations: 2.302 MB / 0.634 GB, free: 12.37 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005371/1.176, allocations: 230.2 kB / 0.6342 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.757e-05/1.176, allocations: 68.11 kB / 0.6342 GB, free: 12.05 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 8.516e-06/1.176, allocations: 0 / 0.6342 GB, free: 12.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.03857/1.215, allocations: 10.87 MB / 0.6449 GB, free: 1.074 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/1.215, allocations: 81.78 kB / 0.6449 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007831/1.223, allocations: 3.021 MB / 0.6479 GB, free: 13.94 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008272/1.223, allocations: 77.7 kB / 0.648 GB, free: 13.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003079/1.226, allocations: 2.861 MB / 0.6508 GB, free: 10.98 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002164/1.229, allocations: 1.034 MB / 0.6518 GB, free: 9.953 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003743/1.232, allocations: 0.9055 MB / 0.6527 GB, free: 9.035 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/1.233, allocations: 305.1 kB / 0.6529 GB, free: 8.734 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005445/1.238, allocations: 2.031 MB / 0.6549 GB, free: 6.695 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007641/1.246, allocations: 3.72 MB / 0.6586 GB, free: 2.215 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01363/1.259, allocations: 6.044 MB / 0.6645 GB, free: 11.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.13e-05/1.26, allocations: 16 kB / 0.6645 GB, free: 11.58 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02345/1.283, allocations: 6.627 MB / 0.6709 GB, free: 5.262 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001901/1.283, allocations: 28 kB / 0.671 GB, free: 5.234 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002189/1.284, allocations: 59.98 kB / 0.671 GB, free: 5.176 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00415/1.288, allocations: 0.6605 MB / 0.6717 GB, free: 4.512 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008798/1.297, allocations: 1.07 MB / 0.6727 GB, free: 3.516 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01761/1.314, allocations: 5.801 MB / 0.6784 GB, free: 13.62 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00864/1.323, allocations: 285.6 kB / 0.6787 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001929/1.325, allocations: 228 kB / 0.6789 GB, free: 13.12 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.01238/1.337, allocations: 2.32 MB / 0.6811 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003319/1.341, allocations: 320.1 kB / 0.6814 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02092/1.362, allocations: 4.628 MB / 0.686 GB, free: 5.887 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.485e-05/1.362, allocations: 32 kB / 0.686 GB, free: 5.855 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.293e-05/1.362, allocations: 12 kB / 0.686 GB, free: 5.844 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.451e-05/1.362, allocations: 15.94 kB / 0.686 GB, free: 5.828 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04683/1.409, allocations: 11.26 MB / 0.697 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-05/1.409, allocations: 4 kB / 0.697 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00463/1.414, allocations: 0.5316 MB / 0.6975 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003535/1.417, allocations: 0.5716 MB / 0.6981 GB, free: 9.391 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001041/1.418, allocations: 75.92 kB / 0.6982 GB, free: 9.316 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01534/1.434, allocations: 5.025 MB / 0.7031 GB, free: 4.176 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.311e-05/1.434, allocations: 11.94 kB / 0.7031 GB, free: 4.164 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4244/1.858, allocations: 6.581 MB / 0.7095 GB, free: 174.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003423/1.862, allocations: 0.7228 MB / 0.7102 GB, free: 174.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001411/1.863, allocations: 59.41 kB / 0.7103 GB, free: 174.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003528/1.867, allocations: 148.3 kB / 0.7104 GB, free: 174.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007511/1.867, allocations: 208 kB / 0.7106 GB, free: 174.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003177/1.868, allocations: 89.91 kB / 0.7107 GB, free: 174.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006083/1.874, allocations: 2.017 MB / 0.7127 GB, free: 174.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.81e-07/1.874, allocations: 1.062 kB / 0.7127 GB, free: 174.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01169/1.885, allocations: 1.174 MB / 0.7138 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.00152/1.887, allocations: 223.4 kB / 0.714 GB, free: 174.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01483/1.902, allocations: 5.022 MB / 0.7189 GB, free: 172.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.378e-05/1.902, allocations: 3.969 kB / 0.7189 GB, free: 172.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006103/1.908, allocations: 2.263 MB / 0.7212 GB, free: 171.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006181/1.914, allocations: 0.6196 MB / 0.7218 GB, free: 171.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03283/1.947, allocations: 13.67 MB / 0.7351 GB, free: 164 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006663/1.954, allocations: 4.033 MB / 0.739 GB, free: 162.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002245/1.956, allocations: 312.9 kB / 0.7393 GB, free: 162.3 MB / 494.1 MB Notification: Performance of SimCode: time 1.293e-06/1.956, allocations: 0 / 0.7393 GB, free: 162.3 MB / 494.1 MB Notification: Performance of Templates: time 0.1963/2.153, allocations: 106 MB / 0.8429 GB, free: 61.45 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)