Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceP.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.TestIceP,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestICE.TestIceP,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceP",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.007089/0.007089, allocations: 98.66 kB / 15.73 MB, free: 6.066 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.001779/0.001779, allocations: 196.4 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.04577/0.04577, allocations: 8.418 MB / 298.9 MB, free: 6.391 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 63.91 kB / 413.3 MB, free: 22.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08682/0.08881, allocations: 51.36 MB / 464.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestICE.TestIceP): time 0.005912/0.09476, allocations: 3.768 MB / 468.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002926/0.09771, allocations: 1.744 MB / 470.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003545/0.09811, allocations: 4 kB / 470.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006725/0.0988, allocations: 346.6 kB / 470.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006493/0.09946, allocations: 298.6 kB / 470.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009026/0.1004, allocations: 419.7 kB / 471.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008192/0.1012, allocations: 0.6822 MB / 471.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003961/0.1016, allocations: 247.7 kB / 472.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003935/0.102, allocations: 286.9 kB / 472.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005336/0.1026, allocations: 374.6 kB / 472.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.612e-05/0.1027, allocations: 56 kB / 472.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002189/0.1029, allocations: 115.9 kB / 473 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002731/0.1032, allocations: 319 kB / 473.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004079/0.1036, allocations: 461.1 kB / 473.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001283/0.1049, allocations: 1.179 MB / 474.9 MB, free: 8.473 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1049, allocations: 0 / 474.9 MB, free: 8.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1049, allocations: 0 / 474.9 MB, free: 8.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.1049, allocations: 0 / 474.9 MB, free: 8.473 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.002283/0.1072, allocations: 1.464 MB / 476.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.1073, allocations: 11.89 kB / 476.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.953e-05/0.1073, allocations: 78.72 kB / 476.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.1075, allocations: 128.1 kB / 476.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001241/0.1088, allocations: 0.8498 MB / 477.4 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.503e-05/0.1088, allocations: 36.88 kB / 477.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.011e-05/0.1089, allocations: 44 kB / 477.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008897/0.1098, allocations: 444.7 kB / 478 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.1098, allocations: 4 kB / 478 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.644e-05/0.1099, allocations: 12 kB / 478 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.1099, allocations: 12 kB / 478 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008742/0.1108, allocations: 335.7 kB / 478.3 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003016/0.1138, allocations: 2.025 MB / 480.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.1148, allocations: 435.9 kB / 480.8 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003697/0.1152, allocations: 136.8 kB / 480.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.697e-05/0.1153, allocations: 8.062 kB / 480.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004865/0.1157, allocations: 205 kB / 481.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.104e-06/0.1158, allocations: 0 / 481.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.001944/0.1177, allocations: 0.6796 MB / 481.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/0.1178, allocations: 81.11 kB / 481.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00214/0.1199, allocations: 1.667 MB / 483.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/0.12, allocations: 33.7 kB / 483.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004516/0.1204, allocations: 481.2 kB / 484 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.967e-05/0.1205, allocations: 103.2 kB / 484.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.1207, allocations: 70.08 kB / 484.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1208, allocations: 326 kB / 484.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004069/0.1213, allocations: 142.3 kB / 484.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004622/0.1217, allocations: 223.2 kB / 484.9 MB, free: 14.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008743/0.1226, allocations: 358.3 kB / 485.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.1226, allocations: 0 / 485.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001367/0.124, allocations: 0.5783 MB / 485.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.396e-05/0.1241, allocations: 37.91 kB / 485.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.1241, allocations: 8 kB / 485.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002733/0.1243, allocations: 56.81 kB / 485.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.1247, allocations: 75.89 kB / 486 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/0.1268, allocations: 1.826 MB / 487.8 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004095/0.1272, allocations: 55.72 kB / 487.9 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.918e-05/0.1272, allocations: 12 kB / 487.9 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008372/0.1281, allocations: 461.6 kB / 488.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004043/0.1285, allocations: 203 kB / 488.5 MB, free: 10.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007177/0.1292, allocations: 344.5 kB / 488.9 MB, free: 9.891 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.014e-06/0.1292, allocations: 0 / 488.9 MB, free: 9.891 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization_lambda0): time 0.001189/0.1304, allocations: 0.5497 MB / 489.4 MB, free: 9.324 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.1305, allocations: 33.69 kB / 489.4 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1305, allocations: 4 kB / 489.4 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000205/0.1307, allocations: 61.03 kB / 489.5 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002863/0.131, allocations: 71.89 kB / 489.6 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/0.1329, allocations: 1.822 MB / 491.4 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003964/0.1333, allocations: 39.91 kB / 491.4 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.871e-05/0.1333, allocations: 24 kB / 491.5 MB, free: 7.121 MB / 366.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,iceP.tokgFuel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 39 * 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.0001813/0.1335, allocations: 208.6 kB / 491.7 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.1337, allocations: 107.3 kB / 491.8 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.1348, allocations: 468.4 kB / 492.2 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.1349, allocations: 4 kB / 492.2 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/0.1349, allocations: 0 / 492.2 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.1349, allocations: 0 / 492.2 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002035/0.1369, allocations: 1.222 MB / 493.4 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.1369, allocations: 0 / 493.4 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002951/0.1372, allocations: 55.88 kB / 493.5 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002225/0.1375, allocations: 68.75 kB / 493.6 MB, free: 4.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.1375, allocations: 4 kB / 493.6 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00181/0.1393, allocations: 1.799 MB / 495.4 MB, free: 2.988 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1393, allocations: 0 / 495.4 MB, free: 2.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.1409, allocations: 0.6889 MB / 496.1 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002799/0.1412, allocations: 224.4 kB / 496.3 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.273e-05/0.1413, allocations: 8 kB / 496.3 MB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003098/0.1416, allocations: 27.97 kB / 496.3 MB, free: 2.008 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.796e-05/0.1417, allocations: 27.95 kB / 496.3 MB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/0.1417, allocations: 8 kB / 496.3 MB, free: 1.973 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001591/0.1433, allocations: 1.195 MB / 497.5 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1433, allocations: 0 / 497.5 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009214/0.1442, allocations: 275.4 kB / 497.8 MB, free: 0.5 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (iceP.inertia.w,iceP.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 (22): * Single equations (assignments): 19 * 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.003969/0.1482, allocations: 1.745 MB / 499.6 MB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001863/0.1501, allocations: 0.8646 MB / 0.4887 GB, free: 14.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1501, allocations: 0 / 0.4887 GB, free: 14.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005806/0.1507, allocations: 295 kB / 0.489 GB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007331/0.1514, allocations: 116.2 kB / 0.4891 GB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/0.166, allocations: 9.903 MB / 0.4988 GB, free: 3.574 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008377/0.1669, allocations: 1.095 MB / 0.4998 GB, free: 2.453 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003347/0.1672, allocations: 121.2 kB / 0.4999 GB, free: 2.332 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004768/0.1677, allocations: 355.3 kB / 0.5003 GB, free: 1.984 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1677, allocations: 4 kB / 0.5003 GB, free: 1.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2356/0.4033, allocations: 20.25 MB / 0.5201 GB, free: 39.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.39, allocations: 5.688 kB / 0.5201 GB, free: 39.97 MB / 382.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceP.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceP.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceP.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceP_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceP.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceP.pipe 2>&1)