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.007047/0.007047, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001827/0.001827, allocations: 202.2 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.38/1.38, allocations: 205.1 MB / 222.6 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05697/0.05697, allocations: 11.84 MB / 281.8 MB, free: 9.367 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.00207/0.00207, allocations: 71.88 kB / 391.8 MB, free: 3.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2577, allocations: 49.23 MB / 441.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple): time 0.003269/0.261, allocations: 2.405 MB / 443.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002418/0.2634, allocations: 2.129 MB / 445.6 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.2636, allocations: 2.438 kB / 445.6 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003299/0.2639, allocations: 77.78 kB / 445.7 MB, free: 0.9336 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.0003127/0.2643, allocations: 114 kB / 445.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008714/0.2651, allocations: 420.5 kB / 446.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002949/0.2654, allocations: 255.1 kB / 446.5 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.2656, allocations: 47.72 kB / 446.5 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.2658, allocations: 98.41 kB / 446.6 MB, free: 472 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.2659, allocations: 107 kB / 446.7 MB, free: 420 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.036e-05/0.266, allocations: 11.97 kB / 446.7 MB, free: 420 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003629/0.2663, allocations: 198.4 kB / 446.9 MB, free: 372 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.162e-05/0.2664, allocations: 46.38 kB / 447 MB, free: 344 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.014e-05/0.2665, allocations: 101.2 kB / 447 MB, free: 280 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005097/0.267, allocations: 357.4 kB / 447.4 MB, free: 136 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.267, allocations: 0.5625 kB / 447.4 MB, free: 136 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.267, allocations: 1.188 kB / 447.4 MB, free: 136 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.2671, allocations: 0 / 447.4 MB, free: 136 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.0008733/0.2679, allocations: 0.5575 MB / 448 MB, free: 15.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.268, allocations: 17.48 kB / 448 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.314e-05/0.268, allocations: 45.36 kB / 448 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.715e-05/0.2681, allocations: 25.58 kB / 448 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.2685, allocations: 265.1 kB / 448.3 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.2685, allocations: 13.88 kB / 448.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.2685, allocations: 14.41 kB / 448.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003428/0.2689, allocations: 153 kB / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.2689, allocations: 0.9062 kB / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.2689, allocations: 5.188 kB / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.2689, allocations: 3.406 kB / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003728/0.2693, allocations: 146.3 kB / 448.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.2705, allocations: 0.7962 MB / 449.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002653/0.2708, allocations: 106 kB / 449.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/0.2709, allocations: 51.5 kB / 449.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.836e-05/0.271, allocations: 86.19 kB / 449.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.2711, allocations: 39.81 kB / 449.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.2711, allocations: 0 / 449.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.001486/0.2726, allocations: 411.2 kB / 450.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.2726, allocations: 52.62 kB / 450.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.2729, allocations: 287.7 kB / 450.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.2729, allocations: 25.7 kB / 450.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.2731, allocations: 152.8 kB / 450.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.968e-05/0.2731, allocations: 43.73 kB / 450.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.756e-05/0.2732, allocations: 39.06 kB / 450.7 MB, free: 13.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.2733, allocations: 331 kB / 451 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002083/0.2736, allocations: 59.77 kB / 451.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.2738, allocations: 97.02 kB / 451.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004219/0.2742, allocations: 156.9 kB / 451.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2742, allocations: 1.062 kB / 451.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005258/0.2748, allocations: 213.6 kB / 451.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.2748, allocations: 6.156 kB / 451.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2748, allocations: 4.125 kB / 451.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.2748, allocations: 3.688 kB / 451.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002208/0.2751, allocations: 43.86 kB / 451.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.2751, allocations: 2.031 kB / 451.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.2752, allocations: 21.48 kB / 451.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.2752, allocations: 9.016 kB / 451.6 MB, free: 12.75 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.0001368/0.2754, allocations: 143 kB / 451.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.212e-05/0.2755, allocations: 26.36 kB / 451.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005579/0.276, allocations: 201.3 kB / 452 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.276, allocations: 1.375 kB / 452 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.276, allocations: 0 / 452 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.2761, allocations: 3.938 kB / 452 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003115/0.2764, allocations: 265.5 kB / 452.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2764, allocations: 0 / 452.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.2766, allocations: 32.72 kB / 452.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.2766, allocations: 1.375 kB / 452.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.2766, allocations: 5.375 kB / 452.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.2766, allocations: 5.312 kB / 452.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2766, allocations: 0 / 452.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000517/0.2771, allocations: 285.7 kB / 452.6 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.2772, allocations: 110.8 kB / 452.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.68e-05/0.2773, allocations: 5.375 kB / 452.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.2774, allocations: 10.86 kB / 452.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.443e-05/0.2775, allocations: 19.98 kB / 452.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.2775, allocations: 4.125 kB / 452.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001984/0.2777, allocations: 205.3 kB / 452.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2777, allocations: 0 / 452.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003846/0.2781, allocations: 80.36 kB / 453 MB, free: 11.68 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.002105/0.2802, allocations: 1.118 MB / 454.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000503/0.2808, allocations: 142 kB / 454.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2808, allocations: 0 / 454.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002246/0.281, allocations: 80.75 kB / 454.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004344/0.2814, allocations: 61.64 kB / 454.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00336/0.2848, allocations: 2.375 MB / 456.8 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003821/0.2852, allocations: 0.7456 MB / 457.5 MB, free: 8.066 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001271/0.2853, allocations: 27.58 kB / 457.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.2855, allocations: 67.84 kB / 457.6 MB, free: 8.004 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2855, allocations: 0.9375 kB / 457.6 MB, free: 8.004 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0292/0.3147, allocations: 6.348 MB / 464 MB, free: 3.977 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.942/8.257, allocations: 8.375 kB / 464 MB, free: 3.969 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)