Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",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.00729/0.00729, allocations: 97.67 kB / 15.73 MB, free: 5.988 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.002193/0.002193, allocations: 192.3 kB / 16.67 MB, free: 5.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.612/2.612, allocations: 482.6 MB / 0.755 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 67.89 kB / 1.083 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2729, allocations: 162.3 MB / 1.242 GB, free: 9.82 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.4982/0.7711, allocations: 15.47 MB / 1.257 GB, free: 7.148 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.004732/0.7758, allocations: 4.3 MB / 1.261 GB, free: 5.137 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003316/0.7762, allocations: 16.97 kB / 1.261 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0007049/0.7769, allocations: 263.3 kB / 1.261 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001153/0.7781, allocations: 0.5969 MB / 1.262 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001493/0.7796, allocations: 0.7182 MB / 1.263 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0009429/0.7805, allocations: 1.008 MB / 1.264 GB, free: 4.004 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003775/0.7809, allocations: 340.3 kB / 1.264 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006106/0.7815, allocations: 464.8 kB / 1.264 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003281/0.7819, allocations: 306 kB / 1.265 GB, free: 3.523 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.637e-05/0.7819, allocations: 31.06 kB / 1.265 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009278/0.7829, allocations: 0.6225 MB / 1.265 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.35e-05/0.783, allocations: 99.64 kB / 1.265 GB, free: 3.27 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.7832, allocations: 225.6 kB / 1.266 GB, free: 3.133 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009435/0.7841, allocations: 0.7659 MB / 1.266 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.7841, allocations: 0.6562 kB / 1.266 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.373e-06/0.7841, allocations: 0 / 1.266 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.7841, allocations: 0.5625 kB / 1.266 GB, free: 2.844 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0009285/0.7851, allocations: 0.8444 MB / 1.267 GB, free: 2.172 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.7851, allocations: 10.12 kB / 1.267 GB, free: 2.172 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.073e-05/0.7852, allocations: 57.16 kB / 1.267 GB, free: 2.121 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.524e-05/0.7852, allocations: 53.98 kB / 1.267 GB, free: 2.094 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005075/0.7858, allocations: 429.3 kB / 1.268 GB, free: 1.777 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.7858, allocations: 22.31 kB / 1.268 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.55e-05/0.7858, allocations: 28.16 kB / 1.268 GB, free: 1.762 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.7862, allocations: 214.3 kB / 1.268 GB, free: 1.664 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.7862, allocations: 0 / 1.268 GB, free: 1.664 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.804e-05/0.7862, allocations: 6.438 kB / 1.268 GB, free: 1.66 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.7862, allocations: 3.938 kB / 1.268 GB, free: 1.66 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003294/0.7866, allocations: 171.3 kB / 1.268 GB, free: 1.609 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.7878, allocations: 0.9341 MB / 1.269 GB, free: 0.9883 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002328/0.788, allocations: 132 kB / 1.269 GB, free: 0.9297 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.7882, allocations: 68.25 kB / 1.269 GB, free: 0.9062 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001634/0.7884, allocations: 347.3 kB / 1.27 GB, free: 0.5156 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.093e-05/0.7884, allocations: 36.16 kB / 1.27 GB, free: 484 kB / 0.9981 GB Notification: Performance of pre-optimization done (n=14): time 1.132e-06/0.7884, allocations: 0 / 1.27 GB, free: 484 kB / 0.9981 GB Notification: Performance of matching and sorting (n=14): time 0.0005219/0.7889, allocations: 238.4 kB / 1.27 GB, free: 384 kB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.699e-05/0.7889, allocations: 53.7 kB / 1.27 GB, free: 320 kB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003922/0.7893, allocations: 461.1 kB / 1.27 GB, free: 112 kB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.7894, allocations: 37.55 kB / 1.27 GB, free: 72 kB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.7895, allocations: 231.5 kB / 1.271 GB, free: 15.88 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.692e-05/0.7896, allocations: 46.78 kB / 1.271 GB, free: 15.84 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.967e-05/0.7897, allocations: 68.08 kB / 1.271 GB, free: 15.8 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.7898, allocations: 353.3 kB / 1.271 GB, free: 15.46 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.79, allocations: 76.67 kB / 1.271 GB, free: 15.43 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/0.7903, allocations: 150.3 kB / 1.271 GB, free: 15.34 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003293/0.7906, allocations: 166.5 kB / 1.272 GB, free: 15.26 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.7906, allocations: 0 / 1.272 GB, free: 15.26 MB / 1.014 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004739/0.7911, allocations: 255.9 kB / 1.272 GB, free: 15.15 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.7911, allocations: 6.812 kB / 1.272 GB, free: 15.15 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.7911, allocations: 2.266 kB / 1.272 GB, free: 15.15 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.7911, allocations: 1.188 kB / 1.272 GB, free: 15.15 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001996/0.7913, allocations: 47.84 kB / 1.272 GB, free: 15.15 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.7914, allocations: 3.797 kB / 1.272 GB, free: 15.15 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002685/0.7916, allocations: 37.88 kB / 1.272 GB, free: 15.13 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.989e-05/0.7917, allocations: 12.31 kB / 1.272 GB, free: 15.12 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002647/0.7919, allocations: 189.3 kB / 1.272 GB, free: 15.01 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002358/0.7922, allocations: 151.1 kB / 1.272 GB, free: 14.9 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003109/0.7925, allocations: 174.9 kB / 1.272 GB, free: 14.8 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.543e-06/0.7925, allocations: 4.594 kB / 1.272 GB, free: 14.8 MB / 1.014 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0004674/0.793, allocations: 261.8 kB / 1.273 GB, free: 14.69 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 7.605e-06/0.793, allocations: 9.922 kB / 1.273 GB, free: 14.69 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-06/0.793, allocations: 0 / 1.273 GB, free: 14.69 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-06/0.793, allocations: 2.5 kB / 1.273 GB, free: 14.69 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.7932, allocations: 51.98 kB / 1.273 GB, free: 14.68 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.7932, allocations: 2.344 kB / 1.273 GB, free: 14.68 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002984/0.7935, allocations: 39.34 kB / 1.273 GB, free: 14.66 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.098e-05/0.7935, allocations: 10.02 kB / 1.273 GB, free: 14.66 MB / 1.014 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 (24): * Single equations (assignments): 24 * 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.0001091/0.7937, allocations: 201.4 kB / 1.273 GB, free: 14.46 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.629e-05/0.7937, allocations: 43.69 kB / 1.273 GB, free: 14.44 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005023/0.7942, allocations: 240.1 kB / 1.273 GB, free: 14.34 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.7943, allocations: 2.828 kB / 1.273 GB, free: 14.34 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.7943, allocations: 1.125 kB / 1.273 GB, free: 14.34 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.7943, allocations: 1.406 kB / 1.273 GB, free: 14.34 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009337/0.7952, allocations: 0.7041 MB / 1.274 GB, free: 13.86 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.7952, allocations: 2.188 kB / 1.274 GB, free: 13.86 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.7953, allocations: 33.25 kB / 1.274 GB, free: 13.85 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.7954, allocations: 128 / 1.274 GB, free: 13.85 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.7954, allocations: 11.75 kB / 1.274 GB, free: 13.84 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.7954, allocations: 7.453 kB / 1.274 GB, free: 13.84 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.7954, allocations: 1.625 kB / 1.274 GB, free: 13.84 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004526/0.7958, allocations: 342 kB / 1.274 GB, free: 13.6 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.796, allocations: 142.7 kB / 1.274 GB, free: 13.47 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.793e-05/0.796, allocations: 9.406 kB / 1.274 GB, free: 13.46 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.7962, allocations: 13.08 kB / 1.274 GB, free: 13.46 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.485e-05/0.7963, allocations: 17.95 kB / 1.274 GB, free: 13.46 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.7963, allocations: 2.922 kB / 1.274 GB, free: 13.46 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0003219/0.7966, allocations: 329 kB / 1.275 GB, free: 13.3 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7966, allocations: 0 / 1.275 GB, free: 13.3 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0005517/0.7972, allocations: 200.4 kB / 1.275 GB, free: 13.26 MB / 1.014 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.002036/0.7992, allocations: 1.26 MB / 1.276 GB, free: 12.35 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005742/0.7998, allocations: 268.8 kB / 1.276 GB, free: 12.29 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.7998, allocations: 4 kB / 1.276 GB, free: 12.28 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001733/0.8, allocations: 85.8 kB / 1.277 GB, free: 12.26 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009072/0.8009, allocations: 204.4 kB / 1.277 GB, free: 12.2 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003964/0.8049, allocations: 3.317 MB / 1.28 GB, free: 10.18 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004493/0.8054, allocations: 0.8274 MB / 1.281 GB, free: 9.465 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002789/0.8056, allocations: 82.22 kB / 1.281 GB, free: 9.449 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002063/0.8059, allocations: 138.8 kB / 1.281 GB, free: 9.352 MB / 1.014 GB Notification: Performance of SimCode: time 2.6e-07/0.8059, allocations: 0 / 1.281 GB, free: 9.352 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.965/2.771, allocations: 12.75 MB / 1.293 GB, free: 7.859 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.21/31.98, allocations: 4.781 kB / 1.293 GB, free: 7.859 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches