Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGensetOO.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/Complex 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/EHPTlib 2.1.4-main/package.mo", uses=false) Using package EHPTlib with version 2.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(EHPTlib.MapBased.TestingModels.TestGensetOO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3200,variableFilter="",fileNamePrefix="EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGensetOO") translateModel(EHPTlib.MapBased.TestingModels.TestGensetOO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3200,variableFilter="",fileNamePrefix="EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGensetOO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006489/0.006489, allocations: 101.6 kB / 15.73 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 190.5 kB / 16.67 MB, free: 5.93 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.468/1.468, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1803/0.1803, allocations: 8.008 MB / 298.5 MB, free: 2.297 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002431/0.002431, allocations: 63.91 kB / 413.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2946, allocations: 51.25 MB / 464.4 MB, free: 18.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestGensetOO): time 0.00939/0.304, allocations: 7.035 MB / 471.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00676/0.3108, allocations: 3.158 MB / 474.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001982/0.3129, allocations: 29.81 kB / 474.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001344/0.3142, allocations: 0.5658 MB / 475.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002112/0.3164, allocations: 0.5632 MB / 475.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002819/0.3192, allocations: 1.231 MB / 477 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002893/0.3221, allocations: 2.007 MB / 479 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001319/0.3235, allocations: 0.8793 MB / 479.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001169/0.3247, allocations: 0.7351 MB / 480.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009428/0.3256, allocations: 0.868 MB / 481.5 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002914/0.3259, allocations: 212.2 kB / 481.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006794/0.3266, allocations: 327.8 kB / 482 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003961/0.327, allocations: 0.5437 MB / 482.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007018/0.3277, allocations: 0.9574 MB / 483.5 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002863/0.3306, allocations: 2.642 MB / 486.1 MB, free: 4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3306, allocations: 4 kB / 486.1 MB, free: 3.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3306, allocations: 1.281 kB / 486.1 MB, free: 3.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.927e-05/0.3307, allocations: 0 / 486.1 MB, free: 3.996 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004117/0.3348, allocations: 2.336 MB / 488.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.3349, allocations: 13.14 kB / 488.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005124/0.3354, allocations: 227.7 kB / 488.7 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0018/0.3372, allocations: 1.284 MB / 490 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.707e-05/0.3373, allocations: 94.27 kB / 490.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.3374, allocations: 113 kB / 490.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00212/0.3396, allocations: 1.262 MB / 491.5 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.685e-05/0.3396, allocations: 5.672 kB / 491.5 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.208e-05/0.3397, allocations: 48.09 kB / 491.5 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.517e-05/0.3397, allocations: 26.28 kB / 491.5 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002134/0.3419, allocations: 0.9264 MB / 492.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008139/0.35, allocations: 4.953 MB / 497.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002424/0.3525, allocations: 0.9368 MB / 498.4 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008461/0.3534, allocations: 350.4 kB / 498.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.493e-05/0.3535, allocations: 20.53 kB / 498.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001159/0.3546, allocations: 473.7 kB / 499.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.405e-06/0.3546, allocations: 4 kB / 499.2 MB, free: 10.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.00845/0.3631, allocations: 3.121 MB / 0.4905 GB, free: 6.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000279/0.3634, allocations: 332.9 kB / 0.4909 GB, free: 6.582 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003858/0.3673, allocations: 2.113 MB / 0.4929 GB, free: 4.457 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001282/0.3674, allocations: 45.69 kB / 0.493 GB, free: 4.406 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009749/0.3684, allocations: 0.7883 MB / 0.4937 GB, free: 3.609 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004319/0.3689, allocations: 257.8 kB / 0.494 GB, free: 3.355 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003502/0.3692, allocations: 178.6 kB / 0.4941 GB, free: 3.172 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002143/0.3695, allocations: 345.9 kB / 0.4945 GB, free: 2.828 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009247/0.3704, allocations: 356.7 kB / 0.4948 GB, free: 2.477 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.3715, allocations: 0.5864 MB / 0.4954 GB, free: 1.797 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002207/0.3737, allocations: 1.021 MB / 0.4964 GB, free: 0.6797 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3738, allocations: 0 / 0.4964 GB, free: 0.6797 MB / 366.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.003211/0.377, allocations: 1.225 MB / 0.4976 GB, free: 15.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001083/0.3771, allocations: 93.09 kB / 0.4977 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.3771, allocations: 8 kB / 0.4977 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002452/0.3774, allocations: 53.31 kB / 0.4977 GB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007936/0.3782, allocations: 203.6 kB / 0.4979 GB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001688/0.3799, allocations: 1.543 MB / 0.4994 GB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/0.3811, allocations: 75.92 kB / 0.4995 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.121e-05/0.3812, allocations: 36 kB / 0.4995 GB, free: 13.26 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: genset.iceT.wSensor.flange.phi:VARIABLE(flow=false unit = "rad" fixed = true ) "Absolute rotation angle of flange" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002157/0.3834, allocations: 0.7363 MB / 0.5003 GB, free: 12.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00104/0.3845, allocations: 0.5318 MB / 0.5008 GB, free: 11.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001992/0.3865, allocations: 0.9314 MB / 0.5017 GB, free: 10.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.385e-06/0.3865, allocations: 4 kB / 0.5017 GB, free: 10.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=113) (initialization_lambda0): time 0.002966/0.3895, allocations: 1.131 MB / 0.5028 GB, free: 9.699 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/0.3896, allocations: 97.09 kB / 0.5029 GB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3896, allocations: 7.938 kB / 0.5029 GB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000184/0.3898, allocations: 45.41 kB / 0.5029 GB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006705/0.3905, allocations: 183.7 kB / 0.5031 GB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001723/0.3922, allocations: 1.54 MB / 0.5046 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001218/0.3935, allocations: 67.95 kB / 0.5047 GB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.402e-05/0.3935, allocations: 32 kB / 0.5047 GB, free: 7.574 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: genset.iceT.wSensor.flange.phi:VARIABLE(flow=false unit = "rad" fixed = true ) "Absolute rotation angle of flange" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 10 (booleanStep.y,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,genset.gen.limTau.state,$whenCondition1,genset.toFuelGrams.local_reset,genset.iceT.tokgFuel.local_reset,genset.gen.pDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 3 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004998/0.394, allocations: 311.4 kB / 0.505 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002932/0.3943, allocations: 162.9 kB / 0.5052 GB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002585/0.3969, allocations: 1 MB / 0.5061 GB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.397, allocations: 8 kB / 0.5061 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.397, allocations: 0 / 0.5061 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.397, allocations: 11.86 kB / 0.5062 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004617/0.4016, allocations: 2.497 MB / 0.5086 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.4016, allocations: 7.938 kB / 0.5086 GB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006277/0.4023, allocations: 139.8 kB / 0.5087 GB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001432/0.4024, allocations: 32.84 kB / 0.5088 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.504e-05/0.4025, allocations: 19.98 kB / 0.5088 GB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001383/0.4039, allocations: 1.535 MB / 0.5103 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4039, allocations: 0 / 0.5103 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003336/0.4072, allocations: 1.513 MB / 0.5118 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007295/0.408, allocations: 332.1 kB / 0.5121 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000373/0.4084, allocations: 16 kB / 0.5121 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007337/0.4091, allocations: 71.92 kB / 0.5122 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.4093, allocations: 52.5 kB / 0.5122 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.251e-05/0.4093, allocations: 24.11 kB / 0.5122 GB, free: 15.54 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002387/0.4117, allocations: 1.496 MB / 0.5137 GB, free: 14.04 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4117, allocations: 0 / 0.5137 GB, free: 14.04 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001573/0.4133, allocations: 451.8 kB / 0.5141 GB, free: 13.6 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (genset.gen.pDC.integrator1.y,genset.iceT.inertia.w,genset.iceT.wSensor.flange.phi,genset.iceT.tokgFuel.y,genset.toFuelGrams.y) * Number of discrete variables: 5 ($whenCondition1,genset.gen.limTau.state,trapezoid.T_start,trapezoid.count,booleanStep.y) * Number of discrete states: 2 (trapezoid.count,genset.gen.limTau.state) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002668/0.416, allocations: 0.7227 MB / 0.5148 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003721/0.4197, allocations: 1.898 MB / 0.5167 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.4197, allocations: 0 / 0.5167 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.4209, allocations: 0.6492 MB / 0.5173 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001809/0.4228, allocations: 260.8 kB / 0.5176 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006773/0.4295, allocations: 3.212 MB / 0.5207 GB, free: 7.004 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001243/0.4308, allocations: 1.338 MB / 0.522 GB, free: 5.637 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009311/0.4318, allocations: 212.4 kB / 0.5222 GB, free: 5.426 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003019/0.4321, allocations: 99.41 kB / 0.5223 GB, free: 5.328 MB / 398.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4321, allocations: 0 / 0.5223 GB, free: 5.328 MB / 398.1 MB Notification: Performance of Templates: time 0.03556/0.4677, allocations: 16.82 MB / 0.5387 GB, free: 4.523 MB / 414.1 MB make -j1 -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGensetOO.makefile (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGensetOO.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGensetOO.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGensetOO.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGensetOO.sim & ./EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGensetOO -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestGensetOO.pipe 2>&1)