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.001567/0.001567, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.227/1.227, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05499/0.05499, allocations: 11.84 MB / 281.6 MB, free: 9.461 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.001533/0.001534, allocations: 79.42 kB / 341.9 MB, free: 21.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07333/0.07488, allocations: 49.23 MB / 391.2 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ShuttleValveTest): time 0.003603/0.07851, allocations: 2.593 MB / 393.8 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00259/0.08113, allocations: 1.978 MB / 395.7 MB, free: 28 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001861/0.08133, allocations: 4 kB / 395.7 MB, free: 24 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002922/0.08165, allocations: 51.67 kB / 395.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000285/0.08194, allocations: 111 kB / 395.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008113/0.08277, allocations: 386.7 kB / 396.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003237/0.0831, allocations: 302.2 kB / 396.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.08328, allocations: 94.25 kB / 396.7 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.08346, allocations: 111.5 kB / 396.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.08364, allocations: 119.5 kB / 396.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.609e-05/0.08368, allocations: 19.98 kB / 396.9 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003372/0.08402, allocations: 187.8 kB / 397.1 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.313e-05/0.08408, allocations: 39.8 kB / 397.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001396/0.08422, allocations: 135.3 kB / 397.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004846/0.08471, allocations: 359 kB / 397.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.08473, allocations: 0 / 397.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.08474, allocations: 0 / 397.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.08476, allocations: 0 / 397.6 MB, free: 14.14 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.000842/0.0856, allocations: 0.5568 MB / 398.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.08565, allocations: 15.89 kB / 398.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.307e-05/0.08572, allocations: 46.73 kB / 398.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.991e-05/0.0858, allocations: 28.66 kB / 398.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003327/0.08614, allocations: 259.6 kB / 398.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.08617, allocations: 24.25 kB / 398.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.717e-05/0.08621, allocations: 15.94 kB / 398.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004067/0.08663, allocations: 211.9 kB / 398.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.08665, allocations: 0 / 398.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.487e-05/0.08668, allocations: 12 kB / 398.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.0867, allocations: 11.97 kB / 398.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003554/0.08706, allocations: 155.9 kB / 398.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001539/0.08861, allocations: 1.212 MB / 400.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003825/0.08901, allocations: 110.5 kB / 400.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.08914, allocations: 40.84 kB / 400.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.82e-05/0.08924, allocations: 89.09 kB / 400.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/0.08927, allocations: 42.66 kB / 400.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.282e-06/0.08928, allocations: 0 / 400.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.002232/0.09151, allocations: 0.516 MB / 400.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.09156, allocations: 55.34 kB / 401 MB, free: 10.43 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.0003644/0.09193, allocations: 258.7 kB / 401.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.09196, allocations: 33.7 kB / 401.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.09208, allocations: 160 kB / 401.4 MB, free: 9.969 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.042e-05/0.09213, allocations: 43.39 kB / 401.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.931e-05/0.0922, allocations: 37.61 kB / 401.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.09233, allocations: 338.8 kB / 401.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.09253, allocations: 59.95 kB / 401.9 MB, free: 9.484 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.09275, allocations: 114.7 kB / 402 MB, free: 9.359 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003744/0.09313, allocations: 164.2 kB / 402.2 MB, free: 9.184 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.09314, allocations: 0 / 402.2 MB, free: 9.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005012/0.09365, allocations: 229.1 kB / 402.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.09367, allocations: 8 kB / 402.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.09368, allocations: 0 / 402.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.0937, allocations: 8.125 kB / 402.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002017/0.09391, allocations: 39.97 kB / 402.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.09393, allocations: 0 / 402.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/0.09408, allocations: 11.98 kB / 402.5 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.09411, allocations: 15.98 kB / 402.5 MB, free: 8.871 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 0.0001072/0.09422, allocations: 133.7 kB / 402.6 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.965e-05/0.09428, allocations: 23.72 kB / 402.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000484/0.09477, allocations: 199.3 kB / 402.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-06/0.09478, allocations: 0 / 402.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.09479, allocations: 0 / 402.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.0948, allocations: 0 / 402.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003033/0.09511, allocations: 289.4 kB / 403.1 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.09512, allocations: 0 / 403.1 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.09529, allocations: 35.97 kB / 403.1 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.0953, allocations: 7.938 kB / 403.2 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.09532, allocations: 0 / 403.2 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.09533, allocations: 0 / 403.2 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.09533, allocations: 0 / 403.2 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004599/0.09579, allocations: 287.1 kB / 403.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.519e-05/0.0959, allocations: 108.9 kB / 403.5 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.639e-05/0.09594, allocations: 0 / 403.5 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.09611, allocations: 19.98 kB / 403.6 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.09616, allocations: 11.92 kB / 403.6 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.09618, allocations: 4 kB / 403.6 MB, free: 7.676 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001715/0.09636, allocations: 190 kB / 403.8 MB, free: 7.488 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09636, allocations: 0 / 403.8 MB, free: 7.488 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003556/0.09672, allocations: 80 kB / 403.8 MB, free: 7.41 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.0008785/0.09761, allocations: 0.8838 MB / 404.7 MB, free: 6.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004515/0.09808, allocations: 163.8 kB / 404.9 MB, free: 6.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.09809, allocations: 0 / 404.9 MB, free: 6.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001892/0.09828, allocations: 76.14 kB / 405 MB, free: 6.266 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/0.09868, allocations: 52.47 kB / 405 MB, free: 6.215 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003139/0.1018, allocations: 2.428 MB / 407.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.1021, allocations: 0.7439 MB / 408.2 MB, free: 2.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000132/0.1023, allocations: 34.62 kB / 408.2 MB, free: 2.875 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.1024, allocations: 75.39 kB / 408.3 MB, free: 2.801 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1024, allocations: 8 kB / 408.3 MB, free: 2.793 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02292/0.1253, allocations: 6.115 MB / 414.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.679/7.804, allocations: 11.36 kB / 414.4 MB, free: 12.68 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)