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.0007995/0.0007995, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.385/1.385, allocations: 223.3 MB / 239.4 MB, free: 5.492 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.001117/0.001117, allocations: 184.5 kB / 290.6 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03468/0.03468, allocations: 8.786 MB / 350.5 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004366/0.000437, allocations: 10.28 kB / 413.8 MB, free: 42.8 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09319/0.09364, allocations: 52.56 MB / 466.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02283/0.1165, allocations: 25.97 MB / 492.3 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01383/0.1304, allocations: 7.894 MB / 0.4885 GB, free: 11.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004289/0.1347, allocations: 191.4 kB / 0.4887 GB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004815/0.1395, allocations: 1.649 MB / 0.4903 GB, free: 9.281 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009842/0.1494, allocations: 2.451 MB / 0.4927 GB, free: 6.824 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005728/0.1551, allocations: 1.496 MB / 0.4942 GB, free: 5.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01215/0.1673, allocations: 9.592 MB / 0.5035 GB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03471/0.2021, allocations: 21.19 MB / 0.5242 GB, free: 6.371 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006318/0.2084, allocations: 3.678 MB / 0.5278 GB, free: 2.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2372/0.4456, allocations: 4.482 MB / 0.5322 GB, free: 19.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002761/0.4484, allocations: 0.5873 MB / 0.5328 GB, free: 19.4 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005/0.4534, allocations: 0.9374 MB / 0.5337 GB, free: 19.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002525/0.456, allocations: 1.802 MB / 0.5354 GB, free: 19.4 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01011/0.4661, allocations: 4.493 MB / 0.5398 GB, free: 19.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0236/0.4898, allocations: 19.04 MB / 0.5584 GB, free: 11.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.4898, allocations: 0 / 0.5584 GB, free: 11.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4898, allocations: 0 / 0.5584 GB, free: 11.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006478/0.4905, allocations: 2.094 kB / 0.5584 GB, free: 11.89 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.02942/0.5199, allocations: 9.596 MB / 0.5678 GB, free: 7.012 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.52, allocations: 9.594 kB / 0.5678 GB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03002/0.55, allocations: 5.589 MB / 0.5733 GB, free: 4.832 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01122/0.5612, allocations: 6.014 MB / 0.5791 GB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004405/0.5617, allocations: 0.695 MB / 0.5798 GB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003089/0.5648, allocations: 0.9129 MB / 0.5807 GB, free: 3.129 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03743/0.6022, allocations: 14.86 MB / 0.5952 GB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000339/0.6026, allocations: 15.81 kB / 0.5952 GB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00309/0.6057, allocations: 385.8 kB / 0.5956 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005471/0.6063, allocations: 0.5074 MB / 0.5961 GB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0292/0.6355, allocations: 13.56 MB / 0.6093 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07798/0.7135, allocations: 46.78 MB / 0.655 GB, free: 11.92 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02184/0.7354, allocations: 28.27 MB / 0.6826 GB, free: 11.96 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004995/0.7404, allocations: 3.025 MB / 0.6856 GB, free: 8.926 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003488/0.7408, allocations: 233.3 kB / 0.6858 GB, free: 8.672 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.732e-05/0.7409, allocations: 72.98 kB / 0.6859 GB, free: 8.594 MB / 478.1 MB Notification: Performance of pre-optimization done (n=375): time 5.26e-06/0.7409, allocations: 0 / 0.6859 GB, free: 8.594 MB / 478.1 MB Notification: Performance of matching and sorting (n=382): time 0.03753/0.7784, allocations: 14.6 MB / 0.7001 GB, free: 9.941 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.684e-05/0.7785, allocations: 90.41 kB / 0.7002 GB, free: 9.84 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009145/0.7877, allocations: 3.479 MB / 0.7036 GB, free: 6.359 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007699/0.7885, allocations: 89.64 kB / 0.7037 GB, free: 6.266 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003773/0.7923, allocations: 3.954 MB / 0.7076 GB, free: 2.285 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001901/0.7942, allocations: 1.307 MB / 0.7088 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001177/0.7954, allocations: 470.8 kB / 0.7093 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.718e-05/0.7955, allocations: 301.1 kB / 0.7096 GB, free: 228 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1977/0.9932, allocations: 2.547 MB / 0.7121 GB, free: 168 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006735/1, allocations: 5.006 MB / 0.7169 GB, free: 165 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01066/1.011, allocations: 8.211 MB / 0.725 GB, free: 161.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001167/1.011, allocations: 23.59 kB / 0.725 GB, free: 161.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01465/1.025, allocations: 8.486 MB / 0.7333 GB, free: 158.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.797e-05/1.026, allocations: 42.47 kB / 0.7333 GB, free: 158.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001591/1.026, allocations: 86 kB / 0.7334 GB, free: 158.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002228/1.028, allocations: 0.8292 MB / 0.7342 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004838/1.033, allocations: 1.344 MB / 0.7355 GB, free: 157.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008835/1.042, allocations: 7.087 MB / 0.7424 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00442/1.046, allocations: 323.5 kB / 0.7427 GB, free: 154 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007141/1.047, allocations: 302.4 kB / 0.743 GB, free: 153.9 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.0063/1.053, allocations: 3.478 MB / 0.7464 GB, free: 152.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008374/1.054, allocations: 384.2 kB / 0.7468 GB, free: 152.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008852/1.063, allocations: 5.857 MB / 0.7525 GB, free: 148.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/1.063, allocations: 40 kB / 0.7526 GB, free: 148.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/1.063, allocations: 11.8 kB / 0.7526 GB, free: 148.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.189e-05/1.063, allocations: 19.72 kB / 0.7526 GB, free: 148.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02221/1.085, allocations: 14.78 MB / 0.767 GB, free: 136.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-05/1.085, allocations: 7.984 kB / 0.767 GB, free: 136.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002539/1.088, allocations: 0.6709 MB / 0.7677 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001833/1.09, allocations: 0.6919 MB / 0.7684 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003196/1.09, allocations: 83.8 kB / 0.7684 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006979/1.097, allocations: 6.16 MB / 0.7745 GB, free: 128.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.097, allocations: 8 kB / 0.7745 GB, free: 128.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01085/1.108, allocations: 8.54 MB / 0.7828 GB, free: 120.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002131/1.11, allocations: 0.8592 MB / 0.7836 GB, free: 119.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005407/1.111, allocations: 79.98 kB / 0.7837 GB, free: 119.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001771/1.112, allocations: 179.8 kB / 0.7839 GB, free: 119.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004812/1.113, allocations: 254.6 kB / 0.7841 GB, free: 118.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001941/1.113, allocations: 116 kB / 0.7842 GB, free: 118.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003175/1.116, allocations: 2.338 MB / 0.7865 GB, free: 116.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.116, allocations: 0 / 0.7865 GB, free: 116.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005471/1.122, allocations: 1.5 MB / 0.788 GB, free: 114.9 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.000628/1.122, allocations: 250 kB / 0.7882 GB, free: 114.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009001/1.131, allocations: 6.387 MB / 0.7945 GB, free: 108.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/1.132, allocations: 5.094 kB / 0.7945 GB, free: 108.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003815/1.135, allocations: 2.878 MB / 0.7973 GB, free: 105.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006001/1.141, allocations: 0.8467 MB / 0.7981 GB, free: 104.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02657/1.168, allocations: 19.41 MB / 0.8171 GB, free: 85.09 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006115/1.174, allocations: 5.894 MB / 0.8228 GB, free: 79.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004715/1.179, allocations: 1.86 MB / 0.8246 GB, free: 77.29 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/1.18, allocations: 335.4 kB / 0.825 GB, free: 76.96 MB / 494.1 MB Notification: Performance of SimCode: time 1.503e-06/1.18, allocations: 3.844 kB / 0.825 GB, free: 76.96 MB / 494.1 MB Notification: Performance of Templates: time 0.08648/1.266, allocations: 57.24 MB / 0.8808 GB, free: 20.02 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: