Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_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_EHPTlib.MapBased.TestingModels.TestGensetOO") translateModel(EHPTlib.MapBased.TestingModels.TestGensetOO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3200,variableFilter="",fileNamePrefix="EHPTlib_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.001753/0.001753, allocations: 108.1 kB / 15.78 MB, free: 5.484 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.001861/0.001861, allocations: 200.5 kB / 16.73 MB, free: 5.363 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.553/1.553, allocations: 225.6 MB / 243.1 MB, free: 3.695 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04117/0.04117, allocations: 8.136 MB / 304.1 MB, free: 3.195 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 67.89 kB / 424.4 MB, free: 188 kB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3192, allocations: 54.05 MB / 478.4 MB, free: 23.91 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestGensetOO): time 0.009272/0.3285, allocations: 7.069 MB / 485.5 MB, free: 18.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007828/0.3363, allocations: 3.174 MB / 488.7 MB, free: 16.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002115/0.3385, allocations: 34 kB / 488.7 MB, free: 16.55 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001518/0.34, allocations: 0.5569 MB / 489.3 MB, free: 16.38 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001882/0.3419, allocations: 0.5879 MB / 489.9 MB, free: 16.06 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003051/0.3449, allocations: 1.224 MB / 491.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003145/0.3481, allocations: 1.998 MB / 493.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001021/0.3491, allocations: 0.5831 MB / 493.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001066/0.3501, allocations: 0.7431 MB / 494.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001086/0.3512, allocations: 0.9065 MB / 495.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003346/0.3516, allocations: 212.8 kB / 495.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008204/0.3524, allocations: 327.1 kB / 495.8 MB, free: 13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005892/0.353, allocations: 0.5509 MB / 496.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008712/0.3538, allocations: 0.9601 MB / 497.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004289/0.3581, allocations: 2.639 MB / 500 MB, free: 10.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.3581, allocations: 3.938 kB / 0.4883 GB, free: 10.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3581, allocations: 1.156 kB / 0.4883 GB, free: 10.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.504e-05/0.3582, allocations: 0 / 0.4883 GB, free: 10.35 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004374/0.3626, allocations: 2.336 MB / 0.4906 GB, free: 8.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.3626, allocations: 13.67 kB / 0.4906 GB, free: 8.516 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005161/0.3631, allocations: 227.2 kB / 0.4908 GB, free: 8.395 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/0.365, allocations: 1.277 MB / 0.492 GB, free: 7.398 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.303e-05/0.3651, allocations: 89.16 kB / 0.4921 GB, free: 7.355 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001728/0.3653, allocations: 122 kB / 0.4922 GB, free: 7.312 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002161/0.3674, allocations: 1.255 MB / 0.4935 GB, free: 6.488 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.948e-05/0.3675, allocations: 6.859 kB / 0.4935 GB, free: 6.484 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.58e-05/0.3676, allocations: 47.84 kB / 0.4935 GB, free: 6.449 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.519e-05/0.3676, allocations: 26.5 kB / 0.4935 GB, free: 6.449 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001885/0.3695, allocations: 0.9259 MB / 0.4944 GB, free: 5.984 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006115/0.3756, allocations: 4.957 MB / 0.4993 GB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001907/0.3775, allocations: 0.8923 MB / 0.5002 GB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006501/0.3782, allocations: 324.3 kB / 0.5005 GB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.09e-05/0.3782, allocations: 17.41 kB / 0.5005 GB, free: 1.336 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008852/0.3791, allocations: 468 kB / 0.5009 GB, free: 1.047 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.475e-06/0.3791, allocations: 0 / 0.5009 GB, free: 1.047 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.006738/0.3859, allocations: 3.133 MB / 0.504 GB, free: 14.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000187/0.386, allocations: 328.7 kB / 0.5043 GB, free: 14.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003358/0.3894, allocations: 2.116 MB / 0.5064 GB, free: 13.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001139/0.3895, allocations: 41.7 kB / 0.5064 GB, free: 12.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008476/0.3904, allocations: 0.7922 MB / 0.5072 GB, free: 12.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002786/0.3906, allocations: 253.8 kB / 0.5074 GB, free: 11.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000322/0.391, allocations: 186.5 kB / 0.5076 GB, free: 11.72 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.3911, allocations: 345.9 kB / 0.5079 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000858/0.392, allocations: 356.7 kB / 0.5083 GB, free: 11.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001066/0.3931, allocations: 0.5825 MB / 0.5088 GB, free: 10.35 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/0.395, allocations: 1.021 MB / 0.5098 GB, free: 9.234 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.395, allocations: 0 / 0.5098 GB, free: 9.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.00285/0.3978, allocations: 1.236 MB / 0.511 GB, free: 7.969 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.201e-05/0.3979, allocations: 93.09 kB / 0.5111 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.3979, allocations: 8 kB / 0.5111 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002113/0.3981, allocations: 40.84 kB / 0.5112 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007814/0.3989, allocations: 212.1 kB / 0.5114 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001597/0.4005, allocations: 1.543 MB / 0.5129 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.4015, allocations: 71.92 kB / 0.513 GB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.262e-05/0.4016, allocations: 36 kB / 0.513 GB, free: 5.809 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.001718/0.4033, allocations: 0.748 MB / 0.5137 GB, free: 5.051 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009449/0.4043, allocations: 0.5317 MB / 0.5142 GB, free: 4.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001677/0.4059, allocations: 0.9275 MB / 0.5152 GB, free: 3.406 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.825e-06/0.406, allocations: 4 kB / 0.5152 GB, free: 3.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=113) (initialization_lambda0): time 0.002529/0.4085, allocations: 1.131 MB / 0.5163 GB, free: 2.238 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.154e-05/0.4086, allocations: 97.09 kB / 0.5164 GB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.4086, allocations: 4 kB / 0.5164 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001477/0.4087, allocations: 45.34 kB / 0.5164 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006461/0.4094, allocations: 187.7 kB / 0.5166 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/0.4108, allocations: 1.54 MB / 0.5181 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.4118, allocations: 67.95 kB / 0.5181 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.802e-05/0.4119, allocations: 39.98 kB / 0.5182 GB, free: 108 kB / 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.0004494/0.4124, allocations: 308.9 kB / 0.5185 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002936/0.4126, allocations: 166.9 kB / 0.5186 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002362/0.415, allocations: 1 MB / 0.5196 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.415, allocations: 8 kB / 0.5196 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.415, allocations: 0 / 0.5196 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.415, allocations: 11.92 kB / 0.5196 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004652/0.4197, allocations: 2.49 MB / 0.5221 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.4197, allocations: 4 kB / 0.5221 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006263/0.4203, allocations: 135.8 kB / 0.5222 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001572/0.4205, allocations: 44.91 kB / 0.5222 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-05/0.4205, allocations: 20 kB / 0.5223 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001391/0.4219, allocations: 1.524 MB / 0.5237 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4219, allocations: 0 / 0.5237 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003176/0.4251, allocations: 1.521 MB / 0.5252 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007059/0.4258, allocations: 332.1 kB / 0.5256 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.426, allocations: 12 kB / 0.5256 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006174/0.4266, allocations: 75.92 kB / 0.5256 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/0.4267, allocations: 56.48 kB / 0.5257 GB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.372e-05/0.4268, allocations: 20 kB / 0.5257 GB, free: 8.082 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002245/0.429, allocations: 1.493 MB / 0.5272 GB, free: 6.594 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.429, allocations: 0 / 0.5272 GB, free: 6.594 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001584/0.4306, allocations: 459.8 kB / 0.5276 GB, free: 6.145 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.002889/0.4335, allocations: 0.7207 MB / 0.5283 GB, free: 5.703 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003554/0.437, allocations: 1.816 MB / 0.5301 GB, free: 3.793 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4371, allocations: 0 / 0.5301 GB, free: 3.793 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.4381, allocations: 0.6178 MB / 0.5307 GB, free: 3.137 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.4394, allocations: 251.8 kB / 0.5309 GB, free: 2.898 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005595/0.445, allocations: 3.224 MB / 0.5341 GB, free: 15.63 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/0.4461, allocations: 1.338 MB / 0.5354 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007644/0.4469, allocations: 212.4 kB / 0.5356 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002664/0.4471, allocations: 95.41 kB / 0.5357 GB, free: 13.96 MB / 414.1 MB Notification: Performance of SimCode: time 9.51e-07/0.4471, allocations: 0 / 0.5357 GB, free: 13.96 MB / 414.1 MB Notification: Performance of Templates: time 0.03363/0.4808, allocations: 16.93 MB / 0.5522 GB, free: 13.05 MB / 430.1 MB make -j1 -f EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO.makefile (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO.sim & ./EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTlib_EHPTlib.MapBased.TestingModels.TestGensetOO.pipe 2>&1)