Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_BWD.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/BoundaryInitBlocks 1.0.0-master/package.mo", uses=false) Using package BoundaryInitBlocks with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BoundaryInitBlocks 1.0.0-master/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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: "" <> buildModelFMU(BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_BWD,fileNamePrefix="BoundaryInitBlocks_BoundaryInitBlocks_Examples_Tests_Hydraulics_InvertibleConfig_OL_Simulation_ON_BWD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_BWD,fileNamePrefix="BoundaryInitBlocks_BoundaryInitBlocks_Examples_Tests_Hydraulics_InvertibleConfig_OL_Simulation_ON_BWD",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.001734/0.001734, allocations: 108 kB / 15.6 MB, free: 132 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.001742/0.001742, allocations: 197.9 kB / 16.54 MB, free: 6.672 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.464/1.464, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BoundaryInitBlocks 1.0.0-master/package.mo): time 0.008423/0.008423, allocations: 1.326 MB / 291.7 MB, free: 1.059 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002115/0.002115, allocations: 67.89 kB / 355.4 MB, free: 14.74 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3104, allocations: 49.73 MB / 405.1 MB, free: 11.94 MB / 286.1 MB Notification: Performance of NFInst.instantiate(BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_BWD): time 0.003351/0.3138, allocations: 1.786 MB / 406.9 MB, free: 10.7 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009226/0.3148, allocations: 0.5406 MB / 407.4 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.3149, allocations: 5.781 kB / 407.4 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.3151, allocations: 21.02 kB / 407.5 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.797e-05/0.3151, allocations: 32.36 kB / 407.5 MB, free: 10.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002608/0.3154, allocations: 88.97 kB / 407.6 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000216/0.3156, allocations: 165.2 kB / 407.7 MB, free: 10.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.3158, allocations: 55.56 kB / 407.8 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.517e-05/0.3159, allocations: 53.95 kB / 407.9 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.613e-05/0.316, allocations: 55.36 kB / 407.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.872e-05/0.3161, allocations: 9.75 kB / 407.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.662e-05/0.3161, allocations: 11.34 kB / 407.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.187e-05/0.3161, allocations: 28.25 kB / 408 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.721e-05/0.3162, allocations: 59.55 kB / 408 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001811/0.3164, allocations: 127.3 kB / 408.1 MB, free: 9.957 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.3164, allocations: 1.062 kB / 408.1 MB, free: 9.957 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3164, allocations: 0 / 408.1 MB, free: 9.957 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.3164, allocations: 4 kB / 408.1 MB, free: 9.953 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0006231/0.3171, allocations: 445.8 kB / 408.6 MB, free: 9.539 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3171, allocations: 10.25 kB / 408.6 MB, free: 9.539 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.146e-05/0.3171, allocations: 39.77 kB / 408.6 MB, free: 9.496 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.789e-05/0.3172, allocations: 17.42 kB / 408.6 MB, free: 9.488 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/0.3174, allocations: 211.4 kB / 408.9 MB, free: 9.262 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.3174, allocations: 8.844 kB / 408.9 MB, free: 9.258 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.211e-05/0.3175, allocations: 15.28 kB / 408.9 MB, free: 9.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002704/0.3177, allocations: 124.1 kB / 409 MB, free: 9.172 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.3178, allocations: 0 / 409 MB, free: 9.172 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.3178, allocations: 1.469 kB / 409 MB, free: 9.172 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.3178, allocations: 5.312 kB / 409 MB, free: 9.168 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000246/0.318, allocations: 71.72 kB / 409.1 MB, free: 9.148 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007306/0.3188, allocations: 0.5024 MB / 409.6 MB, free: 8.723 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002023/0.319, allocations: 76.78 kB / 409.7 MB, free: 8.676 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.3191, allocations: 37.73 kB / 409.7 MB, free: 8.66 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.286e-05/0.3192, allocations: 5.016 kB / 409.7 MB, free: 8.656 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.862e-05/0.3192, allocations: 32.2 kB / 409.7 MB, free: 8.617 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 2.304e-06/0.3192, allocations: 4 kB / 409.7 MB, free: 8.613 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004254/0.3196, allocations: 123.5 kB / 409.8 MB, free: 8.555 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.3197, allocations: 53.41 kB / 409.9 MB, free: 8.492 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/0.3198, allocations: 178.1 kB / 410.1 MB, free: 8.363 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.3198, allocations: 34.83 kB / 410.1 MB, free: 8.324 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.656e-05/0.3199, allocations: 118.7 kB / 410.2 MB, free: 8.215 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.3199, allocations: 20.81 kB / 410.2 MB, free: 8.199 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.956e-05/0.32, allocations: 37.48 kB / 410.3 MB, free: 8.168 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.943e-05/0.32, allocations: 321.2 kB / 410.6 MB, free: 7.852 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.3202, allocations: 32.97 kB / 410.6 MB, free: 7.844 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.3203, allocations: 66.67 kB / 410.7 MB, free: 7.793 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002407/0.3206, allocations: 103 kB / 410.8 MB, free: 7.727 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3206, allocations: 0 / 410.8 MB, free: 7.727 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003056/0.3209, allocations: 144.6 kB / 410.9 MB, free: 7.652 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.3209, allocations: 9.844 kB / 410.9 MB, free: 7.648 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.3209, allocations: 2.156 kB / 410.9 MB, free: 7.648 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.3209, allocations: 5.172 kB / 411 MB, free: 7.645 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002734/0.3212, allocations: 40.67 kB / 411 MB, free: 7.641 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000736/0.322, allocations: 1.403 MB / 412.4 MB, free: 6.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.642e-05/0.3221, allocations: 16.45 kB / 412.4 MB, free: 6.172 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.3221, allocations: 8.031 kB / 412.4 MB, free: 6.168 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 7.703e-05/0.3222, allocations: 119.8 kB / 412.5 MB, free: 6.047 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.48e-05/0.3222, allocations: 9.219 kB / 412.5 MB, free: 6.043 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.831e-05/0.3222, allocations: 18.56 kB / 412.6 MB, free: 6.031 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.3222, allocations: 0.75 kB / 412.6 MB, free: 6.031 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.3223, allocations: 1.438 kB / 412.6 MB, free: 6.031 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3223, allocations: 4.25 kB / 412.6 MB, free: 6.027 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004938/0.3228, allocations: 403.6 kB / 413 MB, free: 5.672 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.3228, allocations: 0 / 413 MB, free: 5.672 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002354/0.323, allocations: 34.09 kB / 413 MB, free: 5.668 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.323, allocations: 1.125 kB / 413 MB, free: 5.668 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.3231, allocations: 5.094 kB / 413 MB, free: 5.664 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000639/0.3237, allocations: 1.406 MB / 414.4 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3237, allocations: 1.375 kB / 414.4 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003954/0.3241, allocations: 253.3 kB / 414.7 MB, free: 4.012 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.452e-05/0.3242, allocations: 92.45 kB / 414.7 MB, free: 3.91 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.926e-05/0.3242, allocations: 1.969 kB / 414.7 MB, free: 3.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.3243, allocations: 14.8 kB / 414.8 MB, free: 3.902 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.162e-05/0.3244, allocations: 4.922 kB / 414.8 MB, free: 3.902 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.3244, allocations: 2.219 kB / 414.8 MB, free: 3.902 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001238/0.3245, allocations: 126.6 kB / 414.9 MB, free: 3.812 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3246, allocations: 64 / 414.9 MB, free: 3.812 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003637/0.3249, allocations: 29.91 kB / 414.9 MB, free: 3.805 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (tank.l) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006601/0.3256, allocations: 0.7821 MB / 415.7 MB, free: 3.094 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004179/0.326, allocations: 91.81 kB / 415.8 MB, free: 3.074 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.326, allocations: 0 / 415.8 MB, free: 3.074 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001999/0.3262, allocations: 52.45 kB / 415.8 MB, free: 3.059 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004989/0.3267, allocations: 42.84 kB / 415.9 MB, free: 3.047 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002175/0.3289, allocations: 1.823 MB / 417.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001566/0.3291, allocations: 0.7072 MB / 418.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.109e-05/0.3292, allocations: 15.2 kB / 418.4 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.314e-05/0.3293, allocations: 46.03 kB / 418.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3293, allocations: 1.031 kB / 418.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02918/0.3585, allocations: 3.133 MB / 421.6 MB, free: 380 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.825/8.184, allocations: 4.922 kB / 421.6 MB, free: 376 kB / 286.1 MB (rm -f BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_BWD.pipe ; mkfifo BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_BWD.pipe ; head -c 1048576 < BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_BWD.pipe >> ../files/BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_BWD.sim & python3 -m fmpy simulate --output-file BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_BWD_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 BoundaryInitBlocks_BoundaryInitBlocks_Examples_Tests_Hydraulics_InvertibleConfig_OL_Simulation_ON_BWD.fmu > BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_BWD.pipe 2>&1)