Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO.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.TestIceConnOO,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceConnOO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceConnOO",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.005874/0.005874, allocations: 97.27 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.00134/0.00134, allocations: 196.9 kB / 16.68 MB, free: 5.973 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.1973/0.1973, allocations: 8.406 MB / 298.9 MB, free: 2.086 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 63.89 kB / 413.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2727, allocations: 51.37 MB / 464.7 MB, free: 17.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO): time 0.005561/0.2783, allocations: 3.826 MB / 468.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002893/0.2813, allocations: 1.714 MB / 470.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004652/0.2818, allocations: 11.28 kB / 470.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008271/0.2827, allocations: 342.4 kB / 470.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000767/0.2834, allocations: 299.3 kB / 470.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009211/0.2844, allocations: 380.2 kB / 471.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007597/0.2851, allocations: 0.6979 MB / 471.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005207/0.2857, allocations: 313 kB / 472.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004454/0.2861, allocations: 311.7 kB / 472.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005514/0.2867, allocations: 392 kB / 472.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.2868, allocations: 59.84 kB / 473 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002686/0.2871, allocations: 116.5 kB / 473.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002831/0.2874, allocations: 326.2 kB / 473.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003405/0.2877, allocations: 488 kB / 473.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001343/0.2891, allocations: 1.228 MB / 475.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.2891, allocations: 0 / 475.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2891, allocations: 0 / 475.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.847e-05/0.2891, allocations: 0 / 475.1 MB, free: 11.41 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.002364/0.2915, allocations: 1.487 MB / 476.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.2916, allocations: 14.73 kB / 476.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.56e-05/0.2916, allocations: 87.78 kB / 476.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001933/0.2918, allocations: 130.2 kB / 476.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.2929, allocations: 0.8549 MB / 477.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.2929, allocations: 37.5 kB / 477.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.726e-05/0.293, allocations: 51.12 kB / 477.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009054/0.2939, allocations: 483.3 kB / 478.3 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.294, allocations: 5.672 kB / 478.3 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.768e-05/0.294, allocations: 20.75 kB / 478.3 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.294, allocations: 10.78 kB / 478.3 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008837/0.2949, allocations: 355.7 kB / 478.6 MB, free: 9.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002599/0.2975, allocations: 2.107 MB / 480.7 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007867/0.2983, allocations: 355.2 kB / 481.1 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003435/0.2987, allocations: 141 kB / 481.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.277e-05/0.2987, allocations: 7.75 kB / 481.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004481/0.2992, allocations: 196.9 kB / 481.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.064e-06/0.2992, allocations: 0 / 481.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001836/0.301, allocations: 0.6829 MB / 482.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/0.3011, allocations: 58.78 kB / 482.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00219/0.3033, allocations: 1.659 MB / 483.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.724e-05/0.3033, allocations: 31.08 kB / 483.9 MB, free: 6.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003781/0.3037, allocations: 0.5027 MB / 484.4 MB, free: 5.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.052e-05/0.3038, allocations: 112.1 kB / 484.5 MB, free: 5.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.304, allocations: 82.52 kB / 484.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.231e-05/0.304, allocations: 321.9 kB / 484.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003723/0.3044, allocations: 140.2 kB / 485 MB, free: 5.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003833/0.3048, allocations: 207.5 kB / 485.2 MB, free: 4.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000711/0.3055, allocations: 369.8 kB / 485.6 MB, free: 4.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3055, allocations: 0 / 485.6 MB, free: 4.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001187/0.3067, allocations: 0.5605 MB / 486.1 MB, free: 4.348 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/0.3068, allocations: 40.56 kB / 486.2 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.3068, allocations: 10.91 kB / 486.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002692/0.307, allocations: 60.38 kB / 486.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002934/0.3074, allocations: 78.52 kB / 486.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.3088, allocations: 1.808 MB / 488.1 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000444/0.3092, allocations: 55.06 kB / 488.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.854e-05/0.3093, allocations: 18.72 kB / 488.2 MB, free: 2.457 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: 9 (stepOff.y,stepOn.y,powReq.count,$PRE.powReq.count,powReq.T_start,$PRE.powReq.T_start,toConnIceON.conn.iceON,$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 (44): * Single equations (assignments): 42 * 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.0005258/0.3098, allocations: 388.9 kB / 488.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.3099, allocations: 107.7 kB / 488.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.311, allocations: 484.4 kB / 489.1 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.311, allocations: 3.094 kB / 489.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.311, allocations: 5.312 kB / 489.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.311, allocations: 0 / 489.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000677/0.3117, allocations: 0.7307 MB / 489.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3117, allocations: 1.344 kB / 489.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002504/0.312, allocations: 49.58 kB / 489.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001873/0.3122, allocations: 58.31 kB / 490 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.3122, allocations: 6.656 kB / 490 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001392/0.3136, allocations: 1.806 MB / 491.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3136, allocations: 0 / 491.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.3151, allocations: 0.6302 MB / 492.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002974/0.3155, allocations: 231.4 kB / 492.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.009e-05/0.3156, allocations: 6.375 kB / 492.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002732/0.3158, allocations: 27.66 kB / 492.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.316, allocations: 33.14 kB / 492.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.316, allocations: 5.688 kB / 492.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001632/0.3176, allocations: 1.196 MB / 493.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3176, allocations: 1.188 kB / 493.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006333/0.3183, allocations: 157.5 kB / 494.1 MB, free: 14.31 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: 6 ($whenCondition1,toConnIceON.conn.iceON,powReq.T_start,powReq.count,stepOn.y,stepOff.y) * Number of discrete states: 1 (powReq.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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.003998/0.3223, allocations: 1.684 MB / 495.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.3236, allocations: 0.5177 MB / 496.3 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3236, allocations: 0 / 496.3 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005813/0.3242, allocations: 283 kB / 496.6 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008679/0.3251, allocations: 124 kB / 496.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01501/0.3401, allocations: 9.878 MB / 0.4947 GB, free: 2.191 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008824/0.3411, allocations: 1.106 MB / 0.4958 GB, free: 1.059 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003317/0.3414, allocations: 117.2 kB / 0.4959 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005002/0.3419, allocations: 371.3 kB / 0.4962 GB, free: 0.5781 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3419, allocations: 0 / 0.4962 GB, free: 0.5781 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0551/0.397, allocations: 19.55 MB / 0.5153 GB, free: 13.13 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/14.07, allocations: 9.031 kB / 0.5153 GB, free: 13.12 MB / 398.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO.sim & python3 -m fmpy simulate --output-file EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO_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_TestIceConnOO.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO.pipe 2>&1)