Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.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.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 118.3 kB / 16.37 MB, free: 5.984 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.349/1.349, allocations: 222.9 MB / 240 MB, free: 4.527 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.001269/0.001269, allocations: 184.5 kB / 290.3 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03554/0.03554, allocations: 8.79 MB / 349.3 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 77.08 kB / 412.5 MB, free: 41.71 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08513/0.08676, allocations: 51.57 MB / 464.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02995/0.1167, allocations: 27.65 MB / 491.7 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01593/0.1327, allocations: 8.026 MB / 499.8 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004743/0.1375, allocations: 207.4 kB / 500 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01711/0.1546, allocations: 7.925 MB / 0.496 GB, free: 1.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00923/0.1639, allocations: 2.693 MB / 0.4986 GB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005578/0.1695, allocations: 1.826 MB / 0.5004 GB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01261/0.1821, allocations: 9.677 MB / 0.5099 GB, free: 3.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2299/0.412, allocations: 21.19 MB / 0.5305 GB, free: 16.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007449/0.4195, allocations: 5.256 MB / 0.5357 GB, free: 16.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008848/0.4284, allocations: 5.918 MB / 0.5415 GB, free: 15.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003616/0.432, allocations: 1.516 MB / 0.5429 GB, free: 15.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004699/0.4367, allocations: 1.884 MB / 0.5448 GB, free: 15.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001998/0.4387, allocations: 2.934 MB / 0.5476 GB, free: 14.78 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005208/0.444, allocations: 5.722 MB / 0.5532 GB, free: 13.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01313/0.4571, allocations: 20.28 MB / 0.573 GB, free: 4.875 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.445e-06/0.4571, allocations: 0 / 0.573 GB, free: 4.875 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.4572, allocations: 0 / 0.573 GB, free: 4.875 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005496/0.4577, allocations: 0 / 0.573 GB, free: 4.875 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: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.03101/0.4887, allocations: 11.59 MB / 0.5844 GB, free: 13.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.4888, allocations: 10.88 kB / 0.5844 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02989/0.5187, allocations: 5.591 MB / 0.5898 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01494/0.5337, allocations: 6.184 MB / 0.5959 GB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006108/0.5343, allocations: 0.6921 MB / 0.5965 GB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003275/0.5376, allocations: 0.9036 MB / 0.5974 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03377/0.5714, allocations: 14.86 MB / 0.6119 GB, free: 3.391 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002975/0.5717, allocations: 11.81 kB / 0.6119 GB, free: 3.379 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002272/0.574, allocations: 393.8 kB / 0.6123 GB, free: 3.004 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004817/0.5745, allocations: 0.5035 MB / 0.6128 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.028/0.6025, allocations: 13.58 MB / 0.6261 GB, free: 4.914 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07522/0.6777, allocations: 46.09 MB / 0.6711 GB, free: 6.539 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01908/0.6969, allocations: 28.3 MB / 0.6987 GB, free: 6.578 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005087/0.702, allocations: 3.025 MB / 0.7017 GB, free: 3.547 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003797/0.7024, allocations: 236.9 kB / 0.7019 GB, free: 3.289 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.174e-05/0.7025, allocations: 77.45 kB / 0.702 GB, free: 3.203 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 5.059e-06/0.7025, allocations: 0 / 0.702 GB, free: 3.203 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.2139/0.9164, allocations: 14.63 MB / 0.7163 GB, free: 159.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.9165, allocations: 90.22 kB / 0.7164 GB, free: 159.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005294/0.9218, allocations: 3.483 MB / 0.7198 GB, free: 159 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004751/0.9223, allocations: 86.02 kB / 0.7198 GB, free: 158.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00203/0.9243, allocations: 3.948 MB / 0.7237 GB, free: 156.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001118/0.9254, allocations: 1.307 MB / 0.725 GB, free: 155.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001527/0.927, allocations: 1.141 MB / 0.7261 GB, free: 155.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.365e-05/0.927, allocations: 302.4 kB / 0.7264 GB, free: 155.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003322/0.9304, allocations: 2.551 MB / 0.7289 GB, free: 155.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00465/0.935, allocations: 5.014 MB / 0.7338 GB, free: 152.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008885/0.9439, allocations: 8.217 MB / 0.7418 GB, free: 146.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-05/0.944, allocations: 23.38 kB / 0.7418 GB, free: 146.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01226/0.9563, allocations: 8.503 MB / 0.7501 GB, free: 143 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.269e-05/0.9564, allocations: 39.03 kB / 0.7502 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.923e-05/0.9565, allocations: 81.25 kB / 0.7502 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002014/0.9585, allocations: 0.851 MB / 0.7511 GB, free: 142.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004093/0.9626, allocations: 1.34 MB / 0.7524 GB, free: 142.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008413/0.971, allocations: 7.657 MB / 0.7598 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003815/0.9749, allocations: 324.4 kB / 0.7602 GB, free: 138.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000497/0.9754, allocations: 306 kB / 0.7604 GB, free: 138.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (708): * Single equations (assignments): 707 * 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,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004679/0.9801, allocations: 3.483 MB / 0.7638 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000776/0.9808, allocations: 387 kB / 0.7642 GB, free: 135.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007843/0.9887, allocations: 5.858 MB / 0.7699 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/0.9887, allocations: 40 kB / 0.77 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.9887, allocations: 11.89 kB / 0.77 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-05/0.9888, allocations: 21.03 kB / 0.77 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01993/1.009, allocations: 14.49 MB / 0.7842 GB, free: 116.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/1.009, allocations: 8 kB / 0.7842 GB, free: 116.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002349/1.011, allocations: 0.667 MB / 0.7848 GB, free: 115.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001724/1.013, allocations: 0.7098 MB / 0.7855 GB, free: 114.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002192/1.013, allocations: 79.98 kB / 0.7856 GB, free: 114.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006984/1.02, allocations: 6.708 MB / 0.7921 GB, free: 107.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/1.02, allocations: 4 kB / 0.7921 GB, free: 107.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009734/1.03, allocations: 8.555 MB / 0.8005 GB, free: 99.26 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001882/1.032, allocations: 0.8553 MB / 0.8013 GB, free: 98.38 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004457/1.032, allocations: 75.98 kB / 0.8014 GB, free: 98.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001577/1.034, allocations: 183.8 kB / 0.8016 GB, free: 98.12 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003899/1.034, allocations: 258.7 kB / 0.8018 GB, free: 97.87 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002098/1.034, allocations: 108 kB / 0.8019 GB, free: 97.77 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002666/1.037, allocations: 2.334 MB / 0.8042 GB, free: 95.44 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.037, allocations: 0 / 0.8042 GB, free: 95.44 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004417/1.041, allocations: 1.515 MB / 0.8057 GB, free: 93.93 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smr.phiMechanical) * 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 (365): * Single equations (assignments): 364 * 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,38,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004539/1.042, allocations: 250.2 kB / 0.8059 GB, free: 93.68 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007461/1.049, allocations: 6.415 MB / 0.8122 GB, free: 87.26 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/1.049, allocations: 6.297 kB / 0.8122 GB, free: 87.26 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003238/1.053, allocations: 2.878 MB / 0.815 GB, free: 84.38 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003332/1.056, allocations: 0.9007 MB / 0.8159 GB, free: 83.52 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02031/1.076, allocations: 15.35 MB / 0.8309 GB, free: 68.09 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004644/1.081, allocations: 5.894 MB / 0.8366 GB, free: 62.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004095/1.085, allocations: 1.856 MB / 0.8384 GB, free: 60.33 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008763/1.086, allocations: 331.4 kB / 0.8388 GB, free: 60.01 MB / 494.1 MB Notification: Performance of SimCode: time 5.11e-07/1.086, allocations: 0 / 0.8388 GB, free: 60.01 MB / 494.1 MB Notification: Performance of Templates: time 0.2558/1.342, allocations: 55.29 MB / 0.8928 GB, free: 147.1 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1)