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.001241/0.001241, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.00141/0.00141, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.476/1.476, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05083/0.05083, allocations: 11.84 MB / 282.2 MB, free: 9.457 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.0005559/0.0005562, allocations: 12 kB / 343 MB, free: 22.37 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1013, allocations: 50.22 MB / 393.2 MB, free: 4.098 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ShuttleValveTest): time 0.003302/0.1046, allocations: 2.854 MB / 396.1 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002642/0.1073, allocations: 1.925 MB / 398 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.1075, allocations: 4 kB / 398 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002358/0.1077, allocations: 55.59 kB / 398.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003349/0.1081, allocations: 162.6 kB / 398.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006602/0.1087, allocations: 287.1 kB / 398.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002684/0.109, allocations: 282.4 kB / 398.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.1092, allocations: 73.83 kB / 398.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.1093, allocations: 95.64 kB / 399 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.1095, allocations: 103.5 kB / 399.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.806e-05/0.1095, allocations: 12 kB / 399.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002995/0.1099, allocations: 167.8 kB / 399.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.658e-05/0.1099, allocations: 39.78 kB / 399.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.038e-05/0.11, allocations: 77.58 kB / 399.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003006/0.1103, allocations: 247.4 kB / 399.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1103, allocations: 0 / 399.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1103, allocations: 0 / 399.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.1103, allocations: 0 / 399.6 MB, free: 13.71 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.0007412/0.1111, allocations: 0.5217 MB / 400.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.1111, allocations: 12.03 kB / 400.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.531e-05/0.1112, allocations: 50.55 kB / 400.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.85e-05/0.1112, allocations: 27.62 kB / 400.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.1115, allocations: 262.5 kB / 400.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.1116, allocations: 8 kB / 400.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.199e-05/0.1116, allocations: 16 kB / 400.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004087/0.112, allocations: 215.9 kB / 400.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.112, allocations: 3.938 kB / 400.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.1121, allocations: 8 kB / 400.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.1121, allocations: 4 kB / 400.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003136/0.1124, allocations: 167.7 kB / 400.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.1137, allocations: 1.228 MB / 402.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003376/0.114, allocations: 110.6 kB / 402.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.1142, allocations: 48.83 kB / 402.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.792e-05/0.1142, allocations: 85.11 kB / 402.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.1143, allocations: 42.45 kB / 402.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.423e-06/0.1143, allocations: 0 / 402.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.002022/0.1163, allocations: 0.6299 MB / 403 MB, free: 9.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.1164, allocations: 51.41 kB / 403.1 MB, free: 9.906 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.0003134/0.1167, allocations: 262.6 kB / 403.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.1167, allocations: 25.7 kB / 403.3 MB, free: 9.605 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.1168, allocations: 163.9 kB / 403.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.478e-05/0.1169, allocations: 39.47 kB / 403.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.024e-05/0.1169, allocations: 0 / 403.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.117, allocations: 330.8 kB / 403.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/0.1172, allocations: 79.95 kB / 403.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/0.1174, allocations: 112.2 kB / 404 MB, free: 8.867 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001953/0.1176, allocations: 83.91 kB / 404.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1176, allocations: 0 / 404.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004745/0.1181, allocations: 249.3 kB / 404.4 MB, free: 8.535 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.1181, allocations: 4 kB / 404.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.1181, allocations: 4.312 kB / 404.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1182, allocations: 3.938 kB / 404.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001993/0.1184, allocations: 55.95 kB / 404.4 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.1184, allocations: 4 kB / 404.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001459/0.1185, allocations: 15.98 kB / 404.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.1186, allocations: 15.98 kB / 404.5 MB, free: 8.434 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.1187, allocations: 133.8 kB / 404.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/0.1188, allocations: 31.67 kB / 404.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004799/0.1192, allocations: 207.3 kB / 404.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.1193, allocations: 4 kB / 404.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1193, allocations: 0 / 404.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1193, allocations: 3.984 kB / 404.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002783/0.1196, allocations: 281.5 kB / 405.1 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1196, allocations: 0 / 405.1 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.1197, allocations: 39.91 kB / 405.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.1198, allocations: 4 kB / 405.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.1198, allocations: 7.953 kB / 405.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1198, allocations: 3.938 kB / 405.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1198, allocations: 3.938 kB / 405.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004802/0.1203, allocations: 295.2 kB / 405.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.793e-05/0.1204, allocations: 112.8 kB / 405.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.578e-05/0.1204, allocations: 4 kB / 405.6 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.1206, allocations: 27.88 kB / 405.6 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.778e-05/0.1206, allocations: 7.984 kB / 405.6 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.1207, allocations: 12 kB / 405.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001526/0.1208, allocations: 182 kB / 405.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1208, allocations: 0 / 405.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003721/0.1212, allocations: 84 kB / 405.9 MB, free: 6.922 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008548/0.1221, allocations: 0.8878 MB / 406.8 MB, free: 6.008 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004195/0.1225, allocations: 175.8 kB / 406.9 MB, free: 5.836 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1225, allocations: 7.938 kB / 407 MB, free: 5.828 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.1227, allocations: 84.14 kB / 407 MB, free: 5.746 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004381/0.1231, allocations: 76.39 kB / 407.1 MB, free: 5.676 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00237/0.1255, allocations: 1.41 MB / 408.5 MB, free: 4.207 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003319/0.1259, allocations: 0.7478 MB / 409.3 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001466/0.126, allocations: 33.92 kB / 409.3 MB, free: 3.398 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.1262, allocations: 71.41 kB / 409.4 MB, free: 3.328 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1262, allocations: 0 / 409.4 MB, free: 3.328 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01782/0.144, allocations: 5.686 MB / 415.1 MB, free: 13.71 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/0.1442, allocations: 185.8 kB / 415.2 MB, free: 13.47 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/1.89, allocations: 0 / 415.2 MB, free: 13.47 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/linux/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) Environment - environmentSimulation: