Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.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.RestrictionTestSimple,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_RestrictionTestSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.RestrictionTestSimple,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_RestrictionTestSimple",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.006134/0.006134, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001279/0.001279, allocations: 198.7 kB / 16.68 MB, free: 5.926 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.361/1.361, allocations: 205.1 MB / 222.5 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.05492/0.05492, allocations: 11.84 MB / 281.7 MB, free: 9.324 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.001601/0.001601, allocations: 71.89 kB / 391.8 MB, free: 3.977 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2646, allocations: 49.22 MB / 441.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.RestrictionTestSimple): time 0.003684/0.2683, allocations: 2.087 MB / 443.2 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.2696, allocations: 0.6266 MB / 443.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/0.2698, allocations: 2 kB / 443.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.679e-05/0.27, allocations: 13.55 kB / 443.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004632/0.2704, allocations: 72.56 kB / 443.9 MB, free: 2.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000155/0.2706, allocations: 23.92 kB / 443.9 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003153/0.2709, allocations: 147.5 kB / 444 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.2711, allocations: 45.11 kB / 444.1 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001817/0.2713, allocations: 63.28 kB / 444.1 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001541/0.2714, allocations: 56.36 kB / 444.2 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.2715, allocations: 7.406 kB / 444.2 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.2716, allocations: 18.95 kB / 444.2 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.869e-05/0.2716, allocations: 21.31 kB / 444.2 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.543e-05/0.2717, allocations: 63.33 kB / 444.3 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002382/0.2719, allocations: 109.6 kB / 444.4 MB, free: 1.934 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2719, allocations: 0 / 444.4 MB, free: 1.934 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2719, allocations: 0 / 444.4 MB, free: 1.934 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.272, allocations: 1.156 kB / 444.4 MB, free: 1.934 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005876/0.2726, allocations: 453.7 kB / 444.9 MB, free: 1.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.2726, allocations: 14.02 kB / 444.9 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.038e-05/0.2727, allocations: 39.8 kB / 444.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.322e-05/0.2727, allocations: 10.12 kB / 444.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002847/0.273, allocations: 212.7 kB / 445.1 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.273, allocations: 7.922 kB / 445.1 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.764e-05/0.273, allocations: 13 kB / 445.1 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002724/0.2733, allocations: 107.2 kB / 445.2 MB, free: 1.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.2733, allocations: 0 / 445.2 MB, free: 1.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.2734, allocations: 5.062 kB / 445.3 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.2734, allocations: 2.344 kB / 445.3 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002506/0.2736, allocations: 80.39 kB / 445.3 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007137/0.2744, allocations: 0.5655 MB / 445.9 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.2746, allocations: 93.55 kB / 446 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.2747, allocations: 47.11 kB / 446 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.2748, allocations: 5.812 kB / 446 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.2748, allocations: 31.84 kB / 446.1 MB, free: 472 kB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.253e-06/0.2748, allocations: 7.938 kB / 446.1 MB, free: 464 kB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.001481/0.2763, allocations: 407.5 kB / 446.5 MB, free: 284 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.63e-05/0.2763, allocations: 79.17 kB / 446.6 MB, free: 188 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.2764, allocations: 147.6 kB / 446.7 MB, free: 68 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.2765, allocations: 26.86 kB / 446.7 MB, free: 36 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.497e-05/0.2765, allocations: 99.61 kB / 446.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.671e-05/0.2766, allocations: 33.66 kB / 446.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.408e-05/0.2766, allocations: 27.58 kB / 446.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.2768, allocations: 324.6 kB / 447.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.2769, allocations: 49.05 kB / 447.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001842/0.2771, allocations: 58.86 kB / 447.3 MB, free: 15.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003878/0.2775, allocations: 173.1 kB / 447.5 MB, free: 15.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.2775, allocations: 0 / 447.5 MB, free: 15.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004653/0.278, allocations: 184.3 kB / 447.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.878e-05/0.2781, allocations: 35.86 kB / 447.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2781, allocations: 1.844 kB / 447.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.2781, allocations: 1.031 kB / 447.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.2783, allocations: 26.42 kB / 447.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.2783, allocations: 8.438 kB / 447.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.2784, allocations: 12.7 kB / 447.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.2785, allocations: 2.891 kB / 447.7 MB, free: 15.28 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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.0001157/0.2786, allocations: 150.6 kB / 447.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.135e-05/0.2786, allocations: 13.97 kB / 447.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005561/0.2792, allocations: 209.3 kB / 448.1 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.2792, allocations: 1.156 kB / 448.1 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.2792, allocations: 0.5625 kB / 448.1 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.2792, allocations: 2.094 kB / 448.1 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002617/0.2795, allocations: 226.5 kB / 448.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.2795, allocations: 5 kB / 448.3 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.2797, allocations: 35.59 kB / 448.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.2797, allocations: 1.031 kB / 448.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.2797, allocations: 1.781 kB / 448.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.2797, allocations: 1.031 kB / 448.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2797, allocations: 1.031 kB / 448.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005021/0.2802, allocations: 292.7 kB / 448.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.344e-05/0.2803, allocations: 102 kB / 448.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.711e-05/0.2804, allocations: 5.734 kB / 448.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.2805, allocations: 18.27 kB / 448.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.449e-05/0.2806, allocations: 11.14 kB / 448.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.2806, allocations: 4.203 kB / 448.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.598e-05/0.2807, allocations: 118.1 kB / 448.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2807, allocations: 0 / 448.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002754/0.281, allocations: 34.28 kB / 448.9 MB, free: 14.34 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 1 * 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.0007906/0.2818, allocations: 0.8286 MB / 449.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004659/0.2822, allocations: 181.6 kB / 450 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2823, allocations: 1.344 kB / 450 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002192/0.2825, allocations: 119 kB / 450.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.2828, allocations: 30.73 kB / 450.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.2852, allocations: 1.805 MB / 451.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002507/0.2855, allocations: 0.7119 MB / 452.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.996e-05/0.2856, allocations: 17.05 kB / 452.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.759e-05/0.2857, allocations: 35.3 kB / 452.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2857, allocations: 0 / 452.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02147/0.3071, allocations: 3.645 MB / 456.3 MB, free: 9.125 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.391/7.698, allocations: 9.922 kB / 456.3 MB, free: 9.117 MB / 334.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_RestrictionTestSimple_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_RestrictionTestSimple.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.pipe 2>&1)