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.001527/0.001527, allocations: 108 kB / 15.6 MB, free: 132 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.351/1.351, allocations: 222.9 MB / 239.2 MB, free: 4.617 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.001319/0.001319, allocations: 188.5 kB / 289.5 MB, free: 2.34 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03451/0.03451, allocations: 8.796 MB / 348.5 MB, free: 4.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 78.91 kB / 411.1 MB, free: 42.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08771/0.08921, allocations: 51.57 MB / 462.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.0293/0.1185, allocations: 27.65 MB / 490.3 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01767/0.1363, allocations: 8.022 MB / 498.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005663/0.142, allocations: 211.4 kB / 498.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0173/0.1593, allocations: 7.923 MB / 0.4946 GB, free: 2.383 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008505/0.1678, allocations: 2.703 MB / 0.4972 GB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004532/0.1724, allocations: 1.812 MB / 0.499 GB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01222/0.1846, allocations: 9.613 MB / 0.5084 GB, free: 4.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2266/0.4113, allocations: 21.26 MB / 0.5291 GB, free: 16.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009104/0.4204, allocations: 5.237 MB / 0.5342 GB, free: 15.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01178/0.4323, allocations: 5.947 MB / 0.54 GB, free: 14.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006579/0.4389, allocations: 1.516 MB / 0.5415 GB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008953/0.4479, allocations: 1.89 MB / 0.5434 GB, free: 14.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004935/0.4528, allocations: 2.944 MB / 0.5462 GB, free: 14.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01025/0.4631, allocations: 5.722 MB / 0.5518 GB, free: 13.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02174/0.4849, allocations: 20.17 MB / 0.5715 GB, free: 4.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.4849, allocations: 0 / 0.5715 GB, free: 4.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4849, allocations: 0 / 0.5715 GB, free: 4.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007022/0.4856, allocations: 0 / 0.5715 GB, free: 4.5 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.03744/0.5231, allocations: 11.63 MB / 0.5829 GB, free: 13.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.5231, allocations: 10.78 kB / 0.5829 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03031/0.5534, allocations: 5.564 MB / 0.5883 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02354/0.577, allocations: 6.003 MB / 0.5942 GB, free: 4.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00127/0.5783, allocations: 0.702 MB / 0.5949 GB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005602/0.584, allocations: 0.905 MB / 0.5958 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06212/0.6461, allocations: 14.86 MB / 0.6103 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005469/0.6467, allocations: 23.81 kB / 0.6103 GB, free: 4.039 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003838/0.6506, allocations: 382.2 kB / 0.6107 GB, free: 3.676 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007757/0.6514, allocations: 0.5074 MB / 0.6112 GB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03296/0.6844, allocations: 13.58 MB / 0.6244 GB, free: 5.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09323/0.7777, allocations: 46.61 MB / 0.6699 GB, free: 6.738 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02249/0.8002, allocations: 28.33 MB / 0.6976 GB, free: 6.734 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005427/0.8057, allocations: 3.025 MB / 0.7006 GB, free: 3.707 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005027/0.8062, allocations: 241 kB / 0.7008 GB, free: 3.445 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.732e-05/0.8063, allocations: 69.52 kB / 0.7008 GB, free: 3.367 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 6.221e-06/0.8063, allocations: 3.469 kB / 0.7009 GB, free: 3.367 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.226/1.032, allocations: 14.62 MB / 0.7151 GB, free: 160.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.905e-05/1.032, allocations: 90.97 kB / 0.7152 GB, free: 160.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006051/1.039, allocations: 3.477 MB / 0.7186 GB, free: 160 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005159/1.039, allocations: 89.58 kB / 0.7187 GB, free: 160 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00222/1.041, allocations: 3.948 MB / 0.7226 GB, free: 157.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001228/1.043, allocations: 1.31 MB / 0.7238 GB, free: 156.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001618/1.044, allocations: 1.143 MB / 0.7249 GB, free: 156.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.285e-05/1.044, allocations: 302.3 kB / 0.7252 GB, free: 156.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00363/1.048, allocations: 2.552 MB / 0.7277 GB, free: 156.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003924/1.052, allocations: 5.018 MB / 0.7326 GB, free: 153.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007865/1.06, allocations: 8.211 MB / 0.7406 GB, free: 147.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.864e-05/1.06, allocations: 23.69 kB / 0.7407 GB, free: 147.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01113/1.071, allocations: 8.509 MB / 0.749 GB, free: 143.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.988e-05/1.071, allocations: 38.59 kB / 0.749 GB, free: 143.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.164e-05/1.071, allocations: 81.91 kB / 0.7491 GB, free: 143.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002051/1.073, allocations: 0.8523 MB / 0.7499 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003771/1.077, allocations: 1.338 MB / 0.7512 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008518/1.085, allocations: 7.667 MB / 0.7587 GB, free: 139.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004271/1.09, allocations: 318.3 kB / 0.759 GB, free: 139.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005013/1.09, allocations: 306.3 kB / 0.7593 GB, free: 139.1 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.005033/1.095, allocations: 3.479 MB / 0.7627 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008006/1.096, allocations: 391 kB / 0.7631 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00827/1.104, allocations: 5.864 MB / 0.7688 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.651e-05/1.104, allocations: 39.8 kB / 0.7689 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/1.104, allocations: 8 kB / 0.7689 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.69e-05/1.104, allocations: 18.75 kB / 0.7689 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02089/1.125, allocations: 14.8 MB / 0.7833 GB, free: 116.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/1.125, allocations: 8.031 kB / 0.7833 GB, free: 116.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002324/1.128, allocations: 0.6748 MB / 0.784 GB, free: 115.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001769/1.13, allocations: 0.7014 MB / 0.7847 GB, free: 114.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002054/1.13, allocations: 84.86 kB / 0.7848 GB, free: 114.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007204/1.137, allocations: 6.711 MB / 0.7913 GB, free: 107.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/1.137, allocations: 8 kB / 0.7913 GB, free: 107.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009858/1.147, allocations: 8.551 MB / 0.7997 GB, free: 99.21 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001666/1.149, allocations: 0.8592 MB / 0.8005 GB, free: 98.32 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004713/1.149, allocations: 71.98 kB / 0.8006 GB, free: 98.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001682/1.151, allocations: 183.9 kB / 0.8008 GB, free: 98.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004494/1.151, allocations: 250.6 kB / 0.801 GB, free: 97.83 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002006/1.151, allocations: 119.9 kB / 0.8011 GB, free: 97.71 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003155/1.155, allocations: 2.334 MB / 0.8034 GB, free: 95.39 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.01e-07/1.155, allocations: 0 / 0.8034 GB, free: 95.39 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004994/1.16, allocations: 1.511 MB / 0.8049 GB, free: 93.88 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.000455/1.16, allocations: 249.8 kB / 0.8051 GB, free: 93.63 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02269/1.183, allocations: 12.58 MB / 0.8174 GB, free: 81.09 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/1.183, allocations: 0 / 0.8174 GB, free: 81.09 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003545/1.186, allocations: 2.875 MB / 0.8202 GB, free: 78.21 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004243/1.191, allocations: 0.8942 MB / 0.8211 GB, free: 77.36 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02255/1.213, allocations: 15.54 MB / 0.8362 GB, free: 61.73 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004709/1.218, allocations: 5.898 MB / 0.842 GB, free: 55.79 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004706/1.223, allocations: 1.857 MB / 0.8438 GB, free: 53.93 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008277/1.223, allocations: 335.4 kB / 0.8441 GB, free: 53.6 MB / 494.1 MB Notification: Performance of SimCode: time 1.493e-06/1.223, allocations: 0.7656 kB / 0.8441 GB, free: 53.6 MB / 494.1 MB Notification: Performance of Templates: time 0.2751/1.499, allocations: 60.39 MB / 0.9031 GB, free: 140.6 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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1)