Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2.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.CheckValveTest2,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_CheckValveTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.CheckValveTest2,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_CheckValveTest2",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.00132/0.00132, allocations: 108 kB / 15.61 MB, free: 152 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.001323/0.001323, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.278/1.278, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05477/0.05477, allocations: 11.84 MB / 281.6 MB, free: 9.426 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.001512/0.001513, allocations: 71.92 kB / 341.9 MB, free: 21.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08094/0.08246, allocations: 49.22 MB / 391.2 MB, free: 4.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.CheckValveTest2): time 0.005178/0.08768, allocations: 4.364 MB / 395.5 MB, free: 208 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003231/0.09095, allocations: 2.151 MB / 397.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003127/0.09129, allocations: 11.94 kB / 397.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004686/0.0918, allocations: 174.8 kB / 397.9 MB, free: 13.86 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0006863/0.09249, allocations: 341.7 kB / 398.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009577/0.09346, allocations: 458.9 kB / 398.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00084/0.09431, allocations: 1.015 MB / 399.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003694/0.09469, allocations: 295.8 kB / 399.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003389/0.09504, allocations: 358.7 kB / 400.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004138/0.09546, allocations: 418.2 kB / 400.7 MB, free: 11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.091e-05/0.09556, allocations: 64 kB / 400.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004414/0.09601, allocations: 263.8 kB / 401 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.09617, allocations: 187.3 kB / 401.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000323/0.0965, allocations: 414 kB / 401.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009507/0.09746, allocations: 1.036 MB / 402.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.09747, allocations: 0 / 402.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.09749, allocations: 0 / 402.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.0975, allocations: 3.938 kB / 402.6 MB, free: 9.051 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: 136 * Number of variables: 136 Notification: Performance of Generate backend data structure: time 0.001477/0.09898, allocations: 1.036 MB / 403.7 MB, free: 7.965 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.09903, allocations: 15.89 kB / 403.7 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.846e-05/0.09913, allocations: 94.7 kB / 403.8 MB, free: 7.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001763/0.09931, allocations: 87.94 kB / 403.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005572/0.09988, allocations: 0.5051 MB / 404.4 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/0.09993, allocations: 45.31 kB / 404.4 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.707e-05/0.1, allocations: 59.84 kB / 404.5 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008524/0.1009, allocations: 0.5609 MB / 405 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.1009, allocations: 3.984 kB / 405.1 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.329e-05/0.101, allocations: 20 kB / 405.1 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.101, allocations: 16 kB / 405.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008371/0.1018, allocations: 0.5205 MB / 405.6 MB, free: 5.988 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003136/0.105, allocations: 2.843 MB / 408.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006942/0.1057, allocations: 446.9 kB / 408.9 MB, free: 2.398 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/0.106, allocations: 200.8 kB / 409.1 MB, free: 2.199 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.955e-05/0.1061, allocations: 93.11 kB / 409.2 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.1061, allocations: 34.5 kB / 409.2 MB, free: 2.047 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 2.074e-06/0.1062, allocations: 0 / 409.2 MB, free: 2.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.00235/0.1085, allocations: 1.247 MB / 410.5 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.1086, allocations: 59.39 kB / 410.5 MB, free: 0.6719 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 sinusoid.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.0007124/0.1093, allocations: 0.6407 MB / 411.2 MB, free: 16 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.1093, allocations: 37.7 kB / 411.2 MB, free: 15.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002149/0.1096, allocations: 324 kB / 411.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.943e-05/0.1097, allocations: 145.8 kB / 411.6 MB, free: 15.51 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.1098, allocations: 102.1 kB / 411.7 MB, free: 15.4 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.11, allocations: 374.8 kB / 412.1 MB, free: 15.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002926/0.1103, allocations: 157 kB / 412.3 MB, free: 14.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003466/0.1106, allocations: 256.2 kB / 412.5 MB, free: 14.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002942/0.1136, allocations: 0.941 MB / 413.5 MB, free: 13.61 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.1136, allocations: 7.938 kB / 413.5 MB, free: 13.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000945/0.1145, allocations: 0.5271 MB / 414 MB, free: 13.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.1146, allocations: 8.344 kB / 414 MB, free: 13.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.1146, allocations: 8 kB / 414 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.1146, allocations: 4 kB / 414 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004716/0.1151, allocations: 119.8 kB / 414.1 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.1151, allocations: 4 kB / 414.1 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/0.1154, allocations: 16 kB / 414.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-05/0.1154, allocations: 23.98 kB / 414.2 MB, free: 12.89 MB / 318.1 MB Warning: Assuming fixed start value for the following 1 variables: j1.volumeClosed.port[2].p:VARIABLE(flow=false min = 0.0 start = j1.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 2 (checkValve1.variableRestriction.data.zetaLaminarKnown,checkValve.variableRestriction.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 58 * 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.0003703/0.1158, allocations: 246.2 kB / 414.4 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.1159, allocations: 63.16 kB / 414.5 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/0.1169, allocations: 0.5261 MB / 415 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.514e-05/0.117, allocations: 8 kB / 415 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.117, allocations: 4 kB / 415 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.117, allocations: 3.984 kB / 415 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001647/0.1187, allocations: 1.217 MB / 416.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1187, allocations: 0 / 416.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004478/0.1191, allocations: 107.9 kB / 416.3 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.1191, allocations: 4 kB / 416.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.981e-05/0.1192, allocations: 12 kB / 416.4 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.1192, allocations: 7.984 kB / 416.4 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1192, allocations: 0 / 416.4 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.1205, allocations: 0.7751 MB / 417.1 MB, free: 9.832 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002383/0.1207, allocations: 188.2 kB / 417.3 MB, free: 9.629 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.666e-05/0.1208, allocations: 12 kB / 417.3 MB, free: 9.617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/0.1211, allocations: 23.92 kB / 417.4 MB, free: 9.594 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.596e-05/0.1212, allocations: 20.41 kB / 417.4 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.788e-05/0.1212, allocations: 19.98 kB / 417.4 MB, free: 9.555 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004814/0.1217, allocations: 474.9 kB / 417.9 MB, free: 9.094 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1217, allocations: 0 / 417.9 MB, free: 9.094 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005579/0.1223, allocations: 179.9 kB / 418 MB, free: 8.918 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (circuitTank.volumeOpen.m,speed.phi,speed.w,j1.volumeClosed.port[2].p) * 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 (49): * Single equations (assignments): 49 * 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.002232/0.1245, allocations: 1.642 MB / 419.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009289/0.1254, allocations: 454.1 kB / 420.1 MB, free: 6.914 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1255, allocations: 0.6875 kB / 420.1 MB, free: 6.914 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003304/0.1258, allocations: 218.4 kB / 420.3 MB, free: 6.703 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008495/0.1266, allocations: 211.5 kB / 420.5 MB, free: 6.504 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007138/0.1338, allocations: 5.939 MB / 426.5 MB, free: 412 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.133/0.2668, allocations: 0.9323 MB / 427.4 MB, free: 40.84 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007017/0.2676, allocations: 119.1 kB / 427.5 MB, free: 40.83 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003877/0.268, allocations: 250.4 kB / 427.8 MB, free: 40.83 MB / 318.1 MB Notification: Performance of SimCode: time 1.313e-06/0.268, allocations: 0 / 427.8 MB, free: 40.83 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.038/0.306, allocations: 16.69 MB / 444.5 MB, free: 34.9 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.439/7.745, allocations: 3.938 kB / 444.5 MB, free: 34.9 MB / 318.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2_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_CheckValveTest2.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2.pipe 2>&1)