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.0009284/0.0009284, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.000919/0.0009191, allocations: 198.5 kB / 16.14 MB, free: 6.707 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.113/1.113, allocations: 205.1 MB / 222 MB, free: 5.016 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.04817/0.04817, allocations: 11.83 MB / 281.2 MB, free: 9.887 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.001339/0.001339, allocations: 79.44 kB / 341.2 MB, free: 22.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06034/0.06169, allocations: 49.22 MB / 390.5 MB, free: 5.062 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ShuttleValveTest): time 0.003462/0.06516, allocations: 3.354 MB / 393.8 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002502/0.06767, allocations: 2.134 MB / 396 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002003/0.0679, allocations: 8 kB / 396 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002086/0.06811, allocations: 39.73 kB / 396 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002249/0.06834, allocations: 99.22 kB / 396.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000592/0.06894, allocations: 301.4 kB / 396.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002503/0.0692, allocations: 286.4 kB / 396.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.06935, allocations: 90.33 kB / 396.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.0695, allocations: 107.6 kB / 396.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001258/0.06963, allocations: 111.5 kB / 397 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.022e-05/0.06967, allocations: 12 kB / 397 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002807/0.06995, allocations: 183.8 kB / 397.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.99e-05/0.07, allocations: 55.7 kB / 397.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.712e-05/0.07011, allocations: 115.4 kB / 397.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003544/0.07047, allocations: 355 kB / 397.7 MB, free: 13.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.07048, allocations: 0 / 397.7 MB, free: 13.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.1e-07/0.07048, allocations: 0 / 397.7 MB, free: 13.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.0705, allocations: 0 / 397.7 MB, free: 13.81 MB / 302.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.0005944/0.0711, allocations: 0.5567 MB / 398.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.021e-05/0.07113, allocations: 8.031 kB / 398.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.327e-05/0.07118, allocations: 54.73 kB / 398.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.235e-05/0.07124, allocations: 24.66 kB / 398.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002252/0.07147, allocations: 263.6 kB / 398.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.07149, allocations: 8.375 kB / 398.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.07152, allocations: 19.94 kB / 398.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003312/0.07185, allocations: 211.9 kB / 398.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.07188, allocations: 0 / 398.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.0719, allocations: 4 kB / 398.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.07191, allocations: 8 kB / 398.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003011/0.07221, allocations: 163.7 kB / 399 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.07338, allocations: 1.212 MB / 400.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003296/0.07372, allocations: 114.5 kB / 400.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.07384, allocations: 52.77 kB / 400.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.192e-05/0.07392, allocations: 85.11 kB / 400.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.757e-05/0.07394, allocations: 34.5 kB / 400.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.07395, allocations: 0 / 400.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.002036/0.07599, allocations: 0.5121 MB / 401 MB, free: 10.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.618e-05/0.07603, allocations: 59.34 kB / 401 MB, free: 10.11 MB / 302.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.0002549/0.07629, allocations: 258.7 kB / 401.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.07631, allocations: 25.7 kB / 401.3 MB, free: 9.812 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.26e-05/0.0764, allocations: 167.9 kB / 401.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.44e-05/0.07644, allocations: 43.45 kB / 401.5 MB, free: 9.602 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-05/0.07651, allocations: 41.59 kB / 401.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.939e-05/0.0766, allocations: 326.8 kB / 401.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.07678, allocations: 67.95 kB / 402 MB, free: 9.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.07697, allocations: 106.7 kB / 402.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.07733, allocations: 168.2 kB / 402.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.07734, allocations: 0 / 402.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004451/0.07779, allocations: 229 kB / 402.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.07781, allocations: 4.125 kB / 402.5 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.07782, allocations: 8 kB / 402.5 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.107e-06/0.07783, allocations: 3.938 kB / 402.5 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.07802, allocations: 43.97 kB / 402.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.07804, allocations: 11.92 kB / 402.5 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.07819, allocations: 15.92 kB / 402.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.49e-05/0.07821, allocations: 4 kB / 402.5 MB, free: 8.547 MB / 302.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 9.978e-05/0.07831, allocations: 141.8 kB / 402.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.254e-05/0.07836, allocations: 19.72 kB / 402.7 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004335/0.0788, allocations: 199.2 kB / 402.9 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.07881, allocations: 4 kB / 402.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.07882, allocations: 0 / 402.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.07883, allocations: 0 / 402.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.07908, allocations: 293.4 kB / 403.2 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.07909, allocations: 0 / 403.2 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001521/0.07925, allocations: 27.97 kB / 403.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.07926, allocations: 0 / 403.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.07928, allocations: 11.98 kB / 403.2 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.07928, allocations: 3.938 kB / 403.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.07929, allocations: 0 / 403.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004053/0.0797, allocations: 279.1 kB / 403.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.721e-05/0.07978, allocations: 108.9 kB / 403.6 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/0.07982, allocations: 0 / 403.6 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.07999, allocations: 15.98 kB / 403.6 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/0.08003, allocations: 7.984 kB / 403.6 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.08005, allocations: 7.984 kB / 403.6 MB, free: 7.352 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000142/0.0802, allocations: 190 kB / 403.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0802, allocations: 0 / 403.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003161/0.08052, allocations: 83.98 kB / 403.9 MB, free: 7.086 MB / 302.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.0007415/0.08127, allocations: 0.872 MB / 404.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003882/0.08167, allocations: 151.8 kB / 404.9 MB, free: 6.039 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.08168, allocations: 8.188 kB / 404.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001692/0.08186, allocations: 75.89 kB / 405 MB, free: 5.957 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.08224, allocations: 59.83 kB / 405.1 MB, free: 5.898 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002717/0.08496, allocations: 2.504 MB / 407.6 MB, free: 3.293 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.08521, allocations: 0.7365 MB / 408.3 MB, free: 2.527 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.08533, allocations: 38.86 kB / 408.3 MB, free: 2.488 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.08544, allocations: 75.41 kB / 408.4 MB, free: 2.414 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.08545, allocations: 0 / 408.4 MB, free: 2.414 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.659/4.744, allocations: 5.817 MB / 414.2 MB, free: 12.63 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001962/4.744, allocations: 200.5 kB / 414.4 MB, free: 12.38 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.989/6.733, allocations: 3.938 kB / 414.4 MB, free: 12.37 MB / 318.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)