Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceT01.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 3.0.0-main/package.mo", uses=false) Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-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: "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestICE.TestIceT01,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceT01",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestICE.TestIceT01,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceT01",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01061/0.01061, allocations: 96.39 kB / 15.73 MB, free: 6.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.002346/0.002346, allocations: 190 kB / 16.67 MB, free: 6.391 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.522/1.522, 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 3.0.0-main/package.mo): time 0.1676/0.1676, allocations: 8.402 MB / 298.9 MB, free: 2.238 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002034, allocations: 63.89 kB / 413.3 MB, free: 9.641 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2662, allocations: 51.37 MB / 464.7 MB, free: 18.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestICE.TestIceT01): time 0.005391/0.2716, allocations: 3.659 MB / 468.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002964/0.2746, allocations: 1.711 MB / 470.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000452/0.2751, allocations: 5.594 kB / 470.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007228/0.2758, allocations: 332.1 kB / 470.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007507/0.2766, allocations: 299.2 kB / 470.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.2777, allocations: 400.1 kB / 471.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007866/0.2785, allocations: 0.6519 MB / 471.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003451/0.2789, allocations: 226.3 kB / 471.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003185/0.2792, allocations: 282.6 kB / 472.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004435/0.2796, allocations: 358.8 kB / 472.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.493e-05/0.2797, allocations: 55.59 kB / 472.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002481/0.28, allocations: 113.8 kB / 472.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000253/0.2802, allocations: 297 kB / 473 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003448/0.2806, allocations: 449.6 kB / 473.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001361/0.282, allocations: 1.139 MB / 474.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.282, allocations: 0 / 474.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.282, allocations: 0 / 474.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.413e-05/0.282, allocations: 0.7969 kB / 474.6 MB, free: 12.15 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.002012/0.284, allocations: 1.44 MB / 476 MB, free: 11.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.2841, allocations: 13.67 kB / 476.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.589e-05/0.2841, allocations: 70.33 kB / 476.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.2843, allocations: 121.9 kB / 476.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/0.2853, allocations: 0.8331 MB / 477.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.2854, allocations: 32.28 kB / 477.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.525e-05/0.2854, allocations: 42.64 kB / 477.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007885/0.2862, allocations: 418.5 kB / 477.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.2863, allocations: 1 kB / 477.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.232e-05/0.2863, allocations: 16.45 kB / 477.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.2863, allocations: 9.031 kB / 477.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000777/0.2871, allocations: 308.3 kB / 477.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00248/0.2896, allocations: 1.933 MB / 479.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008761/0.2905, allocations: 335.1 kB / 480.1 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003278/0.2908, allocations: 121.8 kB / 480.3 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.965e-05/0.2909, allocations: 6.609 kB / 480.3 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00043/0.2913, allocations: 188 kB / 480.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.565e-06/0.2913, allocations: 0 / 480.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.00146/0.2928, allocations: 0.5735 MB / 481 MB, free: 7.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.2928, allocations: 80.48 kB / 481.1 MB, free: 7.824 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/0.2947, allocations: 1.658 MB / 482.8 MB, free: 7.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.2948, allocations: 35.83 kB / 482.8 MB, free: 7.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000329/0.2951, allocations: 477.1 kB / 483.3 MB, free: 6.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.475e-05/0.2952, allocations: 89.61 kB / 483.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.2953, allocations: 78.22 kB / 483.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.425e-05/0.2953, allocations: 321.2 kB / 483.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003606/0.2957, allocations: 141.6 kB / 483.9 MB, free: 6.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000386/0.2961, allocations: 209.2 kB / 484.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007045/0.2968, allocations: 345.7 kB / 484.4 MB, free: 5.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.2968, allocations: 5.125 kB / 484.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001179/0.298, allocations: 0.5184 MB / 484.9 MB, free: 5.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.298, allocations: 36.61 kB / 485 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.298, allocations: 1.375 kB / 485 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001634/0.2982, allocations: 25.22 kB / 485 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.2985, allocations: 77.62 kB / 485.1 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007309/0.2993, allocations: 1.373 MB / 486.5 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003987/0.2997, allocations: 52.31 kB / 486.5 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.2997, allocations: 17.75 kB / 486.5 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007/0.3004, allocations: 453.2 kB / 487 MB, free: 3.602 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003365/0.3008, allocations: 194.6 kB / 487.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005908/0.3014, allocations: 329.5 kB / 487.5 MB, free: 3.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.984e-06/0.3014, allocations: 0 / 487.5 MB, free: 3.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization_lambda0): time 0.0009535/0.3024, allocations: 0.5016 MB / 488 MB, free: 2.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.3024, allocations: 35.75 kB / 488 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.3024, allocations: 2.562 kB / 488 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.359e-05/0.3025, allocations: 20.17 kB / 488 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000269/0.3028, allocations: 74.77 kB / 488.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006298/0.3034, allocations: 1.373 MB / 489.5 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003485/0.3038, allocations: 45.45 kB / 489.5 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.425e-05/0.3038, allocations: 13.78 kB / 489.5 MB, free: 1.398 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 6 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,iceT.tokgFuel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001246/0.3039, allocations: 198.9 kB / 489.7 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.304, allocations: 103.1 kB / 489.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/0.305, allocations: 425.6 kB / 490.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3051, allocations: 2.625 kB / 490.3 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.3051, allocations: 0 / 490.3 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.3051, allocations: 1.5 kB / 490.3 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007261/0.3058, allocations: 0.6772 MB / 490.9 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3058, allocations: 0 / 490.9 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.3061, allocations: 54.36 kB / 491 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.622e-05/0.3062, allocations: 25.5 kB / 491 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.3062, allocations: 6.844 kB / 491 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001069/0.3073, allocations: 1.387 MB / 492.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3073, allocations: 0 / 492.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/0.3087, allocations: 0.5531 MB / 493 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002965/0.309, allocations: 226.5 kB / 493.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.766e-05/0.3091, allocations: 2.188 kB / 493.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002864/0.3094, allocations: 30.06 kB / 493.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.227e-05/0.3095, allocations: 22.34 kB / 493.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.3095, allocations: 9.031 kB / 493.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001777/0.3113, allocations: 1.189 MB / 494.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3113, allocations: 0 / 494.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008129/0.3121, allocations: 259.8 kB / 494.7 MB, free: 13.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (iceT.inertia.w,iceT.tokgFuel.y,loadTorque.phi) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003817/0.3159, allocations: 1.611 MB / 496.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001751/0.3177, allocations: 0.8164 MB / 497.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3177, allocations: 0 / 497.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005345/0.3183, allocations: 252.5 kB / 497.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007833/0.3191, allocations: 121.1 kB / 497.5 MB, free: 11.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01473/0.3338, allocations: 9.622 MB / 0.4952 GB, free: 1.562 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008095/0.3346, allocations: 1.087 MB / 0.4963 GB, free: 460 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004364/0.3351, allocations: 161 kB / 0.4964 GB, free: 300 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004766/0.3356, allocations: 339.4 kB / 0.4967 GB, free: 15.96 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3356, allocations: 0 / 0.4967 GB, free: 15.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07707/0.4127, allocations: 19.11 MB / 0.5154 GB, free: 12.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.79, allocations: 9.875 kB / 0.5154 GB, free: 12.93 MB / 398.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceT01.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceT01.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceT01.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceT01.sim & python3 -m fmpy simulate --output-file EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceT01_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceT01.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceT01.pipe 2>&1)