Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_FWD.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_FWD,fileNamePrefix="BoundaryInitBlocks_BoundaryInitBlocks_Examples_Tests_Hydraulics_InvertibleConfig_OL_Simulation_ON_FWD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_FWD,fileNamePrefix="BoundaryInitBlocks_BoundaryInitBlocks_Examples_Tests_Hydraulics_InvertibleConfig_OL_Simulation_ON_FWD",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.001405/0.001405, allocations: 104 kB / 15.61 MB, free: 148 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.001536/0.001536, allocations: 196.2 kB / 16.53 MB, free: 6.684 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.506/1.506, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BoundaryInitBlocks 1.0.0-master/package.mo): time 0.008713/0.008713, allocations: 1.321 MB / 291.7 MB, free: 1.051 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002991/0.002991, allocations: 63.89 kB / 355.4 MB, free: 14.72 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3095, allocations: 49.72 MB / 405.1 MB, free: 11.95 MB / 286.1 MB Notification: Performance of NFInst.instantiate(BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_FWD): time 0.004117/0.3137, allocations: 1.785 MB / 406.9 MB, free: 10.7 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.315, allocations: 0.5403 MB / 407.4 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.3151, allocations: 2.344 kB / 407.4 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.3153, allocations: 22.06 kB / 407.5 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.802e-05/0.3154, allocations: 30.16 kB / 407.5 MB, free: 10.28 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003866/0.3158, allocations: 91.12 kB / 407.6 MB, free: 10.24 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002667/0.3161, allocations: 161 kB / 407.7 MB, free: 10.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002084/0.3163, allocations: 46.78 kB / 407.8 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.3165, allocations: 53.83 kB / 407.8 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001161/0.3166, allocations: 57.16 kB / 407.9 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.622e-05/0.3166, allocations: 9.188 kB / 407.9 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.423e-05/0.3167, allocations: 10.09 kB / 407.9 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.279e-05/0.3167, allocations: 37.33 kB / 407.9 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.202e-05/0.3168, allocations: 54.91 kB / 408 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000223/0.3171, allocations: 127.2 kB / 408.1 MB, free: 9.965 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3171, allocations: 1 kB / 408.1 MB, free: 9.965 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.297e-06/0.3171, allocations: 0.6094 kB / 408.1 MB, free: 9.965 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.3171, allocations: 0 / 408.1 MB, free: 9.965 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.0007468/0.3179, allocations: 454.5 kB / 408.6 MB, free: 9.543 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.3179, allocations: 9.094 kB / 408.6 MB, free: 9.543 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.661e-05/0.318, allocations: 40.08 kB / 408.6 MB, free: 9.5 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.285e-05/0.318, allocations: 16.88 kB / 408.6 MB, free: 9.492 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002308/0.3183, allocations: 208.3 kB / 408.8 MB, free: 9.27 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.3183, allocations: 7.938 kB / 408.8 MB, free: 9.266 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.3184, allocations: 11.53 kB / 408.9 MB, free: 9.262 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003504/0.3187, allocations: 128.8 kB / 409 MB, free: 9.18 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.3187, allocations: 0.5156 kB / 409 MB, free: 9.18 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.3188, allocations: 5.188 kB / 409 MB, free: 9.176 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.3188, allocations: 5.312 kB / 409 MB, free: 9.172 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003309/0.3191, allocations: 62.17 kB / 409 MB, free: 9.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009578/0.3201, allocations: 0.5073 MB / 409.6 MB, free: 8.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002712/0.3204, allocations: 70.17 kB / 409.6 MB, free: 8.691 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.3206, allocations: 37.02 kB / 409.7 MB, free: 8.676 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.3206, allocations: 5 kB / 409.7 MB, free: 8.672 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.325e-05/0.3206, allocations: 36.33 kB / 409.7 MB, free: 8.629 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.3207, allocations: 0 / 409.7 MB, free: 8.629 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005954/0.3213, allocations: 128.3 kB / 409.8 MB, free: 8.566 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.3213, allocations: 56.11 kB / 409.9 MB, free: 8.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001996/0.3215, allocations: 178.1 kB / 410.1 MB, free: 8.371 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.3215, allocations: 26.92 kB / 410.1 MB, free: 8.34 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.137e-05/0.3216, allocations: 123.8 kB / 410.2 MB, free: 8.227 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.791e-05/0.3217, allocations: 23.91 kB / 410.2 MB, free: 8.207 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.336e-05/0.3217, allocations: 29.44 kB / 410.3 MB, free: 8.184 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 6.355e-05/0.3218, allocations: 325.9 kB / 410.6 MB, free: 7.863 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.322, allocations: 32.77 kB / 410.6 MB, free: 7.855 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001776/0.3222, allocations: 57.66 kB / 410.7 MB, free: 7.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.3225, allocations: 95.53 kB / 410.8 MB, free: 7.766 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3225, allocations: 0 / 410.8 MB, free: 7.766 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004588/0.323, allocations: 138.8 kB / 410.9 MB, free: 7.695 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.323, allocations: 10.02 kB / 410.9 MB, free: 7.691 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3231, allocations: 0 / 410.9 MB, free: 7.691 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.3231, allocations: 2.281 kB / 410.9 MB, free: 7.691 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.3233, allocations: 32.28 kB / 410.9 MB, free: 7.688 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.3234, allocations: 6.125 kB / 410.9 MB, free: 7.684 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000131/0.3235, allocations: 19.73 kB / 411 MB, free: 7.672 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.3235, allocations: 3.469 kB / 411 MB, free: 7.672 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.837e-05/0.3236, allocations: 119.7 kB / 411.1 MB, free: 7.551 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.681e-05/0.3237, allocations: 14.06 kB / 411.1 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.904e-05/0.3238, allocations: 13.61 kB / 411.1 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.3238, allocations: 1.062 kB / 411.1 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3238, allocations: 0 / 411.1 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3238, allocations: 5.812 kB / 411.1 MB, free: 7.531 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007219/0.3245, allocations: 399.2 kB / 411.5 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.3245, allocations: 4.5 kB / 411.5 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003211/0.3249, allocations: 29.91 kB / 411.5 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.3249, allocations: 1.281 kB / 411.5 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.3249, allocations: 1.344 kB / 411.5 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009616/0.3259, allocations: 1.408 MB / 412.9 MB, free: 5.707 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3259, allocations: 5.109 kB / 413 MB, free: 5.703 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005004/0.3264, allocations: 241.6 kB / 413.2 MB, free: 5.523 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.663e-05/0.3265, allocations: 101 kB / 413.3 MB, free: 5.414 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.3265, allocations: 1.703 kB / 413.3 MB, free: 5.414 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.3267, allocations: 10.11 kB / 413.3 MB, free: 5.41 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.649e-05/0.3268, allocations: 5.281 kB / 413.3 MB, free: 5.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.3268, allocations: 6.125 kB / 413.3 MB, free: 5.406 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001275/0.3269, allocations: 130.7 kB / 413.4 MB, free: 5.312 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3269, allocations: 64 / 413.4 MB, free: 5.312 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004757/0.3274, allocations: 28.31 kB / 413.5 MB, free: 5.305 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.0007045/0.3281, allocations: 0.7737 MB / 414.2 MB, free: 4.598 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000388/0.3285, allocations: 80 kB / 414.3 MB, free: 4.578 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3285, allocations: 0 / 414.3 MB, free: 4.578 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.3288, allocations: 46.16 kB / 414.4 MB, free: 4.57 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006614/0.3295, allocations: 41.67 kB / 414.4 MB, free: 4.559 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002518/0.332, allocations: 1.798 MB / 416.2 MB, free: 3.098 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001603/0.3322, allocations: 0.7128 MB / 416.9 MB, free: 2.398 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001032/0.3323, allocations: 9.359 kB / 416.9 MB, free: 2.395 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.3324, allocations: 40.3 kB / 417 MB, free: 2.367 MB / 286.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3324, allocations: 0 / 417 MB, free: 2.367 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03254/0.365, allocations: 3.1 MB / 420.1 MB, free: 1.922 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/8.09, allocations: 5.312 kB / 420.1 MB, free: 1.918 MB / 286.1 MB (rm -f BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_FWD.pipe ; mkfifo BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_FWD.pipe ; head -c 1048576 < BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_FWD.pipe >> ../files/BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_FWD.sim & python3 -m fmpy simulate --output-file BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_FWD_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_FWD.fmu > BoundaryInitBlocks_BoundaryInitBlocks.Examples.Tests.Hydraulics.InvertibleConfig.OL_Simulation_ON_FWD.pipe 2>&1)