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.0009903/0.0009902, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.308/1.308, allocations: 222.9 MB / 239 MB, free: 4.699 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.00124/0.00124, allocations: 196.2 kB / 289.3 MB, free: 2.441 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03281/0.03281, allocations: 8.782 MB / 348.2 MB, free: 4.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001307, allocations: 76.91 kB / 410.6 MB, free: 42.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07941/0.08073, allocations: 51.57 MB / 462.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02442/0.1052, allocations: 27.14 MB / 489.3 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01677/0.122, allocations: 7.913 MB / 497.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005545/0.1276, allocations: 203.4 kB / 497.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01572/0.1433, allocations: 7.498 MB / 0.4931 GB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008193/0.1516, allocations: 2.441 MB / 0.4955 GB, free: 1.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004927/0.1565, allocations: 1.693 MB / 0.4971 GB, free: 15.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01125/0.1678, allocations: 9.638 MB / 0.5065 GB, free: 5.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2439/0.4116, allocations: 24.5 MB / 0.5304 GB, free: 18.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009805/0.4215, allocations: 5.294 MB / 0.5356 GB, free: 18.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01125/0.4328, allocations: 5.996 MB / 0.5415 GB, free: 17.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006101/0.4389, allocations: 1.517 MB / 0.543 GB, free: 17.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007763/0.4467, allocations: 1.884 MB / 0.5448 GB, free: 17.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005599/0.4523, allocations: 2.937 MB / 0.5477 GB, free: 17.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0128/0.4651, allocations: 5.731 MB / 0.5533 GB, free: 15.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02184/0.487, allocations: 20.16 MB / 0.5729 GB, free: 6.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.969e-06/0.487, allocations: 0 / 0.5729 GB, free: 6.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4871, allocations: 3.375 kB / 0.5729 GB, free: 6.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007497/0.4878, allocations: 0 / 0.5729 GB, free: 6.57 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.03637/0.5242, allocations: 11.64 MB / 0.5843 GB, free: 15.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.5243, allocations: 9.875 kB / 0.5843 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03052/0.5548, allocations: 5.561 MB / 0.5897 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01416/0.569, allocations: 6.013 MB / 0.5956 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000673/0.5697, allocations: 0.6953 MB / 0.5963 GB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003538/0.5732, allocations: 0.9101 MB / 0.5972 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03902/0.6123, allocations: 14.86 MB / 0.6117 GB, free: 4.195 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003858/0.6127, allocations: 24.41 kB / 0.6117 GB, free: 4.172 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003523/0.6162, allocations: 381.6 kB / 0.6121 GB, free: 3.809 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004979/0.6168, allocations: 0.5075 MB / 0.6126 GB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03075/0.6475, allocations: 13.57 MB / 0.6258 GB, free: 5.723 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08194/0.7295, allocations: 46.6 MB / 0.6713 GB, free: 6.828 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0213/0.7508, allocations: 28.3 MB / 0.699 GB, free: 6.836 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004976/0.7559, allocations: 3.018 MB / 0.7019 GB, free: 3.812 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004771/0.7564, allocations: 235.8 kB / 0.7022 GB, free: 3.559 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.321e-05/0.7564, allocations: 73.52 kB / 0.7022 GB, free: 3.477 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 6.402e-06/0.7565, allocations: 3.984 kB / 0.7022 GB, free: 3.473 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.2119/0.9683, allocations: 14.57 MB / 0.7165 GB, free: 159.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.933e-05/0.9684, allocations: 89.97 kB / 0.7165 GB, free: 159.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006987/0.9754, allocations: 3.479 MB / 0.7199 GB, free: 159.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000609/0.9761, allocations: 85.3 kB / 0.72 GB, free: 159.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002186/0.9783, allocations: 3.949 MB / 0.7239 GB, free: 157.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001343/0.9796, allocations: 1.307 MB / 0.7252 GB, free: 156.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001876/0.9815, allocations: 1.143 MB / 0.7263 GB, free: 156.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.069e-05/0.9815, allocations: 305.1 kB / 0.7266 GB, free: 156.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003422/0.985, allocations: 2.55 MB / 0.7291 GB, free: 156.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003912/0.9889, allocations: 5.004 MB / 0.7339 GB, free: 152.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008334/0.9972, allocations: 8.213 MB / 0.742 GB, free: 146.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.531e-05/0.9974, allocations: 23.78 kB / 0.742 GB, free: 146.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01369/1.011, allocations: 8.489 MB / 0.7503 GB, free: 143.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.466e-05/1.011, allocations: 45.95 kB / 0.7503 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001325/1.011, allocations: 82.91 kB / 0.7504 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002177/1.014, allocations: 0.8356 MB / 0.7512 GB, free: 143.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004795/1.018, allocations: 1.339 MB / 0.7525 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009864/1.028, allocations: 7.591 MB / 0.7599 GB, free: 138.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004616/1.033, allocations: 327.9 kB / 0.7602 GB, free: 138.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001146/1.034, allocations: 297.8 kB / 0.7605 GB, free: 138.7 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.006595/1.041, allocations: 3.479 MB / 0.7639 GB, free: 136.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001201/1.042, allocations: 387 kB / 0.7643 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009688/1.052, allocations: 5.85 MB / 0.77 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.057e-05/1.052, allocations: 36 kB / 0.77 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.571e-05/1.052, allocations: 8 kB / 0.7701 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.791e-05/1.052, allocations: 29.66 kB / 0.7701 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02924/1.081, allocations: 14.77 MB / 0.7845 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.751e-05/1.081, allocations: 6.75 kB / 0.7845 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002696/1.084, allocations: 0.6714 MB / 0.7852 GB, free: 115.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001999/1.086, allocations: 0.6936 MB / 0.7858 GB, free: 115.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005589/1.086, allocations: 87.98 kB / 0.7859 GB, free: 115.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007861/1.094, allocations: 6.645 MB / 0.7924 GB, free: 108.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.094, allocations: 7.984 kB / 0.7924 GB, free: 108.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01228/1.106, allocations: 8.531 MB / 0.8008 GB, free: 99.66 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001999/1.109, allocations: 0.8592 MB / 0.8016 GB, free: 98.78 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009884/1.11, allocations: 79.89 kB / 0.8017 GB, free: 98.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002227/1.112, allocations: 183.4 kB / 0.8018 GB, free: 98.52 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005636/1.112, allocations: 255.9 kB / 0.8021 GB, free: 98.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002922/1.113, allocations: 115.9 kB / 0.8022 GB, free: 98.16 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003902/1.117, allocations: 2.33 MB / 0.8045 GB, free: 95.84 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.2e-07/1.117, allocations: 0 / 0.8045 GB, free: 95.84 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005974/1.123, allocations: 1.511 MB / 0.8059 GB, free: 94.33 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.0006776/1.123, allocations: 246.4 kB / 0.8062 GB, free: 94.08 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02462/1.148, allocations: 12.56 MB / 0.8184 GB, free: 81.56 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.679e-06/1.148, allocations: 0 / 0.8184 GB, free: 81.56 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005018/1.153, allocations: 2.867 MB / 0.8212 GB, free: 78.68 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0066/1.16, allocations: 0.8985 MB / 0.8221 GB, free: 77.83 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03011/1.19, allocations: 19.36 MB / 0.841 GB, free: 58.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009857/1.2, allocations: 5.892 MB / 0.8468 GB, free: 52.46 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006418/1.206, allocations: 1.857 MB / 0.8486 GB, free: 50.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001668/1.208, allocations: 335.1 kB / 0.8489 GB, free: 50.28 MB / 494.1 MB Notification: Performance of SimCode: time 1.823e-06/1.208, allocations: 0 / 0.8489 GB, free: 50.28 MB / 494.1 MB Notification: Performance of Templates: time 0.2975/1.505, allocations: 60.25 MB / 0.9078 GB, free: 141.2 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)