Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.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 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: "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestIceConn,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestIceConn",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestIceConn,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_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.006705/0.00671, allocations: 101.7 kB / 15.73 MB, free: 5.992 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.001483/0.001483, allocations: 199 kB / 16.68 MB, free: 5.914 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1515/0.1515, allocations: 8.019 MB / 298.6 MB, free: 2.352 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 59.91 kB / 412.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2536, allocations: 51.19 MB / 463.8 MB, free: 17.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestIceConn): time 0.004489/0.2582, allocations: 3.192 MB / 466.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.2596, allocations: 0.7927 MB / 467.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002048/0.2598, allocations: 9.062 kB / 467.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005715/0.2604, allocations: 290.9 kB / 468 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004273/0.2608, allocations: 220.5 kB / 468.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000621/0.2615, allocations: 291 kB / 468.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004801/0.262, allocations: 0.4897 MB / 469 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003145/0.2623, allocations: 204.7 kB / 469.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000247/0.2625, allocations: 216.1 kB / 469.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003436/0.2629, allocations: 271.9 kB / 469.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.345e-05/0.263, allocations: 38.88 kB / 469.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.2631, allocations: 79.75 kB / 469.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002218/0.2634, allocations: 184.6 kB / 470 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002631/0.2636, allocations: 293.7 kB / 470.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008704/0.2645, allocations: 0.7178 MB / 471 MB, free: 13.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2645, allocations: 3.938 kB / 471 MB, free: 13.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2645, allocations: 0 / 471 MB, free: 13.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.928e-06/0.2646, allocations: 1.156 kB / 471 MB, free: 13.74 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001428/0.266, allocations: 1.017 MB / 472 MB, free: 12.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.266, allocations: 9.812 kB / 472 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.281e-05/0.2661, allocations: 69.61 kB / 472.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.2662, allocations: 74.47 kB / 472.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006949/0.2669, allocations: 0.543 MB / 472.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.267, allocations: 25.25 kB / 472.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.266e-05/0.267, allocations: 35.17 kB / 472.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006949/0.2677, allocations: 379.1 kB / 473.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.649e-05/0.2678, allocations: 6.047 kB / 473.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.988e-05/0.2678, allocations: 12 kB / 473.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.2678, allocations: 7.75 kB / 473.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007369/0.2686, allocations: 263.7 kB / 473.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.2706, allocations: 1.668 MB / 475.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008215/0.2715, allocations: 283.9 kB / 475.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.2718, allocations: 107.5 kB / 475.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.572e-05/0.2718, allocations: 7.219 kB / 475.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004226/0.2722, allocations: 164.7 kB / 475.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 2.475e-06/0.2723, allocations: 1.406 kB / 475.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001952/0.2742, allocations: 0.644 MB / 476.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.2743, allocations: 80.03 kB / 476.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.2755, allocations: 0.9768 MB / 477.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.2755, allocations: 31.8 kB / 477.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002577/0.2758, allocations: 355.3 kB / 477.7 MB, free: 9.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.778e-05/0.2759, allocations: 62.06 kB / 477.8 MB, free: 9.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.276, allocations: 66.19 kB / 477.8 MB, free: 9.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.2761, allocations: 379.5 kB / 478.2 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003321/0.2764, allocations: 116.3 kB / 478.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003883/0.2768, allocations: 191.1 kB / 478.5 MB, free: 9.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006677/0.2775, allocations: 320.2 kB / 478.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.2775, allocations: 1.188 kB / 478.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001254/0.2788, allocations: 0.5014 MB / 479.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.463e-05/0.2789, allocations: 41.38 kB / 479.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.2789, allocations: 2.625 kB / 479.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003093/0.2792, allocations: 61.14 kB / 479.4 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.2794, allocations: 54.77 kB / 479.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002054/0.2815, allocations: 1.97 MB / 481.5 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003137/0.2818, allocations: 43.41 kB / 481.5 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.713e-05/0.2819, allocations: 9.75 kB / 481.5 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005096/0.2824, allocations: 313.1 kB / 481.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002843/0.2827, allocations: 187.2 kB / 482 MB, free: 6.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005255/0.2832, allocations: 301.1 kB / 482.3 MB, free: 6.125 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.823e-06/0.2832, allocations: 4 kB / 482.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.000869/0.2841, allocations: 430.3 kB / 482.7 MB, free: 5.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.148e-05/0.2841, allocations: 32.58 kB / 482.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.2841, allocations: 6.141 kB / 482.8 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001458/0.2843, allocations: 46.48 kB / 482.8 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.2845, allocations: 55.95 kB / 482.9 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.2857, allocations: 1.77 MB / 484.6 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002905/0.286, allocations: 36.72 kB / 484.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.463e-05/0.286, allocations: 18 kB / 484.7 MB, free: 4.031 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (powReq.count,$PRE.powReq.count,powReq.T_start,$PRE.powReq.T_start,$whenCondition1,ice.toKgFuel.local_reset,ice.tokgFuel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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.000141/0.2861, allocations: 202.9 kB / 484.9 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.296e-05/0.2862, allocations: 62.19 kB / 484.9 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009291/0.2872, allocations: 391.7 kB / 485.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2872, allocations: 2.469 kB / 485.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.2872, allocations: 1.188 kB / 485.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2872, allocations: 3.984 kB / 485.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005085/0.2877, allocations: 495.8 kB / 485.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2877, allocations: 0 / 485.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002033/0.2879, allocations: 36.91 kB / 485.9 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002156/0.2882, allocations: 74.02 kB / 485.9 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.2882, allocations: 5.312 kB / 485.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001653/0.2898, allocations: 1.961 MB / 487.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2899, allocations: 4.062 kB / 487.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.291, allocations: 0.5091 MB / 488.4 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.2912, allocations: 149.2 kB / 488.5 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.793e-05/0.2913, allocations: 6.75 kB / 488.6 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.2915, allocations: 33.59 kB / 488.6 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.68e-05/0.2916, allocations: 25.59 kB / 488.6 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-05/0.2916, allocations: 8.125 kB / 488.6 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009367/0.2926, allocations: 0.7118 MB / 489.3 MB, free: 488 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2926, allocations: 0 / 489.3 MB, free: 488 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009315/0.2935, allocations: 194.4 kB / 489.5 MB, free: 440 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (loadTorque.phi,ice.inertia.w,ice.tokgFuel.y,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 (15): * Single equations (assignments): 12 * 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.002339/0.2959, allocations: 1.323 MB / 490.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.2975, allocations: 0.8094 MB / 491.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.2975, allocations: 0 / 491.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005942/0.2981, allocations: 290.4 kB / 491.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005145/0.2987, allocations: 88.47 kB / 492 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00904/0.3077, allocations: 6.106 MB / 498.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005071/0.3082, allocations: 0.9217 MB / 499.1 MB, free: 9.137 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001861/0.3084, allocations: 63.23 kB / 499.1 MB, free: 9.074 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002875/0.3087, allocations: 215.4 kB / 499.3 MB, free: 8.863 MB / 366.1 MB Notification: Performance of SimCode: time 1.803e-06/0.3088, allocations: 7.938 kB / 499.3 MB, free: 8.855 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04019/0.3489, allocations: 13.25 MB / 0.5006 GB, free: 11.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/12.82, allocations: 11.91 kB / 0.5006 GB, free: 11.7 MB / 382.1 MB (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestIceConn.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestIceConn.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestIceConn.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestIceConn.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_EHPTlib_MapBased_TestingModels_TestIceConn_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_EHPTlib_MapBased_TestingModels_TestIceConn.fmu > EHPTlib_EHPTlib.MapBased.TestingModels.TestIceConn.pipe 2>&1)