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.004971/0.004971, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.336/1.336, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001335/0.001335, allocations: 191.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03449/0.03449, allocations: 8.792 MB / 348.6 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 75.88 kB / 463.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1138, allocations: 51.57 MB / 0.5034 GB, free: 9.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.2442/0.358, allocations: 25.42 MB / 0.5283 GB, free: 4.988 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01367/0.3717, allocations: 8.015 MB / 0.5361 GB, free: 4.895 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004579/0.3764, allocations: 173.1 kB / 0.5362 GB, free: 4.895 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01269/0.3891, allocations: 6.104 MB / 0.5422 GB, free: 4.262 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008214/0.3973, allocations: 2.737 MB / 0.5449 GB, free: 3.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004479/0.4018, allocations: 1.611 MB / 0.5465 GB, free: 3.344 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009942/0.4118, allocations: 7.281 MB / 0.5536 GB, free: 1.156 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0197/0.4315, allocations: 13.31 MB / 0.5666 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005711/0.4372, allocations: 3.758 MB / 0.5702 GB, free: 9.336 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006562/0.4438, allocations: 4.213 MB / 0.5743 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002304/0.4461, allocations: 1.074 MB / 0.5754 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003889/0.4501, allocations: 1.441 MB / 0.5768 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002689/0.4528, allocations: 2.143 MB / 0.5789 GB, free: 1.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006557/0.4593, allocations: 4.111 MB / 0.5829 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01562/0.475, allocations: 14.44 MB / 0.597 GB, free: 14.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.475, allocations: 0 / 0.597 GB, free: 14.87 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.475, allocations: 0 / 0.597 GB, free: 14.87 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003005/0.4753, allocations: 0 / 0.597 GB, free: 14.87 MB / 414.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.0236/0.4989, allocations: 8.777 MB / 0.6056 GB, free: 6.078 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.499, allocations: 8.031 kB / 0.6056 GB, free: 6.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0239/0.5229, allocations: 4.401 MB / 0.6099 GB, free: 1.711 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009637/0.5326, allocations: 4.621 MB / 0.6144 GB, free: 13.06 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000437/0.533, allocations: 482.2 kB / 0.6149 GB, free: 12.6 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002076/0.5351, allocations: 0.6249 MB / 0.6155 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02158/0.5567, allocations: 10.36 MB / 0.6256 GB, free: 1.578 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001727/0.5569, allocations: 11.84 kB / 0.6256 GB, free: 1.566 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007932/0.5577, allocations: 271.5 kB / 0.6259 GB, free: 1.309 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000397/0.5581, allocations: 421.6 kB / 0.6263 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01867/0.5768, allocations: 9.868 MB / 0.6359 GB, free: 7.008 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05363/0.6305, allocations: 35.29 MB / 0.6704 GB, free: 2.715 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0189/0.6494, allocations: 20.66 MB / 0.6905 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003797/0.6532, allocations: 2.308 MB / 0.6928 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003256/0.6536, allocations: 230.2 kB / 0.693 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.145e-05/0.6536, allocations: 68.83 kB / 0.6931 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 5.901e-06/0.6537, allocations: 0 / 0.6931 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02254/0.6762, allocations: 10.88 MB / 0.7037 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.357e-05/0.6763, allocations: 81.78 kB / 0.7038 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004523/0.6808, allocations: 3.021 MB / 0.7067 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004431/0.6813, allocations: 69.7 kB / 0.7068 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001973/0.6833, allocations: 2.864 MB / 0.7096 GB, free: 7.664 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001038/0.6843, allocations: 1.035 MB / 0.7106 GB, free: 6.637 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001307/0.6857, allocations: 0.9055 MB / 0.7115 GB, free: 5.719 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.495e-05/0.6858, allocations: 301.1 kB / 0.7118 GB, free: 5.422 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002988/0.6888, allocations: 2.031 MB / 0.7138 GB, free: 3.383 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004048/0.6928, allocations: 3.724 MB / 0.7174 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00775/0.7006, allocations: 6.043 MB / 0.7233 GB, free: 8.023 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.266e-05/0.7007, allocations: 12 kB / 0.7233 GB, free: 8.012 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01115/0.7118, allocations: 6.625 MB / 0.7298 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.799e-05/0.7119, allocations: 28 kB / 0.7298 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.712, allocations: 56.22 kB / 0.7299 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001769/0.7138, allocations: 0.6782 MB / 0.7305 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2714/0.9853, allocations: 1.068 MB / 0.7316 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007899/0.9932, allocations: 6.221 MB / 0.7376 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003993/0.9972, allocations: 281.6 kB / 0.7379 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005494/0.9978, allocations: 226.8 kB / 0.7381 GB, free: 165.1 MB / 0.5294 GB 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.004382/1.002, allocations: 2.313 MB / 0.7404 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007862/1.003, allocations: 324.4 kB / 0.7407 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008101/1.011, allocations: 4.632 MB / 0.7452 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.704e-05/1.011, allocations: 31 kB / 0.7452 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/1.011, allocations: 5.344 kB / 0.7453 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-05/1.011, allocations: 15.47 kB / 0.7453 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01734/1.029, allocations: 11.09 MB / 0.7561 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.447e-05/1.029, allocations: 9.125 kB / 0.7561 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001904/1.031, allocations: 0.5284 MB / 0.7566 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001467/1.032, allocations: 0.5677 MB / 0.7572 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000177/1.032, allocations: 69.75 kB / 0.7572 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005845/1.038, allocations: 5.456 MB / 0.7626 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/1.038, allocations: 7.906 kB / 0.7626 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007983/1.046, allocations: 6.581 MB / 0.769 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001515/1.048, allocations: 0.7228 MB / 0.7697 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004647/1.048, allocations: 64.89 kB / 0.7698 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/1.049, allocations: 144.6 kB / 0.7699 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003976/1.05, allocations: 208.3 kB / 0.7701 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001828/1.05, allocations: 88.02 kB / 0.7702 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002766/1.053, allocations: 2.018 MB / 0.7722 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.61e-07/1.053, allocations: 0 / 0.7722 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004387/1.057, allocations: 1.171 MB / 0.7733 GB, free: 152.3 MB / 0.5294 GB 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.0004858/1.058, allocations: 228.2 kB / 0.7735 GB, free: 152.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006968/1.065, allocations: 5.043 MB / 0.7785 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.168e-06/1.065, allocations: 0 / 0.7785 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003018/1.068, allocations: 2.261 MB / 0.7807 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003513/1.071, allocations: 0.6435 MB / 0.7813 GB, free: 149 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01791/1.089, allocations: 10.99 MB / 0.792 GB, free: 139.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002897/1.092, allocations: 4.15 MB / 0.7961 GB, free: 135.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003071/1.095, allocations: 1.326 MB / 0.7974 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006931/1.096, allocations: 271.4 kB / 0.7976 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of SimCode: time 4.61e-07/1.096, allocations: 0 / 0.7976 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.06529/1.161, allocations: 45.26 MB / 0.8418 GB, free: 89.17 MB / 0.5294 GB 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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1)