Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.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.ShuttleValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ShuttleValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ShuttleValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ShuttleValveTest",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.007538/0.007538, allocations: 105 kB / 15.74 MB, free: 6.445 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.001814/0.001814, allocations: 191.2 kB / 16.67 MB, free: 6.355 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.376/1.376, allocations: 205.1 MB / 222.6 MB, free: 4.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05504/0.05504, allocations: 11.84 MB / 281.7 MB, free: 9.312 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.001438/0.001438, allocations: 67.91 kB / 391.8 MB, free: 3.969 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2583, allocations: 49.22 MB / 441.1 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ShuttleValveTest): time 0.00331/0.2617, allocations: 2.608 MB / 443.7 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002236/0.2639, allocations: 1.978 MB / 445.6 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.2641, allocations: 7.75 kB / 445.7 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002288/0.2643, allocations: 68.03 kB / 445.7 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002401/0.2646, allocations: 106.2 kB / 445.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007165/0.2653, allocations: 374.1 kB / 446.2 MB, free: 0.6016 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter sine.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter sine1.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of NFFlatten.flatten: time 0.0002937/0.2656, allocations: 301.8 kB / 446.5 MB, free: 456 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.2658, allocations: 104.9 kB / 446.6 MB, free: 396 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.266, allocations: 112 kB / 446.7 MB, free: 344 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/0.2661, allocations: 123.3 kB / 446.8 MB, free: 280 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.282e-05/0.2662, allocations: 18.16 kB / 446.8 MB, free: 280 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003199/0.2665, allocations: 188 kB / 447 MB, free: 236 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.97e-05/0.2665, allocations: 45.53 kB / 447.1 MB, free: 204 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.2667, allocations: 134.4 kB / 447.2 MB, free: 124 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004888/0.2671, allocations: 352.1 kB / 447.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2672, allocations: 5.891 kB / 447.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2672, allocations: 0 / 447.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.2672, allocations: 0 / 447.5 MB, free: 15.98 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0007382/0.2679, allocations: 0.5551 MB / 448.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.268, allocations: 14.3 kB / 448.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.237e-05/0.268, allocations: 52.02 kB / 448.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.344e-05/0.2681, allocations: 25.34 kB / 448.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.2684, allocations: 261.3 kB / 448.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/0.2684, allocations: 18.91 kB / 448.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.989e-05/0.2685, allocations: 23.03 kB / 448.5 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003865/0.2689, allocations: 218.1 kB / 448.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.2689, allocations: 0 / 448.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/0.2689, allocations: 8.594 kB / 448.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.2689, allocations: 7.062 kB / 448.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003022/0.2692, allocations: 159.9 kB / 448.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.2705, allocations: 1.203 MB / 450.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003486/0.2709, allocations: 108.8 kB / 450.2 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.271, allocations: 46.34 kB / 450.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.817e-05/0.2711, allocations: 90.64 kB / 450.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.2711, allocations: 34.5 kB / 450.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.2711, allocations: 5.469 kB / 450.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.001987/0.2731, allocations: 0.5067 MB / 450.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.2732, allocations: 58.08 kB / 450.9 MB, free: 13.18 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter sine1.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter sine.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/0.2735, allocations: 258.8 kB / 451.2 MB, free: 13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.2735, allocations: 25.7 kB / 451.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.049e-05/0.2736, allocations: 161.7 kB / 451.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.184e-05/0.2736, allocations: 39.56 kB / 451.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.789e-05/0.2737, allocations: 39.45 kB / 451.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.2738, allocations: 336.3 kB / 451.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.274, allocations: 62.33 kB / 451.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.2742, allocations: 105.5 kB / 451.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000342/0.2745, allocations: 176.9 kB / 452.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.2745, allocations: 1.219 kB / 452.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004373/0.275, allocations: 222 kB / 452.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.275, allocations: 6.281 kB / 452.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.275, allocations: 5.141 kB / 452.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.275, allocations: 2.188 kB / 452.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.2752, allocations: 43.28 kB / 452.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.2753, allocations: 10.38 kB / 452.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.2754, allocations: 16.39 kB / 452.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.2754, allocations: 9.641 kB / 452.4 MB, free: 12.04 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0001068/0.2755, allocations: 139.3 kB / 452.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.711e-05/0.2756, allocations: 21.91 kB / 452.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004533/0.2761, allocations: 199 kB / 452.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.2761, allocations: 2.062 kB / 452.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2761, allocations: 3.938 kB / 452.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.2761, allocations: 0 / 452.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002744/0.2764, allocations: 280 kB / 453 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2764, allocations: 1.375 kB / 453 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.2765, allocations: 33.91 kB / 453.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.2765, allocations: 0 / 453.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.2766, allocations: 5.375 kB / 453.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.2766, allocations: 6.297 kB / 453.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2766, allocations: 0 / 453.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004183/0.277, allocations: 278.9 kB / 453.4 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.466e-05/0.2771, allocations: 111.7 kB / 453.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.2771, allocations: 5.375 kB / 453.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001548/0.2773, allocations: 10.86 kB / 453.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.235e-05/0.2774, allocations: 12.11 kB / 453.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.998e-06/0.2774, allocations: 8.062 kB / 453.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001495/0.2775, allocations: 183.6 kB / 453.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2775, allocations: 0 / 453.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003839/0.2779, allocations: 86.12 kB / 453.8 MB, free: 10.98 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 (11): * Single equations (assignments): 11 * 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.0008182/0.2787, allocations: 0.8763 MB / 454.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004149/0.2792, allocations: 164.3 kB / 454.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2792, allocations: 0 / 454.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001735/0.2794, allocations: 69.89 kB / 454.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.2798, allocations: 75.12 kB / 454.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002989/0.2828, allocations: 2.411 MB / 457.3 MB, free: 8.211 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.2831, allocations: 0.7428 MB / 458.1 MB, free: 7.484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.2832, allocations: 31.16 kB / 458.1 MB, free: 7.469 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.2833, allocations: 76.06 kB / 458.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2833, allocations: 0 / 458.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02208/0.3054, allocations: 6.288 MB / 464.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.443/7.748, allocations: 15.88 kB / 464.5 MB, free: 3.301 MB / 334.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_ShuttleValveTest_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_ShuttleValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe 2>&1)