Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConn.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.TestIceConn,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceConn",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestICE.TestIceConn,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceConn",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.007553/0.007553, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001823/0.001823, allocations: 201.9 kB / 16.68 MB, free: 5.969 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.1991/0.1991, allocations: 8.407 MB / 298.9 MB, free: 2.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 67.89 kB / 413.3 MB, free: 9.645 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2829, allocations: 51.38 MB / 464.7 MB, free: 17.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestICE.TestIceConn): time 0.004947/0.2879, allocations: 3.746 MB / 468.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.2899, allocations: 1.08 MB / 469.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003384/0.2903, allocations: 10.72 kB / 469.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006346/0.291, allocations: 344.9 kB / 469.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006187/0.2916, allocations: 290.1 kB / 470.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008074/0.2924, allocations: 366.2 kB / 470.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007484/0.2932, allocations: 0.6553 MB / 471.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000407/0.2936, allocations: 278.4 kB / 471.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003905/0.294, allocations: 284.8 kB / 471.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004501/0.2944, allocations: 373 kB / 472.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.9e-05/0.2945, allocations: 53.28 kB / 472.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002417/0.2948, allocations: 113.7 kB / 472.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002814/0.2951, allocations: 314.5 kB / 472.5 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003715/0.2955, allocations: 457.4 kB / 473 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001534/0.297, allocations: 1.17 MB / 474.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.297, allocations: 5.375 kB / 474.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.297, allocations: 0 / 474.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.033e-05/0.2971, allocations: 0 / 474.2 MB, free: 12.2 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.002286/0.2993, allocations: 1.447 MB / 475.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.2994, allocations: 13.88 kB / 475.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.084e-05/0.2995, allocations: 81.2 kB / 475.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001684/0.2997, allocations: 123.2 kB / 475.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.3007, allocations: 0.845 MB / 476.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.603e-05/0.3008, allocations: 30.17 kB / 476.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.995e-05/0.3008, allocations: 44.91 kB / 476.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008361/0.3017, allocations: 437.2 kB / 477.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.3017, allocations: 1.672 kB / 477.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.632e-05/0.3018, allocations: 15.94 kB / 477.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.3018, allocations: 9.719 kB / 477.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007937/0.3026, allocations: 312.5 kB / 477.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002753/0.3053, allocations: 2.001 MB / 479.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007955/0.3061, allocations: 321 kB / 479.8 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003034/0.3065, allocations: 121.7 kB / 479.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.544e-05/0.3065, allocations: 11.09 kB / 479.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004034/0.3069, allocations: 191.5 kB / 480.1 MB, free: 8.309 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 2.244e-06/0.3069, allocations: 1.188 kB / 480.1 MB, free: 8.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.00171/0.3087, allocations: 0.6254 MB / 480.8 MB, free: 7.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.3087, allocations: 62.66 kB / 480.8 MB, free: 7.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001971/0.3107, allocations: 1.652 MB / 482.5 MB, free: 7.078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.3107, allocations: 34.77 kB / 482.5 MB, free: 7.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003498/0.3111, allocations: 491.9 kB / 483 MB, free: 6.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.713e-05/0.3112, allocations: 90.19 kB / 483.1 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.3113, allocations: 73.86 kB / 483.1 MB, free: 6.492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.747e-05/0.3114, allocations: 322.3 kB / 483.5 MB, free: 6.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003596/0.3117, allocations: 129.8 kB / 483.6 MB, free: 6.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003612/0.3121, allocations: 187.5 kB / 483.8 MB, free: 5.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007416/0.3128, allocations: 344.8 kB / 484.1 MB, free: 5.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.3129, allocations: 1.219 kB / 484.1 MB, free: 5.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001516/0.3144, allocations: 0.5499 MB / 484.7 MB, free: 5.426 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.822e-05/0.3144, allocations: 32.58 kB / 484.7 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.3145, allocations: 1.375 kB / 484.7 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003286/0.3148, allocations: 65.69 kB / 484.8 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003244/0.3151, allocations: 72.14 kB / 484.8 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001633/0.3168, allocations: 1.819 MB / 486.6 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006863/0.3175, allocations: 48.53 kB / 486.7 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.863e-05/0.3175, allocations: 14.56 kB / 486.7 MB, free: 3.551 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 (powReq.count,$PRE.powReq.count,powReq.T_start,$PRE.powReq.T_start,$whenCondition1,ice.tokgFuel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0007096/0.3183, allocations: 379.3 kB / 487.1 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.3184, allocations: 102.9 kB / 487.2 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009722/0.3194, allocations: 445 kB / 487.6 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.3194, allocations: 6.688 kB / 487.6 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.3194, allocations: 1.375 kB / 487.6 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.3194, allocations: 3.984 kB / 487.6 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007748/0.3202, allocations: 0.6886 MB / 488.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3202, allocations: 0 / 488.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002653/0.3205, allocations: 56.45 kB / 488.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002191/0.3207, allocations: 54.19 kB / 488.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.3208, allocations: 11 kB / 488.4 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.3222, allocations: 1.806 MB / 490.2 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3222, allocations: 4.062 kB / 490.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001352/0.3236, allocations: 0.5911 MB / 490.8 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002627/0.3239, allocations: 222.4 kB / 491 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.4e-05/0.324, allocations: 6 kB / 491.1 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.3242, allocations: 22.03 kB / 491.1 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.776e-05/0.3243, allocations: 24.47 kB / 491.1 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.051e-05/0.3244, allocations: 12.7 kB / 491.1 MB, free: 100 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00194/0.3263, allocations: 1.196 MB / 492.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3263, allocations: 0 / 492.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000782/0.3271, allocations: 154.8 kB / 492.5 MB, free: 15.47 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (loadTorque.phi,ice.inertia.w,ice.tokgFuel.y) * Number of discrete variables: 3 ($whenCondition1,powReq.T_start,powReq.count) * Number of discrete states: 1 (powReq.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004146/0.3313, allocations: 1.619 MB / 494.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.3325, allocations: 487.4 kB / 494.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3325, allocations: 3.938 kB / 494.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005328/0.333, allocations: 275.8 kB / 494.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008034/0.3339, allocations: 109.4 kB / 494.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01565/0.3495, allocations: 9.69 MB / 0.4928 GB, free: 4.137 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008514/0.3504, allocations: 1.09 MB / 0.4939 GB, free: 3.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003242/0.3507, allocations: 121.1 kB / 0.494 GB, free: 2.902 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004781/0.3512, allocations: 351.3 kB / 0.4943 GB, free: 2.559 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3512, allocations: 0 / 0.4943 GB, free: 2.559 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05431/0.4055, allocations: 19.08 MB / 0.5129 GB, free: 15.58 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.24, allocations: 3.5 kB / 0.5129 GB, free: 15.58 MB / 398.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConn.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConn.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConn.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConn.sim & python3 -m fmpy simulate --output-file EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConn_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceConn.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConn.pipe 2>&1)