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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 183.4 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03804/0.03804, allocations: 8.793 MB / 25.52 MB, free: 3.754 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 251.3 MB, free: 7.332 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009383/0.0009383, allocations: 101.3 kB / 303.6 MB, free: 14.52 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 63.91 kB / 366 MB, free: 176 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.1887, allocations: 51.54 MB / 417.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02041/0.2092, allocations: 27.16 MB / 444.7 MB, free: 9.637 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01461/0.2238, allocations: 7.956 MB / 452.6 MB, free: 1.66 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005259/0.2291, allocations: 199.4 kB / 452.8 MB, free: 1.465 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01589/0.2451, allocations: 7.484 MB / 460.3 MB, free: 9.969 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008098/0.2532, allocations: 2.473 MB / 462.8 MB, free: 7.488 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00547/0.2587, allocations: 1.715 MB / 464.5 MB, free: 5.781 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01186/0.2706, allocations: 9.742 MB / 474.3 MB, free: 12 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0265/0.2971, allocations: 17.69 MB / 491.9 MB, free: 10.16 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006999/0.3042, allocations: 4.603 MB / 496.6 MB, free: 5.543 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1976/0.5018, allocations: 5.674 MB / 0.4905 GB, free: 19.21 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003195/0.505, allocations: 1.032 MB / 0.4915 GB, free: 19.21 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00404/0.5091, allocations: 1.397 MB / 0.4928 GB, free: 19.21 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002225/0.5113, allocations: 2.437 MB / 0.4952 GB, free: 19.21 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006917/0.5183, allocations: 5.217 MB / 0.5003 GB, free: 18.89 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01573/0.534, allocations: 19.83 MB / 0.5197 GB, free: 12.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.5341, allocations: 0 / 0.5197 GB, free: 12.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5341, allocations: 0 / 0.5197 GB, free: 12.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005582/0.5346, allocations: 0 / 0.5197 GB, free: 12.59 MB / 362.7 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.0303/0.5649, allocations: 11.64 MB / 0.531 GB, free: 5.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.565, allocations: 10.72 kB / 0.531 GB, free: 5.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02508/0.5901, allocations: 5.562 MB / 0.5365 GB, free: 2.766 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01201/0.6021, allocations: 6.012 MB / 0.5423 GB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005354/0.6027, allocations: 0.7032 MB / 0.543 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003102/0.6058, allocations: 0.9037 MB / 0.5439 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03557/0.6414, allocations: 14.86 MB / 0.5584 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003941/0.6418, allocations: 19.8 kB / 0.5584 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002871/0.6447, allocations: 386.1 kB / 0.5588 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005599/0.6452, allocations: 0.5075 MB / 0.5593 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02955/0.6748, allocations: 13.57 MB / 0.5726 GB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08013/0.755, allocations: 46.6 MB / 0.6181 GB, free: 1.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02243/0.7774, allocations: 28.3 MB / 0.6457 GB, free: 1.078 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005246/0.7827, allocations: 3.022 MB / 0.6487 GB, free: 14.05 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000489/0.7832, allocations: 237.9 kB / 0.6489 GB, free: 13.79 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.079e-05/0.7833, allocations: 69.52 kB / 0.649 GB, free: 13.71 MB / 490.7 MB Notification: Performance of pre-optimization done (n=375): time 5.43e-06/0.7834, allocations: 0 / 0.649 GB, free: 13.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=382): time 0.2089/0.9922, allocations: 14.56 MB / 0.6632 GB, free: 166.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.9923, allocations: 92.23 kB / 0.6633 GB, free: 166.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005832/0.9982, allocations: 3.476 MB / 0.6667 GB, free: 166.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005983/0.9988, allocations: 90.83 kB / 0.6667 GB, free: 166.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001823/1.001, allocations: 3.951 MB / 0.6706 GB, free: 164.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001061/1.002, allocations: 1.306 MB / 0.6719 GB, free: 163.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001526/1.003, allocations: 1.148 MB / 0.673 GB, free: 163.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 3.959e-05/1.003, allocations: 312.1 kB / 0.6733 GB, free: 163.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003157/1.006, allocations: 2.551 MB / 0.6758 GB, free: 162.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00409/1.011, allocations: 5.004 MB / 0.6807 GB, free: 158.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007497/1.018, allocations: 8.21 MB / 0.6887 GB, free: 152.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.879e-05/1.018, allocations: 27.62 kB / 0.6887 GB, free: 152.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01265/1.031, allocations: 8.484 MB / 0.697 GB, free: 149.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.415e-05/1.031, allocations: 39.19 kB / 0.697 GB, free: 149.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001226/1.031, allocations: 88.08 kB / 0.6971 GB, free: 149.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002023/1.033, allocations: 0.8354 MB / 0.6979 GB, free: 149.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004116/1.037, allocations: 1.338 MB / 0.6992 GB, free: 149.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008157/1.045, allocations: 7.089 MB / 0.7062 GB, free: 144.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004033/1.049, allocations: 325 kB / 0.7065 GB, free: 144.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000876/1.05, allocations: 299.6 kB / 0.7068 GB, free: 144.3 MB / 490.7 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.005328/1.056, allocations: 3.483 MB / 0.7102 GB, free: 141.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008523/1.057, allocations: 387 kB / 0.7105 GB, free: 141 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008327/1.065, allocations: 5.848 MB / 0.7162 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.096e-05/1.065, allocations: 36 kB / 0.7163 GB, free: 136 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/1.065, allocations: 8 kB / 0.7163 GB, free: 136 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.901e-05/1.065, allocations: 21.09 kB / 0.7163 GB, free: 136 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02253/1.088, allocations: 14.78 MB / 0.7307 GB, free: 121.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/1.088, allocations: 4 kB / 0.7307 GB, free: 121.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002288/1.09, allocations: 0.6734 MB / 0.7314 GB, free: 121.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001712/1.092, allocations: 0.6897 MB / 0.7321 GB, free: 120.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002027/1.092, allocations: 91.97 kB / 0.7322 GB, free: 120.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006461/1.098, allocations: 6.134 MB / 0.7381 GB, free: 114.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/1.098, allocations: 8 kB / 0.7382 GB, free: 114.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01652/1.115, allocations: 14.55 MB / 0.7524 GB, free: 99.34 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001563/1.116, allocations: 0.8591 MB / 0.7532 GB, free: 98.46 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003871/1.117, allocations: 68.12 kB / 0.7533 GB, free: 98.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001654/1.118, allocations: 183.8 kB / 0.7534 GB, free: 98.21 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004427/1.119, allocations: 254.6 kB / 0.7537 GB, free: 97.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001919/1.119, allocations: 116 kB / 0.7538 GB, free: 97.85 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00275/1.122, allocations: 2.334 MB / 0.7561 GB, free: 95.53 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.61e-07/1.122, allocations: 0 / 0.7561 GB, free: 95.53 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005118/1.127, allocations: 1.71 MB / 0.7577 GB, free: 93.82 MB / 490.7 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.000502/1.128, allocations: 238.5 kB / 0.758 GB, free: 93.58 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00906/1.137, allocations: 6.394 MB / 0.7642 GB, free: 87.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.824e-06/1.137, allocations: 3.844 kB / 0.7642 GB, free: 87.18 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003818/1.14, allocations: 2.87 MB / 0.767 GB, free: 84.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005032/1.146, allocations: 0.8513 MB / 0.7679 GB, free: 83.46 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02733/1.173, allocations: 21.5 MB / 0.7888 GB, free: 61.87 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006474/1.179, allocations: 5.996 MB / 0.7947 GB, free: 55.83 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004805/1.184, allocations: 1.862 MB / 0.7965 GB, free: 53.96 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001004/1.185, allocations: 335.3 kB / 0.7968 GB, free: 53.63 MB / 490.7 MB Notification: Performance of SimCode: time 7.91e-07/1.185, allocations: 0 / 0.7968 GB, free: 53.63 MB / 490.7 MB Notification: Performance of Templates: time 0.2594/1.445, allocations: 59.82 MB / 0.8553 GB, free: 140 MB / 490.7 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)