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.001362/0.001362, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 193.1 kB / 16.53 MB, free: 6.664 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.425/1.425, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.1617/0.1617, allocations: 8.41 MB / 298.8 MB, free: 2.203 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 67.89 kB / 361.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1234, allocations: 51.36 MB / 412.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestICE.TestIceConn): time 0.009046/0.1325, allocations: 3.738 MB / 416.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003351/0.1359, allocations: 1.09 MB / 417.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004106/0.1364, allocations: 8 kB / 417.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009203/0.1373, allocations: 346.7 kB / 417.8 MB, free: 5.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009306/0.1383, allocations: 286.6 kB / 418.1 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.1396, allocations: 359 kB / 418.5 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001178/0.1408, allocations: 0.655 MB / 419.1 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000712/0.1415, allocations: 287.6 kB / 419.4 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005218/0.142, allocations: 278.9 kB / 419.7 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006187/0.1427, allocations: 374.6 kB / 420 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.1428, allocations: 52 kB / 420.1 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003309/0.1432, allocations: 119.9 kB / 420.2 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004162/0.1436, allocations: 303 kB / 420.5 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006573/0.1443, allocations: 465 kB / 421 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001707/0.146, allocations: 1.133 MB / 422.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.146, allocations: 0 / 422.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.146, allocations: 0 / 422.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.146, allocations: 0 / 422.1 MB, free: 0.7539 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.1864/0.3324, allocations: 1.408 MB / 423.5 MB, free: 43.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.3325, allocations: 13.42 kB / 423.5 MB, free: 43.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.567e-05/0.3326, allocations: 78 kB / 423.6 MB, free: 43.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.3327, allocations: 117.2 kB / 423.7 MB, free: 43.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.3338, allocations: 0.8253 MB / 424.5 MB, free: 43.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.3338, allocations: 34.78 kB / 424.6 MB, free: 43.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.553e-05/0.3339, allocations: 45.44 kB / 424.6 MB, free: 43.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007667/0.3347, allocations: 431 kB / 425 MB, free: 43.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.3347, allocations: 8 kB / 425 MB, free: 43.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.457e-05/0.3347, allocations: 17.3 kB / 425.1 MB, free: 43.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.3347, allocations: 8.938 kB / 425.1 MB, free: 43.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007332/0.3355, allocations: 311.2 kB / 425.4 MB, free: 43.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.338, allocations: 2.014 MB / 427.4 MB, free: 42.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007515/0.3387, allocations: 323.4 kB / 427.7 MB, free: 42.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.339, allocations: 119.3 kB / 427.8 MB, free: 42.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.473e-05/0.3391, allocations: 14.45 kB / 427.8 MB, free: 42.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00037/0.3395, allocations: 175.2 kB / 428 MB, free: 42.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 2.905e-06/0.3395, allocations: 2.688 kB / 428 MB, free: 42.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001551/0.341, allocations: 0.6334 MB / 428.6 MB, free: 41.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.027e-05/0.3411, allocations: 61.28 kB / 428.7 MB, free: 41.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001551/0.3426, allocations: 1.646 MB / 430.3 MB, free: 41.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.3427, allocations: 36.05 kB / 430.4 MB, free: 41.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002818/0.343, allocations: 485 kB / 430.8 MB, free: 40.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.405e-05/0.343, allocations: 96.05 kB / 430.9 MB, free: 40.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.167e-05/0.3431, allocations: 68.78 kB / 431 MB, free: 40.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.967e-05/0.3432, allocations: 324.3 kB / 431.3 MB, free: 40.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003001/0.3435, allocations: 126 kB / 431.4 MB, free: 40.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003067/0.3438, allocations: 191.6 kB / 431.6 MB, free: 40.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006057/0.3444, allocations: 339.1 kB / 432 MB, free: 40 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3444, allocations: 4.562 kB / 432 MB, free: 40 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001038/0.3455, allocations: 0.541 MB / 432.5 MB, free: 39.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/0.3455, allocations: 39.53 kB / 432.6 MB, free: 39.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.3455, allocations: 3.125 kB / 432.6 MB, free: 39.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002728/0.3458, allocations: 59.67 kB / 432.6 MB, free: 39.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000268/0.3461, allocations: 77.02 kB / 432.7 MB, free: 39.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001351/0.3474, allocations: 1.812 MB / 434.5 MB, free: 38.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003835/0.3478, allocations: 51.92 kB / 434.6 MB, free: 38.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.567e-05/0.3479, allocations: 13.16 kB / 434.6 MB, free: 38.01 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.0004674/0.3483, allocations: 378.3 kB / 434.9 MB, free: 37.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.3485, allocations: 95.72 kB / 435 MB, free: 37.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008761/0.3493, allocations: 449.5 kB / 435.5 MB, free: 37.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.3494, allocations: 3 kB / 435.5 MB, free: 37.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3494, allocations: 0.8125 kB / 435.5 MB, free: 37.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.3494, allocations: 3.219 kB / 435.5 MB, free: 37.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005568/0.3499, allocations: 0.696 MB / 436.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3499, allocations: 0.7656 kB / 436.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002351/0.3502, allocations: 46.28 kB / 436.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001743/0.3504, allocations: 63.98 kB / 436.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.3504, allocations: 7.281 kB / 436.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001118/0.3515, allocations: 1.808 MB / 438.1 MB, free: 35.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3515, allocations: 4.062 kB / 438.1 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.3526, allocations: 0.5717 MB / 438.7 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002077/0.3529, allocations: 220.2 kB / 438.9 MB, free: 35.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.794e-05/0.353, allocations: 10.94 kB / 438.9 MB, free: 35.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.3532, allocations: 20.08 kB / 438.9 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.686e-05/0.3533, allocations: 26.62 kB / 438.9 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.3533, allocations: 6.281 kB / 438.9 MB, free: 35.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001176/0.3545, allocations: 1.191 MB / 440.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3545, allocations: 0 / 440.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005483/0.3551, allocations: 155.4 kB / 440.3 MB, free: 34.62 MB / 350.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.003354/0.3584, allocations: 1.628 MB / 441.9 MB, free: 33.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.3595, allocations: 0.4891 MB / 442.4 MB, free: 33.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3595, allocations: 0 / 442.4 MB, free: 33.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004141/0.3599, allocations: 272.7 kB / 442.7 MB, free: 33.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006951/0.3606, allocations: 113.4 kB / 442.8 MB, free: 33.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01095/0.3716, allocations: 10.38 MB / 453.2 MB, free: 28.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004739/0.3721, allocations: 1.091 MB / 454.3 MB, free: 27.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000239/0.3723, allocations: 115.4 kB / 454.4 MB, free: 27.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003368/0.3727, allocations: 354.3 kB / 454.7 MB, free: 27.3 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3727, allocations: 4 kB / 454.7 MB, free: 27.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05242/0.4251, allocations: 18.66 MB / 473.4 MB, free: 24.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.96, allocations: 11.89 kB / 473.4 MB, free: 24.65 MB / 350.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)