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.001041/0.001041, allocations: 114.2 kB / 16.42 MB, free: 6.441 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.298/1.298, allocations: 222.9 MB / 240.1 MB, free: 4.578 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.001281/0.001281, allocations: 192.4 kB / 290.4 MB, free: 2.297 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03671/0.03671, allocations: 8.789 MB / 349.3 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 79.88 kB / 464.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07555/0.07708, allocations: 51.56 MB / 0.5041 GB, free: 9.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.1874/0.2645, allocations: 27.65 MB / 0.5311 GB, free: 4.836 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01203/0.2766, allocations: 8.016 MB / 0.5389 GB, free: 4.727 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003787/0.2804, allocations: 212.8 kB / 0.5391 GB, free: 4.727 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01491/0.2953, allocations: 7.919 MB / 0.5469 GB, free: 3.586 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006262/0.3016, allocations: 2.692 MB / 0.5495 GB, free: 2.816 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003878/0.3055, allocations: 1.823 MB / 0.5513 GB, free: 2.625 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009412/0.3149, allocations: 9.688 MB / 0.5607 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02344/0.3384, allocations: 21.19 MB / 0.5814 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006237/0.3447, allocations: 5.267 MB / 0.5866 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006393/0.3511, allocations: 5.927 MB / 0.5924 GB, free: 5.664 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001729/0.3528, allocations: 1.516 MB / 0.5938 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00297/0.3558, allocations: 1.872 MB / 0.5957 GB, free: 2.285 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002071/0.3579, allocations: 2.936 MB / 0.5985 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004983/0.3629, allocations: 5.725 MB / 0.6041 GB, free: 9.672 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01588/0.3787, allocations: 20.28 MB / 0.6239 GB, free: 5.73 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3788, allocations: 4 kB / 0.6239 GB, free: 5.727 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3788, allocations: 0 / 0.6239 GB, free: 5.727 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002304/0.379, allocations: 0 / 0.6239 GB, free: 5.727 MB / 430.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.02509/0.4041, allocations: 11.59 MB / 0.6352 GB, free: 10.13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.4042, allocations: 16.03 kB / 0.6353 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03042/0.4346, allocations: 5.59 MB / 0.6407 GB, free: 4.574 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00953/0.4441, allocations: 6.181 MB / 0.6468 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004518/0.4446, allocations: 0.6894 MB / 0.6474 GB, free: 13.69 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001515/0.4461, allocations: 0.9143 MB / 0.6483 GB, free: 12.79 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02437/0.4705, allocations: 14.85 MB / 0.6628 GB, free: 13.92 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001914/0.4707, allocations: 19.83 kB / 0.6628 GB, free: 13.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00106/0.4718, allocations: 386.2 kB / 0.6632 GB, free: 13.53 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000485/0.4723, allocations: 0.5074 MB / 0.6637 GB, free: 13.02 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0223/0.4946, allocations: 13.58 MB / 0.677 GB, free: 15.44 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05915/0.5538, allocations: 46.09 MB / 0.722 GB, free: 0.5312 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3238/0.8776, allocations: 28.3 MB / 0.7496 GB, free: 122.1 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004136/0.8817, allocations: 3.027 MB / 0.7526 GB, free: 122 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002941/0.882, allocations: 240.5 kB / 0.7528 GB, free: 121.8 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.155e-05/0.8821, allocations: 71.69 kB / 0.7529 GB, free: 121.8 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=375): time 6.022e-06/0.8821, allocations: 2.188 kB / 0.7529 GB, free: 121.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=382): time 0.02663/0.9087, allocations: 14.64 MB / 0.7672 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.9088, allocations: 92.19 kB / 0.7672 GB, free: 117.5 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003806/0.9126, allocations: 3.477 MB / 0.7706 GB, free: 116.2 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001986/0.9128, allocations: 89.55 kB / 0.7707 GB, free: 116.1 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001452/0.9143, allocations: 3.955 MB / 0.7746 GB, free: 113.2 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006318/0.9149, allocations: 1.308 MB / 0.7759 GB, free: 112.2 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001271/0.9162, allocations: 1.136 MB / 0.777 GB, free: 111.6 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.258e-05/0.9162, allocations: 305.1 kB / 0.7773 GB, free: 111.3 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002885/0.9191, allocations: 2.555 MB / 0.7798 GB, free: 110.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003734/0.9229, allocations: 5.006 MB / 0.7847 GB, free: 106.2 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006903/0.9298, allocations: 8.225 MB / 0.7927 GB, free: 100.3 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.22e-05/0.9299, allocations: 23.22 kB / 0.7927 GB, free: 100.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01059/0.9405, allocations: 8.492 MB / 0.801 GB, free: 96.92 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 4.638e-05/0.9405, allocations: 39.38 kB / 0.801 GB, free: 96.92 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-05/0.9406, allocations: 86.66 kB / 0.8011 GB, free: 96.91 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002028/0.9426, allocations: 0.851 MB / 0.802 GB, free: 96.25 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003872/0.9465, allocations: 1.341 MB / 0.8033 GB, free: 95.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008654/0.9552, allocations: 7.668 MB / 0.8107 GB, free: 87.74 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003016/0.9582, allocations: 324 kB / 0.8111 GB, free: 87.42 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003392/0.9586, allocations: 300 kB / 0.8113 GB, free: 87.13 MB / 0.5138 GB 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.003841/0.9624, allocations: 3.478 MB / 0.8147 GB, free: 83.64 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005724/0.963, allocations: 391.2 kB / 0.8151 GB, free: 83.25 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00803/0.971, allocations: 5.865 MB / 0.8208 GB, free: 77.36 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.05e-05/0.9711, allocations: 15.94 kB / 0.8209 GB, free: 77.34 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.9711, allocations: 0 / 0.8209 GB, free: 77.34 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.9722, allocations: 0.8631 MB / 0.8217 GB, free: 76.45 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004671/0.9727, allocations: 75.73 kB / 0.8218 GB, free: 76.38 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001656/0.9744, allocations: 175.8 kB / 0.8219 GB, free: 76.21 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003997/0.9748, allocations: 270.7 kB / 0.8222 GB, free: 75.95 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00767/0.9825, allocations: 5.492 MB / 0.8276 GB, free: 70.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007686/0.9902, allocations: 7.245 MB / 0.8346 GB, free: 63.2 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002148/0.9923, allocations: 2.211 MB / 0.8368 GB, free: 60.98 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.002508/0.9948, allocations: 2.338 MB / 0.8391 GB, free: 58.66 MB / 0.5138 GB Notification: Performance of Backend: time 2.11e-07/0.9949, allocations: 0 / 0.8391 GB, free: 58.66 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.006751/1.002, allocations: 4.836 MB / 0.8438 GB, free: 53.88 MB / 0.5138 GB Notification: Performance of SimCode: time 0.01805/1.02, allocations: 14.64 MB / 0.8581 GB, free: 39.23 MB / 0.5138 GB Notification: Performance of Templates: time 0.09735/1.117, allocations: 69.16 MB / 0.9256 GB, free: 2.395 MB / 0.545 GB 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)