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.001526/0.001526, allocations: 102.1 kB / 16.41 MB, free: 6.488 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.364/1.364, allocations: 222.9 MB / 240.1 MB, free: 4.375 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.001493/0.001493, allocations: 188.5 kB / 290.4 MB, free: 2.102 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03425/0.03425, allocations: 8.794 MB / 349.3 MB, free: 4.566 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 75.88 kB / 464.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1052, allocations: 51.58 MB / 0.5041 GB, free: 9.375 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.2531/0.3583, allocations: 25.41 MB / 0.5289 GB, free: 4.891 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01439/0.3728, allocations: 8.018 MB / 0.5368 GB, free: 4.793 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005405/0.3782, allocations: 173.6 kB / 0.5369 GB, free: 4.793 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01397/0.3922, allocations: 6.098 MB / 0.5429 GB, free: 4.168 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008773/0.401, allocations: 2.744 MB / 0.5456 GB, free: 3.406 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005008/0.406, allocations: 1.62 MB / 0.5471 GB, free: 3.246 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01086/0.4169, allocations: 7.275 MB / 0.5542 GB, free: 1.145 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02552/0.4425, allocations: 13.32 MB / 0.5672 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007281/0.4498, allocations: 3.752 MB / 0.5709 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007942/0.4578, allocations: 4.217 MB / 0.575 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003225/0.4611, allocations: 1.074 MB / 0.5761 GB, free: 4.707 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005142/0.4662, allocations: 1.434 MB / 0.5775 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003551/0.4698, allocations: 2.148 MB / 0.5796 GB, free: 1.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008334/0.4782, allocations: 4.111 MB / 0.5836 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0186/0.4968, allocations: 14.44 MB / 0.5977 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.884e-06/0.4968, allocations: 0 / 0.5977 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.4969, allocations: 0 / 0.5977 GB, free: 14.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004258/0.4973, allocations: 0 / 0.5977 GB, free: 14.88 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.03017/0.5275, allocations: 8.774 MB / 0.6063 GB, free: 6.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.5275, allocations: 8.031 kB / 0.6063 GB, free: 6.082 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0257/0.5532, allocations: 4.402 MB / 0.6106 GB, free: 1.723 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01077/0.5641, allocations: 4.624 MB / 0.6151 GB, free: 13.07 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005295/0.5646, allocations: 485.5 kB / 0.6155 GB, free: 12.6 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002696/0.5673, allocations: 0.6273 MB / 0.6162 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02563/0.593, allocations: 10.35 MB / 0.6263 GB, free: 1.586 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002232/0.5933, allocations: 11.91 kB / 0.6263 GB, free: 1.574 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001674/0.595, allocations: 267.2 kB / 0.6265 GB, free: 1.324 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004166/0.5954, allocations: 417.7 kB / 0.6269 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02086/0.6162, allocations: 9.876 MB / 0.6366 GB, free: 7.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05833/0.6746, allocations: 35.3 MB / 0.6711 GB, free: 2.719 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01873/0.6934, allocations: 20.66 MB / 0.6912 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003853/0.6973, allocations: 2.312 MB / 0.6935 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003511/0.6977, allocations: 223.8 kB / 0.6937 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.049e-05/0.6977, allocations: 64.88 kB / 0.6938 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 4.959e-06/0.6978, allocations: 0 / 0.6938 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02188/0.7196, allocations: 10.88 MB / 0.7044 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.914e-05/0.7197, allocations: 81.78 kB / 0.7045 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004872/0.7246, allocations: 3.021 MB / 0.7074 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004881/0.7251, allocations: 69.7 kB / 0.7075 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001823/0.727, allocations: 2.867 MB / 0.7103 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001096/0.7281, allocations: 1.034 MB / 0.7113 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001368/0.7295, allocations: 0.9016 MB / 0.7122 GB, free: 5.742 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.498e-05/0.7296, allocations: 305.1 kB / 0.7125 GB, free: 5.441 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002973/0.7325, allocations: 2.024 MB / 0.7144 GB, free: 3.41 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004068/0.7366, allocations: 3.736 MB / 0.7181 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007587/0.7442, allocations: 6.035 MB / 0.724 GB, free: 8.047 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.675e-05/0.7443, allocations: 16 kB / 0.724 GB, free: 8.031 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01139/0.7557, allocations: 6.628 MB / 0.7305 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.389e-05/0.7558, allocations: 28.22 kB / 0.7305 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.709e-05/0.7559, allocations: 60 kB / 0.7305 GB, free: 1.277 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001836/0.7577, allocations: 0.6778 MB / 0.7312 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2426/1, allocations: 1.065 MB / 0.7322 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008373/1.009, allocations: 6.222 MB / 0.7383 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003982/1.013, allocations: 281.5 kB / 0.7386 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007817/1.014, allocations: 231.5 kB / 0.7388 GB, free: 165 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.004599/1.018, allocations: 2.307 MB / 0.7411 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000823/1.019, allocations: 323.3 kB / 0.7414 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008485/1.028, allocations: 4.627 MB / 0.7459 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.311e-05/1.028, allocations: 30.94 kB / 0.7459 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.646e-05/1.028, allocations: 6.234 kB / 0.7459 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.632e-05/1.028, allocations: 15.92 kB / 0.7459 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01996/1.048, allocations: 11.09 MB / 0.7568 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/1.048, allocations: 4.812 kB / 0.7568 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002058/1.05, allocations: 0.5287 MB / 0.7573 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001561/1.051, allocations: 0.5682 MB / 0.7579 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002372/1.052, allocations: 67.27 kB / 0.7579 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006468/1.058, allocations: 5.466 MB / 0.7633 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/1.058, allocations: 3.969 kB / 0.7633 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01011/1.068, allocations: 6.585 MB / 0.7697 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001603/1.07, allocations: 0.7184 MB / 0.7704 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005068/1.07, allocations: 56.62 kB / 0.7704 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001631/1.072, allocations: 158.3 kB / 0.7706 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003845/1.072, allocations: 205.5 kB / 0.7708 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001873/1.073, allocations: 87.31 kB / 0.7709 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002715/1.075, allocations: 2.016 MB / 0.7728 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.8e-07/1.075, allocations: 3.906 kB / 0.7728 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004442/1.08, allocations: 1.172 MB / 0.774 GB, free: 152.2 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.0005738/1.08, allocations: 227.3 kB / 0.7742 GB, free: 152.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007439/1.088, allocations: 5.042 MB / 0.7791 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/1.088, allocations: 3.062 kB / 0.7791 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00362/1.092, allocations: 2.262 MB / 0.7813 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.003308/1.095, allocations: 0.6408 MB / 0.782 GB, free: 149 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01737/1.112, allocations: 10.85 MB / 0.7926 GB, free: 140.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003255/1.116, allocations: 4.036 MB / 0.7965 GB, free: 136 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001352/1.117, allocations: 311.3 kB / 0.7968 GB, free: 135.7 MB / 0.5294 GB Notification: Performance of SimCode: time 2.435e-06/1.117, allocations: 0 / 0.7968 GB, free: 135.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.1072/1.224, allocations: 106.6 MB / 0.9009 GB, free: 29.17 MB / 0.5294 GB 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)