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.006041/0.006041, allocations: 103.5 kB / 15.73 MB, free: 6.043 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.001358/0.001358, allocations: 201.2 kB / 16.68 MB, free: 5.98 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.358/1.358, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05428/0.05428, allocations: 11.84 MB / 281.8 MB, free: 9.348 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.001714/0.001714, allocations: 68.47 kB / 391.8 MB, free: 3.996 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2651, allocations: 49.22 MB / 441.1 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple): time 0.003891/0.2691, allocations: 2.419 MB / 443.5 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00294/0.272, allocations: 2.118 MB / 445.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002512/0.2724, allocations: 2.375 kB / 445.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003813/0.2728, allocations: 82.08 kB / 445.7 MB, free: 0.9492 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.0004409/0.2732, allocations: 116.6 kB / 445.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001175/0.2744, allocations: 413 kB / 446.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003899/0.2748, allocations: 251.2 kB / 446.4 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.275, allocations: 51.72 kB / 446.5 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.2752, allocations: 95.56 kB / 446.6 MB, free: 492 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.2754, allocations: 106.9 kB / 446.7 MB, free: 440 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.83e-05/0.2754, allocations: 11.12 kB / 446.7 MB, free: 440 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004545/0.2759, allocations: 199.1 kB / 446.9 MB, free: 392 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.089e-05/0.276, allocations: 50.42 kB / 446.9 MB, free: 360 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.2761, allocations: 95.97 kB / 447 MB, free: 300 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007437/0.2769, allocations: 358.9 kB / 447.4 MB, free: 152 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.2769, allocations: 0.5625 kB / 447.4 MB, free: 152 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2769, allocations: 0 / 447.4 MB, free: 152 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.2769, allocations: 1.125 kB / 447.4 MB, free: 152 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.001133/0.2781, allocations: 0.55 MB / 447.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.2781, allocations: 13.83 kB / 448 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.445e-05/0.2782, allocations: 49.58 kB / 448 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.72e-05/0.2783, allocations: 24.81 kB / 448 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000419/0.2787, allocations: 265.9 kB / 448.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.2787, allocations: 9.531 kB / 448.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.689e-05/0.2788, allocations: 15.88 kB / 448.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003919/0.2792, allocations: 147.2 kB / 448.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.2792, allocations: 1.188 kB / 448.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.2792, allocations: 5.094 kB / 448.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.2792, allocations: 8.125 kB / 448.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000377/0.2796, allocations: 152.9 kB / 448.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.2807, allocations: 0.7957 MB / 449.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002485/0.281, allocations: 102 kB / 449.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.2812, allocations: 55.31 kB / 449.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.276e-05/0.2813, allocations: 86.16 kB / 449.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.2813, allocations: 32.03 kB / 449.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 2.805e-06/0.2813, allocations: 3.984 kB / 449.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.001493/0.2828, allocations: 411 kB / 450.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.2829, allocations: 58.06 kB / 450.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002842/0.2831, allocations: 290.5 kB / 450.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.2832, allocations: 29.7 kB / 450.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.2833, allocations: 151.1 kB / 450.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.167e-05/0.2833, allocations: 32.97 kB / 450.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.583e-05/0.2834, allocations: 33.95 kB / 450.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.2835, allocations: 331.3 kB / 451 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.2837, allocations: 64.17 kB / 451.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.284, allocations: 92.42 kB / 451.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003997/0.2844, allocations: 158.7 kB / 451.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.2844, allocations: 0 / 451.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005308/0.2849, allocations: 216.1 kB / 451.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.2849, allocations: 10.61 kB / 451.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.285, allocations: 1.312 kB / 451.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.285, allocations: 1.438 kB / 451.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002344/0.2852, allocations: 41.22 kB / 451.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.2852, allocations: 3 kB / 451.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.2854, allocations: 20.45 kB / 451.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/0.2854, allocations: 9.094 kB / 451.6 MB, free: 12.77 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.0001322/0.2856, allocations: 139.2 kB / 451.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.741e-05/0.2856, allocations: 16.97 kB / 451.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005595/0.2862, allocations: 209.8 kB / 452 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2862, allocations: 1.375 kB / 452 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.2862, allocations: 1.375 kB / 452 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.2862, allocations: 3.938 kB / 452 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003039/0.2865, allocations: 265.5 kB / 452.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.2865, allocations: 3.984 kB / 452.2 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001704/0.2867, allocations: 28.73 kB / 452.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-05/0.2867, allocations: 3.984 kB / 452.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.2868, allocations: 1.375 kB / 452.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.2868, allocations: 9.375 kB / 452.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2868, allocations: 3.938 kB / 452.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005001/0.2873, allocations: 279 kB / 452.5 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.2874, allocations: 109.4 kB / 452.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.076e-05/0.2874, allocations: 5.375 kB / 452.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.2876, allocations: 16.23 kB / 452.7 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.347e-05/0.2877, allocations: 15.98 kB / 452.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.2877, allocations: 2.75 kB / 452.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002079/0.2879, allocations: 210.7 kB / 452.9 MB, free: 11.72 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2879, allocations: 0 / 452.9 MB, free: 11.72 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000413/0.2883, allocations: 72.5 kB / 453 MB, free: 11.71 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.001615/0.2899, allocations: 1.115 MB / 454.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00051/0.2905, allocations: 146.3 kB / 454.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2905, allocations: 5.062 kB / 454.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002161/0.2907, allocations: 72.36 kB / 454.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004546/0.2912, allocations: 62.53 kB / 454.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003261/0.2944, allocations: 2.375 MB / 456.7 MB, free: 8.824 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.2947, allocations: 0.742 MB / 457.5 MB, free: 8.094 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001399/0.2949, allocations: 31.89 kB / 457.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.295, allocations: 64.44 kB / 457.6 MB, free: 8.031 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.295, allocations: 0 / 457.6 MB, free: 8.031 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02487/0.3199, allocations: 6.421 MB / 464 MB, free: 3.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.609/7.929, allocations: 12.38 kB / 464 MB, free: 3.941 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_VariableRestrictionTestSimple_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_VariableRestrictionTestSimple.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.pipe 2>&1)