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.001429/0.001428, 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.001553/0.001553, allocations: 193.4 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.34/1.34, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05525/0.05525, allocations: 11.84 MB / 281.6 MB, free: 9.438 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.001784/0.001784, allocations: 71.56 kB / 341.9 MB, free: 21.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08886/0.09066, allocations: 49.22 MB / 391.2 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ShuttleValveTest): time 0.004559/0.09527, allocations: 2.608 MB / 393.8 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002841/0.09814, allocations: 1.974 MB / 395.7 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003148/0.09849, allocations: 4 kB / 395.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003819/0.09892, allocations: 59.41 kB / 395.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004421/0.09938, allocations: 103.1 kB / 395.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001169/0.1006, allocations: 386.8 kB / 396.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004299/0.101, allocations: 298.4 kB / 396.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.1012, allocations: 90.25 kB / 396.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000236/0.1015, allocations: 123.5 kB / 396.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001892/0.1017, allocations: 111.4 kB / 396.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.572e-05/0.1017, allocations: 23.98 kB / 396.9 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003609/0.1021, allocations: 187.8 kB / 397.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.776e-05/0.1022, allocations: 39.86 kB / 397.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001408/0.1023, allocations: 131.3 kB / 397.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000537/0.1029, allocations: 366.9 kB / 397.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1029, allocations: 4 kB / 397.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1029, allocations: 0 / 397.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.1029, allocations: 0 / 397.6 MB, free: 14.1 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.0007822/0.1037, allocations: 0.5529 MB / 398.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.1037, allocations: 11.89 kB / 398.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.558e-05/0.1038, allocations: 46.73 kB / 398.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.441e-05/0.1039, allocations: 28.66 kB / 398.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/0.1042, allocations: 259.6 kB / 398.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.1042, allocations: 16.38 kB / 398.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.865e-05/0.1043, allocations: 19.94 kB / 398.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003928/0.1047, allocations: 219.9 kB / 398.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.1047, allocations: 3.938 kB / 398.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.1047, allocations: 11.94 kB / 398.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.1047, allocations: 4 kB / 398.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003338/0.1051, allocations: 151.9 kB / 398.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.1065, allocations: 1.22 MB / 400.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000367/0.1069, allocations: 102.6 kB / 400.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.107, allocations: 48.83 kB / 400.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.577e-05/0.1071, allocations: 85.11 kB / 400.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.1071, allocations: 34.66 kB / 400.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.1072, allocations: 0 / 400.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.002188/0.1093, allocations: 0.5273 MB / 400.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.1094, allocations: 55.41 kB / 401 MB, free: 10.39 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.0003727/0.1098, allocations: 254.7 kB / 401.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.1098, allocations: 25.7 kB / 401.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.1099, allocations: 163.9 kB / 401.4 MB, free: 9.934 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.227e-05/0.11, allocations: 51.39 kB / 401.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.35e-05/0.1101, allocations: 41.59 kB / 401.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.1102, allocations: 326.8 kB / 401.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.1104, allocations: 67.95 kB / 401.9 MB, free: 9.441 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002046/0.1106, allocations: 104.9 kB / 402 MB, free: 9.324 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003718/0.111, allocations: 168.2 kB / 402.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.111, allocations: 0 / 402.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004977/0.1115, allocations: 229 kB / 402.4 MB, free: 8.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.1115, allocations: 6.5 kB / 402.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1116, allocations: 4 kB / 402.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.1116, allocations: 4.125 kB / 402.4 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/0.1118, allocations: 47.91 kB / 402.5 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.527e-06/0.1118, allocations: 7.984 kB / 402.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.112, allocations: 11.98 kB / 402.5 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.112, allocations: 8 kB / 402.5 MB, free: 8.832 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.0001142/0.1121, allocations: 133.8 kB / 402.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.301e-05/0.1122, allocations: 19.72 kB / 402.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004773/0.1127, allocations: 199.2 kB / 402.8 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.1127, allocations: 0 / 402.8 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.1127, allocations: 4 kB / 402.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.1127, allocations: 0 / 402.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002893/0.113, allocations: 281.4 kB / 403.1 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.113, allocations: 0 / 403.1 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.1132, allocations: 35.97 kB / 403.1 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.1132, allocations: 0 / 403.1 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.1132, allocations: 11.98 kB / 403.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.1132, allocations: 4 kB / 403.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1132, allocations: 0 / 403.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004453/0.1137, allocations: 291 kB / 403.4 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.248e-05/0.1138, allocations: 108.9 kB / 403.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.631e-05/0.1138, allocations: 0 / 403.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.114, allocations: 15.98 kB / 403.6 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.37e-05/0.114, allocations: 7.984 kB / 403.6 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.238e-06/0.114, allocations: 0 / 403.6 MB, free: 7.645 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001573/0.1142, allocations: 190 kB / 403.8 MB, free: 7.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1142, allocations: 0 / 403.8 MB, free: 7.457 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003904/0.1146, allocations: 91.98 kB / 403.8 MB, free: 7.367 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.0008708/0.1155, allocations: 0.8759 MB / 404.7 MB, free: 6.465 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004354/0.1159, allocations: 155.8 kB / 404.9 MB, free: 6.312 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1159, allocations: 0 / 404.9 MB, free: 6.312 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.1161, allocations: 76.14 kB / 405 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004105/0.1165, allocations: 58.05 kB / 405 MB, free: 6.184 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003286/0.1198, allocations: 2.439 MB / 407.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.1201, allocations: 0.7439 MB / 408.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.1203, allocations: 33.86 kB / 408.2 MB, free: 2.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.1204, allocations: 75.41 kB / 408.3 MB, free: 2.758 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1204, allocations: 0 / 408.3 MB, free: 2.758 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02498/0.1454, allocations: 6.116 MB / 414.4 MB, free: 12.64 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.046/7.191, allocations: 15.38 kB / 414.4 MB, free: 12.63 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 & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 OpenHydraulics_OpenHydraulics_DevelopmentTests_ShuttleValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe 2>&1)