Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Buildings.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_CheckValve",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.001066/0.001066, allocations: 91.92 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.00144/0.00144, 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 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.454/2.454, allocations: 390.4 MB / 0.6655 GB, free: 2.887 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.000349, allocations: 8 kB / 0.8149 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7411/0.7415, allocations: 142.3 MB / 0.9538 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.01895/0.7605, allocations: 19.03 MB / 0.9724 GB, free: 8.902 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.007213/0.7677, allocations: 4.647 MB / 0.977 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008119/0.7686, allocations: 15.41 kB / 0.977 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0007802/0.7694, allocations: 196.7 kB / 0.9772 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002192/0.7716, allocations: 0.6463 MB / 0.9778 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001923/0.7735, allocations: 0.6035 MB / 0.9784 GB, free: 4 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002399/0.7759, allocations: 1.551 MB / 0.9799 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005774/0.7765, allocations: 339.2 kB / 0.9802 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001014/0.7775, allocations: 0.4902 MB / 0.9807 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007046/0.7782, allocations: 426.6 kB / 0.9811 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.962e-05/0.7783, allocations: 19.72 kB / 0.9811 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001328/0.7797, allocations: 0.5287 MB / 0.9816 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.7798, allocations: 94.64 kB / 0.9817 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000181/0.78, allocations: 126.9 kB / 0.9819 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008636/0.7809, allocations: 0.5641 MB / 0.9824 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.7809, allocations: 0 / 0.9824 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.204e-06/0.7809, allocations: 0 / 0.9824 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.416e-06/0.7809, allocations: 4 kB / 0.9824 GB, free: 1.578 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001682/0.7826, allocations: 0.8376 MB / 0.9832 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.7827, allocations: 8.219 kB / 0.9832 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.497e-05/0.7828, allocations: 68.44 kB / 0.9833 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.7829, allocations: 66.58 kB / 0.9834 GB, free: 0.7773 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007287/0.7836, allocations: 430.5 kB / 0.9838 GB, free: 416 kB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.262e-05/0.7837, allocations: 23.72 kB / 0.9838 GB, free: 408 kB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.761e-05/0.7838, allocations: 35.72 kB / 0.9838 GB, free: 396 kB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006995/0.7845, allocations: 315.1 kB / 0.9841 GB, free: 212 kB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.7845, allocations: 4 kB / 0.9841 GB, free: 208 kB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.7845, allocations: 11 kB / 0.9841 GB, free: 200 kB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.7845, allocations: 6.344 kB / 0.9841 GB, free: 200 kB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006667/0.7852, allocations: 283.8 kB / 0.9844 GB, free: 72 kB / 0.7325 GB 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.002298/0.7875, allocations: 1.354 MB / 0.9857 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005542/0.7881, allocations: 272.6 kB / 0.986 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000305/0.7884, allocations: 139.8 kB / 0.9861 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005065/0.7889, allocations: 0.4963 MB / 0.9866 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.789, allocations: 36.03 kB / 0.9867 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=25): time 2.415e-06/0.789, allocations: 0 / 0.9867 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of matching and sorting (n=25): time 0.001698/0.7907, allocations: 0.5935 MB / 0.9872 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.7907, allocations: 59.36 kB / 0.9873 GB, free: 13.43 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005503/0.7913, allocations: 462.1 kB / 0.9877 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.658e-05/0.7913, allocations: 33.7 kB / 0.9878 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.7915, allocations: 244.4 kB / 0.988 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 7.433e-05/0.7916, allocations: 82.73 kB / 0.9881 GB, free: 12.6 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.956e-05/0.7917, allocations: 12 kB / 0.9881 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001669/0.7918, allocations: 354.8 kB / 0.9884 GB, free: 12.23 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003047/0.7921, allocations: 123.9 kB / 0.9885 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003578/0.7925, allocations: 185.2 kB / 0.9887 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003206/0.7928, allocations: 154.3 kB / 0.9889 GB, free: 11.77 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.7928, allocations: 3.938 kB / 0.9889 GB, free: 11.76 MB / 0.7481 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009511/0.7938, allocations: 419.4 kB / 0.9893 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.087e-05/0.7939, allocations: 109.4 kB / 0.9894 GB, free: 11.23 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.7939, allocations: 4 kB / 0.9894 GB, free: 11.22 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003269/0.7943, allocations: 60.88 kB / 0.9894 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003479/0.7946, allocations: 71.89 kB / 0.9895 GB, free: 11.09 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004749/0.7951, allocations: 0.5679 MB / 0.9901 GB, free: 10.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005253/0.7956, allocations: 63.7 kB / 0.9901 GB, free: 10.43 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.012e-05/0.7957, allocations: 16 kB / 0.9901 GB, free: 10.42 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.7957, allocations: 4 kB / 0.9901 GB, free: 10.41 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006957/0.7964, allocations: 315.6 kB / 0.9904 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.365e-06/0.7964, allocations: 4 kB / 0.9904 GB, free: 10.1 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.344e-06/0.7965, allocations: 7.953 kB / 0.9905 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003657/0.7968, allocations: 83.88 kB / 0.9905 GB, free: 10.01 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.916e-06/0.7968, allocations: 0 / 0.9905 GB, free: 10.01 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004255/0.7973, allocations: 71.64 kB / 0.9906 GB, free: 9.941 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.205e-05/0.7973, allocations: 16.12 kB / 0.9906 GB, free: 9.926 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (34): * Single equations (assignments): 33 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002733/0.7976, allocations: 240.4 kB / 0.9908 GB, free: 9.684 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.804e-05/0.7977, allocations: 51.42 kB / 0.9909 GB, free: 9.633 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009573/0.7986, allocations: 452 kB / 0.9913 GB, free: 9.176 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.7987, allocations: 11.92 kB / 0.9913 GB, free: 9.164 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.7987, allocations: 4 kB / 0.9913 GB, free: 9.16 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.7987, allocations: 0 / 0.9913 GB, free: 9.16 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001535/0.8002, allocations: 0.9704 MB / 0.9923 GB, free: 8.121 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.8002, allocations: 0 / 0.9923 GB, free: 8.121 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002241/0.8005, allocations: 56.08 kB / 0.9923 GB, free: 8.066 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001883/0.8007, allocations: 48.75 kB / 0.9924 GB, free: 8.016 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.8007, allocations: 8 kB / 0.9924 GB, free: 8.008 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003897/0.8011, allocations: 0.5485 MB / 0.9929 GB, free: 7.434 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.8011, allocations: 4.031 kB / 0.9929 GB, free: 7.43 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007862/0.8019, allocations: 0.5029 MB / 0.9934 GB, free: 6.895 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.8021, allocations: 168.3 kB / 0.9936 GB, free: 6.711 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.864e-05/0.8022, allocations: 7.938 kB / 0.9936 GB, free: 6.703 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003348/0.8025, allocations: 43.91 kB / 0.9936 GB, free: 6.66 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.201e-05/0.8026, allocations: 27.92 kB / 0.9937 GB, free: 6.633 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/0.8026, allocations: 11.98 kB / 0.9937 GB, free: 6.621 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003461/0.803, allocations: 318.9 kB / 0.994 GB, free: 6.312 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.51e-07/0.803, allocations: 4 kB / 0.994 GB, free: 6.309 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007888/0.8038, allocations: 247.5 kB / 0.9942 GB, free: 6.066 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001514/0.8053, allocations: 1.194 MB / 0.9954 GB, free: 4.84 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.00115/0.8065, allocations: 488.6 kB / 0.9959 GB, free: 4.363 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.8065, allocations: 0 / 0.9959 GB, free: 4.363 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004193/0.8069, allocations: 180 kB / 0.996 GB, free: 4.188 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/0.8084, allocations: 253.6 kB / 0.9963 GB, free: 3.941 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004618/0.8131, allocations: 2.693 MB / 0.9989 GB, free: 1.18 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004728/0.8136, allocations: 0.8591 MB / 0.9997 GB, free: 300 kB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0005366/0.8141, allocations: 116.7 kB / 0.9998 GB, free: 184 kB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000223/0.8143, allocations: 171.4 kB / 1 GB, free: 12 kB / 0.7481 GB Notification: Performance of SimCode: time 5.41e-07/0.8143, allocations: 0 / 1 GB, free: 12 kB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03225/0.8466, allocations: 14.44 MB / 1.014 GB, free: 1.914 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002359/0.8469, allocations: 259.7 kB / 1.014 GB, free: 1.574 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.097/2.944, allocations: 0 / 1.014 GB, free: 1.574 MB / 0.7637 GB (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_FixedResistances_Examples_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_FixedResistances_Examples_CheckValve.fmu > Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat does not exist to compare? outputFormat=mat