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.0011/0.0011, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.43/1.43, allocations: 222.9 MB / 239.6 MB, free: 4.73 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.001262/0.001262, allocations: 192.3 kB / 289.9 MB, free: 2.469 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03376/0.03376, allocations: 8.804 MB / 348.9 MB, free: 4.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001428, allocations: 76.97 kB / 411.2 MB, free: 42.49 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08638/0.08783, allocations: 51.56 MB / 462.8 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02571/0.1136, allocations: 27.16 MB / 490 MB, free: 3.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01602/0.1296, allocations: 7.906 MB / 497.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005895/0.1356, allocations: 203.4 kB / 498.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01735/0.153, allocations: 7.502 MB / 0.4937 GB, free: 3.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008798/0.1618, allocations: 2.435 MB / 0.4961 GB, free: 1.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005712/0.1675, allocations: 1.686 MB / 0.4978 GB, free: 15.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01281/0.1803, allocations: 9.642 MB / 0.5072 GB, free: 6.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2383/0.4187, allocations: 24.51 MB / 0.5311 GB, free: 18.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008044/0.4268, allocations: 5.296 MB / 0.5363 GB, free: 18.62 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01361/0.4404, allocations: 5.996 MB / 0.5421 GB, free: 17.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006334/0.4468, allocations: 1.517 MB / 0.5436 GB, free: 17.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008915/0.4557, allocations: 1.887 MB / 0.5455 GB, free: 17.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006039/0.4618, allocations: 2.936 MB / 0.5483 GB, free: 17.35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01041/0.4723, allocations: 5.726 MB / 0.5539 GB, free: 16.03 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01618/0.4885, allocations: 17.72 MB / 0.5712 GB, free: 8.371 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/0.4885, allocations: 0 / 0.5712 GB, free: 8.371 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4885, allocations: 4 kB / 0.5712 GB, free: 8.367 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006857/0.4892, allocations: 0 / 0.5712 GB, free: 8.367 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.03817/0.5274, allocations: 11.63 MB / 0.5826 GB, free: 1.004 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.5275, allocations: 14.12 kB / 0.5826 GB, free: 1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03072/0.5582, allocations: 5.561 MB / 0.588 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01469/0.5729, allocations: 6.012 MB / 0.5939 GB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008191/0.5738, allocations: 0.6908 MB / 0.5946 GB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004429/0.5783, allocations: 0.9065 MB / 0.5955 GB, free: 5.801 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04503/0.6233, allocations: 14.86 MB / 0.61 GB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006312/0.624, allocations: 23.8 kB / 0.61 GB, free: 6.902 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004247/0.6283, allocations: 380.7 kB / 0.6104 GB, free: 6.539 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006122/0.6289, allocations: 0.5036 MB / 0.6108 GB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0368/0.6657, allocations: 13.57 MB / 0.6241 GB, free: 8.465 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1036/0.7694, allocations: 46.61 MB / 0.6696 GB, free: 9.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02547/0.7949, allocations: 28.29 MB / 0.6972 GB, free: 9.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006511/0.8015, allocations: 3.022 MB / 0.7002 GB, free: 6.562 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006226/0.8021, allocations: 235.6 kB / 0.7004 GB, free: 6.305 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001043/0.8023, allocations: 72.7 kB / 0.7005 GB, free: 6.227 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 5.851e-06/0.8023, allocations: 0 / 0.7005 GB, free: 6.227 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.2627/1.065, allocations: 14.57 MB / 0.7147 GB, free: 162 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.568e-05/1.065, allocations: 94.81 kB / 0.7148 GB, free: 161.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007082/1.072, allocations: 3.475 MB / 0.7182 GB, free: 161.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007544/1.073, allocations: 88.33 kB / 0.7183 GB, free: 161.6 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002908/1.076, allocations: 3.955 MB / 0.7221 GB, free: 159.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001525/1.077, allocations: 1.309 MB / 0.7234 GB, free: 158.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001943/1.079, allocations: 1.142 MB / 0.7245 GB, free: 158.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.172e-05/1.079, allocations: 312.5 kB / 0.7248 GB, free: 158.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00431/1.084, allocations: 2.549 MB / 0.7273 GB, free: 158.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005358/1.089, allocations: 5.006 MB / 0.7322 GB, free: 154.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008996/1.098, allocations: 8.207 MB / 0.7402 GB, free: 149 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.605e-05/1.098, allocations: 23.31 kB / 0.7403 GB, free: 149 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01535/1.114, allocations: 8.488 MB / 0.7485 GB, free: 145.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001255/1.114, allocations: 42.97 kB / 0.7486 GB, free: 145.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001867/1.114, allocations: 85.38 kB / 0.7487 GB, free: 145.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002418/1.116, allocations: 0.8348 MB / 0.7495 GB, free: 145.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004883/1.121, allocations: 1.335 MB / 0.7508 GB, free: 145.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00974/1.131, allocations: 7.601 MB / 0.7582 GB, free: 141 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005007/1.136, allocations: 319.7 kB / 0.7585 GB, free: 140.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001373/1.138, allocations: 302.5 kB / 0.7588 GB, free: 140.8 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.008061/1.146, allocations: 3.48 MB / 0.7622 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001555/1.147, allocations: 387.1 kB / 0.7626 GB, free: 138.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0113/1.159, allocations: 5.854 MB / 0.7683 GB, free: 133.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.813e-05/1.159, allocations: 39.94 kB / 0.7683 GB, free: 133.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-05/1.159, allocations: 8 kB / 0.7683 GB, free: 133.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.443e-05/1.159, allocations: 19.22 kB / 0.7683 GB, free: 133.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02938/1.188, allocations: 14.78 MB / 0.7828 GB, free: 119.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.902e-05/1.188, allocations: 11.84 kB / 0.7828 GB, free: 119.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002622/1.191, allocations: 0.667 MB / 0.7834 GB, free: 118.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001888/1.193, allocations: 0.6975 MB / 0.7841 GB, free: 118.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004299/1.193, allocations: 89.8 kB / 0.7842 GB, free: 118 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007628/1.201, allocations: 6.631 MB / 0.7907 GB, free: 111.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.201, allocations: 4 kB / 0.7907 GB, free: 111.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01193/1.213, allocations: 8.539 MB / 0.799 GB, free: 102.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002244/1.215, allocations: 0.8592 MB / 0.7999 GB, free: 101.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00124/1.216, allocations: 71.94 kB / 0.7999 GB, free: 101.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002961/1.219, allocations: 183.9 kB / 0.8001 GB, free: 101.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009059/1.22, allocations: 254.6 kB / 0.8004 GB, free: 101.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004901/1.221, allocations: 113.5 kB / 0.8005 GB, free: 101.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005375/1.226, allocations: 2.334 MB / 0.8027 GB, free: 98.73 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.226, allocations: 4 kB / 0.8027 GB, free: 98.73 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007767/1.234, allocations: 1.5 MB / 0.8042 GB, free: 97.23 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.000919/1.235, allocations: 254.2 kB / 0.8044 GB, free: 96.98 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02453/1.259, allocations: 12.57 MB / 0.8167 GB, free: 84.45 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/1.259, allocations: 8.719 kB / 0.8167 GB, free: 84.44 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004697/1.264, allocations: 2.862 MB / 0.8195 GB, free: 81.57 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0064/1.271, allocations: 0.9048 MB / 0.8204 GB, free: 80.71 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03312/1.304, allocations: 19.1 MB / 0.8391 GB, free: 61.53 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009125/1.313, allocations: 5.72 MB / 0.8446 GB, free: 55.77 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002003/1.315, allocations: 371.4 kB / 0.845 GB, free: 55.41 MB / 494.1 MB Notification: Performance of SimCode: time 1.503e-06/1.315, allocations: 0 / 0.845 GB, free: 55.41 MB / 494.1 MB Notification: Performance of Templates: time 0.4196/1.735, allocations: 147.1 MB / 0.9887 GB, free: 68.97 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)