Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo", uses=false) Using package OpenHydraulics with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_VariableRestrictionTestSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_VariableRestrictionTestSimple",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.007386/0.007386, allocations: 99.31 kB / 15.73 MB, free: 6.059 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.001964/0.001964, allocations: 191.8 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05918/0.05918, allocations: 11.84 MB / 281.8 MB, free: 9.34 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenHydraulics requested package Modelica of version 3.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002285/0.002285, allocations: 71.89 kB / 391.8 MB, free: 3.977 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2686, allocations: 49.24 MB / 441.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple): time 0.005028/0.2737, allocations: 2.401 MB / 443.5 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004443/0.2781, allocations: 2.122 MB / 445.6 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000193/0.2784, allocations: 2.938 kB / 445.6 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00048/0.2789, allocations: 77.55 kB / 445.7 MB, free: 0.9258 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0005559/0.2795, allocations: 117.8 kB / 445.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001713/0.2812, allocations: 415.5 kB / 446.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004733/0.2817, allocations: 255.4 kB / 446.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.2819, allocations: 52.64 kB / 446.5 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002744/0.2822, allocations: 93.09 kB / 446.6 MB, free: 464 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002649/0.2825, allocations: 102.6 kB / 446.7 MB, free: 416 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.539e-05/0.2825, allocations: 12.53 kB / 446.7 MB, free: 416 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006411/0.2832, allocations: 199.2 kB / 446.9 MB, free: 368 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.2833, allocations: 46.91 kB / 446.9 MB, free: 340 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001853/0.2835, allocations: 99.31 kB / 447 MB, free: 276 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008283/0.2844, allocations: 362.9 kB / 447.4 MB, free: 128 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.2844, allocations: 0 / 447.4 MB, free: 128 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.2844, allocations: 1.25 kB / 447.4 MB, free: 128 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.2844, allocations: 0 / 447.4 MB, free: 128 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001324/0.2858, allocations: 0.5567 MB / 448 MB, free: 15.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.2858, allocations: 13.86 kB / 448 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.138e-05/0.2859, allocations: 46.73 kB / 448 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.286, allocations: 24.61 kB / 448 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006547/0.2867, allocations: 274.6 kB / 448.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.2868, allocations: 8.25 kB / 448.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.885e-05/0.2868, allocations: 12.34 kB / 448.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005754/0.2874, allocations: 152 kB / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.2874, allocations: 1.562 kB / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.58e-05/0.2875, allocations: 4 kB / 448.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.2875, allocations: 3.875 kB / 448.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006329/0.2881, allocations: 153.4 kB / 448.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.2898, allocations: 0.7976 MB / 449.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003745/0.2902, allocations: 106.3 kB / 449.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002186/0.2904, allocations: 55.66 kB / 449.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001203/0.2906, allocations: 82.98 kB / 449.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/0.2906, allocations: 38.5 kB / 449.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 2.164e-06/0.2906, allocations: 0 / 449.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.001931/0.2925, allocations: 407.7 kB / 450.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/0.2926, allocations: 56.84 kB / 450.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004285/0.2931, allocations: 288.2 kB / 450.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.2931, allocations: 25.7 kB / 450.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.2933, allocations: 155.8 kB / 450.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.684e-05/0.2933, allocations: 40.03 kB / 450.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.462e-05/0.2934, allocations: 38.03 kB / 450.7 MB, free: 13.42 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.2936, allocations: 328 kB / 451 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.2939, allocations: 68.22 kB / 451.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003521/0.2943, allocations: 87.91 kB / 451.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005908/0.2949, allocations: 165.1 kB / 451.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.2949, allocations: 1.531 kB / 451.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007209/0.2956, allocations: 208.3 kB / 451.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.2956, allocations: 6 kB / 451.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.2957, allocations: 1.406 kB / 451.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.2957, allocations: 1.594 kB / 451.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003084/0.296, allocations: 45.38 kB / 451.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.296, allocations: 1.781 kB / 451.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.2963, allocations: 25.03 kB / 451.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.2963, allocations: 5.25 kB / 451.6 MB, free: 12.73 MB / 334.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: 1 (leakage.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.0001799/0.2965, allocations: 144 kB / 451.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.207e-05/0.2966, allocations: 21.8 kB / 451.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007428/0.2973, allocations: 200.5 kB / 452 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.2973, allocations: 2.75 kB / 452 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2973, allocations: 0 / 452 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.2974, allocations: 7.922 kB / 452 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004163/0.2978, allocations: 265.5 kB / 452.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2978, allocations: 0 / 452.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001806/0.298, allocations: 37.22 kB / 452.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.298, allocations: 1.375 kB / 452.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.298, allocations: 5.375 kB / 452.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.298, allocations: 4 kB / 452.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/0.298, allocations: 9.359 kB / 452.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005468/0.2986, allocations: 277.7 kB / 452.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.2987, allocations: 110.5 kB / 452.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.171e-05/0.2988, allocations: 7.984 kB / 452.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.299, allocations: 16.23 kB / 452.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.783e-05/0.299, allocations: 16.05 kB / 452.7 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.299, allocations: 2.75 kB / 452.7 MB, free: 11.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002317/0.2993, allocations: 202.7 kB / 452.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2993, allocations: 0 / 452.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004889/0.2998, allocations: 80.36 kB / 453 MB, free: 11.66 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (12): * Single equations (assignments): 12 * 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 Backend phase and start with SimCode phase: time 0.002393/0.3022, allocations: 1.115 MB / 454.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005318/0.3027, allocations: 146.6 kB / 454.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.3027, allocations: 4.25 kB / 454.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002239/0.303, allocations: 77.55 kB / 454.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005005/0.3035, allocations: 65.5 kB / 454.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003806/0.3073, allocations: 2.371 MB / 456.8 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004235/0.3077, allocations: 0.7455 MB / 457.5 MB, free: 8.039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001671/0.3079, allocations: 31.81 kB / 457.5 MB, free: 8.027 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.3081, allocations: 64.84 kB / 457.6 MB, free: 7.977 MB / 334.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3081, allocations: 0 / 457.6 MB, free: 7.977 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03199/0.3401, allocations: 6.35 MB / 464 MB, free: 3.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.291/8.631, allocations: 8.438 kB / 464 MB, free: 3.945 MB / 334.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 OpenHydraulics_OpenHydraulics_DevelopmentTests_VariableRestrictionTestSimple.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.pipe 2>&1)