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.002047/0.002047, allocations: 100.1 kB / 15.88 MB, free: 12 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.571/1.571, allocations: 222.9 MB / 239.5 MB, free: 4.801 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.001682/0.001682, allocations: 188.5 kB / 289.8 MB, free: 2.535 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04364/0.04364, allocations: 8.794 MB / 348.7 MB, free: 4.957 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 79.3 kB / 411.1 MB, free: 42.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1271, allocations: 51.57 MB / 462.6 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.03183/0.159, allocations: 24.99 MB / 487.6 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02018/0.1792, allocations: 7.944 MB / 495.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006682/0.186, allocations: 167.5 kB / 495.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01632/0.2023, allocations: 5.767 MB / 0.4897 GB, free: 7.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0107/0.213, allocations: 2.527 MB / 0.4922 GB, free: 5.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005841/0.2189, allocations: 1.514 MB / 0.4937 GB, free: 3.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01267/0.2316, allocations: 7.357 MB / 0.5009 GB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02009/0.2517, allocations: 10.95 MB / 0.5116 GB, free: 1.484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006244/0.258, allocations: 3.236 MB / 0.5147 GB, free: 14.24 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009024/0.2671, allocations: 4.044 MB / 0.5187 GB, free: 10.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004553/0.2717, allocations: 0.6953 MB / 0.5194 GB, free: 9.484 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007819/0.2796, allocations: 1.062 MB / 0.5204 GB, free: 8.422 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00553/0.2851, allocations: 1.76 MB / 0.5221 GB, free: 6.656 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01404/0.2992, allocations: 3.726 MB / 0.5257 GB, free: 2.914 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4171/0.7164, allocations: 12.48 MB / 0.5379 GB, free: 26.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.188e-06/0.7164, allocations: 0.7188 kB / 0.5379 GB, free: 26.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.7165, allocations: 1.094 kB / 0.5379 GB, free: 26.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005684/0.717, allocations: 1.156 kB / 0.5379 GB, free: 26.61 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.05474/0.7718, allocations: 8.802 MB / 0.5465 GB, free: 23.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.77e-05/0.7719, allocations: 8.281 kB / 0.5465 GB, free: 23.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04702/0.8189, allocations: 4.385 MB / 0.5508 GB, free: 21.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01912/0.8381, allocations: 4.502 MB / 0.5552 GB, free: 20.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008297/0.839, allocations: 492.1 kB / 0.5557 GB, free: 20.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005268/0.8443, allocations: 0.6339 MB / 0.5563 GB, free: 20.44 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05007/0.8944, allocations: 10.35 MB / 0.5664 GB, free: 17.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004503/0.8949, allocations: 14.91 kB / 0.5664 GB, free: 17.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003825/0.8988, allocations: 269.1 kB / 0.5667 GB, free: 16.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008038/0.8996, allocations: 410.4 kB / 0.5671 GB, free: 16.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03644/0.9361, allocations: 9.862 MB / 0.5767 GB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1101/1.046, allocations: 35.69 MB / 0.6116 GB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03288/1.079, allocations: 20.66 MB / 0.6317 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007265/1.087, allocations: 2.299 MB / 0.634 GB, free: 12.54 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007609/1.087, allocations: 227 kB / 0.6342 GB, free: 12.29 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001428/1.088, allocations: 68.89 kB / 0.6343 GB, free: 12.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 1.58e-05/1.088, allocations: 0 / 0.6343 GB, free: 12.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.0441/1.132, allocations: 10.87 MB / 0.6449 GB, free: 1.238 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/1.132, allocations: 81.78 kB / 0.645 GB, free: 1.145 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01116/1.143, allocations: 3.025 MB / 0.6479 GB, free: 14.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009921/1.144, allocations: 73.7 kB / 0.648 GB, free: 14.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004253/1.148, allocations: 2.862 MB / 0.6508 GB, free: 11.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002561/1.151, allocations: 1.033 MB / 0.6518 GB, free: 10.12 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005064/1.156, allocations: 0.9016 MB / 0.6527 GB, free: 9.203 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/1.156, allocations: 309.1 kB / 0.653 GB, free: 8.898 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006407/1.163, allocations: 2.027 MB / 0.6549 GB, free: 6.863 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008434/1.171, allocations: 3.725 MB / 0.6586 GB, free: 2.379 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0159/1.187, allocations: 6.049 MB / 0.6645 GB, free: 11.76 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001456/1.187, allocations: 19.94 kB / 0.6645 GB, free: 11.74 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02621/1.214, allocations: 6.622 MB / 0.671 GB, free: 5.422 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001737/1.214, allocations: 29.56 kB / 0.671 GB, free: 5.395 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001997/1.214, allocations: 56.05 kB / 0.6711 GB, free: 5.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003334/1.217, allocations: 0.6682 MB / 0.6717 GB, free: 4.668 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007969/1.225, allocations: 1.07 MB / 0.6728 GB, free: 3.672 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01629/1.242, allocations: 5.801 MB / 0.6784 GB, free: 13.79 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007989/1.25, allocations: 279.5 kB / 0.6787 GB, free: 13.51 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001831/1.252, allocations: 230.2 kB / 0.6789 GB, free: 13.29 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.01044/1.262, allocations: 2.321 MB / 0.6812 GB, free: 11.03 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002245/1.264, allocations: 316.1 kB / 0.6815 GB, free: 10.72 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0189/1.283, allocations: 4.636 MB / 0.686 GB, free: 6.051 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.75e-05/1.284, allocations: 32 kB / 0.686 GB, free: 6.02 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-05/1.284, allocations: 8 kB / 0.686 GB, free: 6.012 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001008/1.284, allocations: 15.94 kB / 0.686 GB, free: 5.996 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04139/1.325, allocations: 11.25 MB / 0.697 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.396e-05/1.325, allocations: 4 kB / 0.697 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003713/1.329, allocations: 0.5278 MB / 0.6976 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002656/1.332, allocations: 0.5768 MB / 0.6981 GB, free: 9.555 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006336/1.332, allocations: 63.98 kB / 0.6982 GB, free: 9.492 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01148/1.344, allocations: 5.035 MB / 0.7031 GB, free: 4.344 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-05/1.344, allocations: 7.938 kB / 0.7031 GB, free: 4.336 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4163/1.76, allocations: 6.579 MB / 0.7095 GB, free: 175 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005212/1.765, allocations: 0.7261 MB / 0.7102 GB, free: 174.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00228/1.768, allocations: 57.88 kB / 0.7103 GB, free: 174.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004331/1.772, allocations: 149.1 kB / 0.7104 GB, free: 174.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009383/1.773, allocations: 211.7 kB / 0.7106 GB, free: 174.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003762/1.774, allocations: 93.05 kB / 0.7107 GB, free: 174.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007514/1.781, allocations: 2.017 MB / 0.7127 GB, free: 174.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.41e-07/1.781, allocations: 0 / 0.7127 GB, free: 174.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01191/1.793, allocations: 1.172 MB / 0.7138 GB, free: 174.8 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.001896/1.795, allocations: 226.5 kB / 0.7141 GB, free: 174.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01671/1.812, allocations: 5.026 MB / 0.719 GB, free: 172.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-05/1.812, allocations: 0 / 0.719 GB, free: 172.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006443/1.818, allocations: 2.261 MB / 0.7212 GB, free: 172 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006577/1.825, allocations: 0.6065 MB / 0.7218 GB, free: 171.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03435/1.859, allocations: 13.68 MB / 0.7351 GB, free: 164.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008145/1.867, allocations: 4.037 MB / 0.7391 GB, free: 162.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002414/1.87, allocations: 311.2 kB / 0.7394 GB, free: 162.4 MB / 494.1 MB Notification: Performance of SimCode: time 2.134e-06/1.87, allocations: 0 / 0.7394 GB, free: 162.4 MB / 494.1 MB Notification: Performance of Templates: time 0.2098/2.08, allocations: 106 MB / 0.8429 GB, free: 61.74 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)