Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.TwoWayValves,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",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.0009893/0.0009894, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007405/0.007405, allocations: 170.7 kB / 16.27 MB, free: 6.652 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.253/1.253, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.482/2.482, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003159/0.0003159, allocations: 10.56 kB / 0.9029 GB, free: 36.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2304, allocations: 159.6 MB / 1.059 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02398/0.2544, allocations: 28.94 MB / 1.087 GB, free: 7.848 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.009311/0.2637, allocations: 8.126 MB / 1.095 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004715/0.2642, allocations: 23.81 kB / 1.095 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0007072/0.2649, allocations: 349.9 kB / 1.095 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0021/0.267, allocations: 1.228 MB / 1.097 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001871/0.2689, allocations: 1.038 MB / 1.098 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00331/0.2722, allocations: 4.199 MB / 1.102 GB, free: 8.867 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001116/0.2734, allocations: 1.167 MB / 1.103 GB, free: 7.684 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001632/0.275, allocations: 1.491 MB / 1.104 GB, free: 6.188 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00188/0.2769, allocations: 1.593 MB / 1.106 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002001/0.2771, allocations: 64 kB / 1.106 GB, free: 4.527 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001312/0.2784, allocations: 0.9357 MB / 1.107 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003283/0.2788, allocations: 338.7 kB / 1.107 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0006365/0.2794, allocations: 0.7053 MB / 1.108 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001753/0.2812, allocations: 2.095 MB / 1.11 GB, free: 452 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.2812, allocations: 0 / 1.11 GB, free: 452 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.022e-06/0.2812, allocations: 0 / 1.11 GB, free: 452 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.02e-05/0.2812, allocations: 0 / 1.11 GB, free: 452 kB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.001861/0.2831, allocations: 1.336 MB / 1.111 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2831, allocations: 15.97 kB / 1.111 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.63e-05/0.2832, allocations: 102.7 kB / 1.111 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002651/0.2835, allocations: 155.2 kB / 1.111 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001305/0.2848, allocations: 0.8908 MB / 1.112 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.229e-05/0.2849, allocations: 81.31 kB / 1.112 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001959/0.2851, allocations: 116 kB / 1.112 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009328/0.286, allocations: 0.6473 MB / 1.113 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.286, allocations: 8 kB / 1.113 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.322e-05/0.2861, allocations: 20 kB / 1.113 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.2861, allocations: 16 kB / 1.113 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008109/0.2869, allocations: 476.8 kB / 1.114 GB, free: 12.45 MB / 0.8731 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.003639/0.2906, allocations: 2.875 MB / 1.116 GB, free: 9.422 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005243/0.2911, allocations: 305.2 kB / 1.117 GB, free: 9.117 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002882/0.2914, allocations: 169.3 kB / 1.117 GB, free: 8.949 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002415/0.2916, allocations: 348.7 kB / 1.117 GB, free: 8.535 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/0.2917, allocations: 34.83 kB / 1.117 GB, free: 8.492 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=33): time 1.252e-06/0.2917, allocations: 0 / 1.117 GB, free: 8.492 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33): time 0.001093/0.2928, allocations: 0.5486 MB / 1.118 GB, free: 7.938 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.2928, allocations: 59.39 kB / 1.118 GB, free: 7.867 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000894/0.2937, allocations: 0.9074 MB / 1.119 GB, free: 6.941 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001175/0.2938, allocations: 61.64 kB / 1.119 GB, free: 6.875 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003984/0.2942, allocations: 0.5262 MB / 1.119 GB, free: 6.34 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 8.068e-05/0.2943, allocations: 122.3 kB / 1.119 GB, free: 6.219 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.439e-05/0.2944, allocations: 61.69 kB / 1.119 GB, free: 6.152 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.432e-05/0.2945, allocations: 334.1 kB / 1.12 GB, free: 5.82 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003727/0.2949, allocations: 193.1 kB / 1.12 GB, free: 5.633 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/0.296, allocations: 1.151 MB / 1.121 GB, free: 4.113 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007506/0.2968, allocations: 471.4 kB / 1.122 GB, free: 3.625 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.2968, allocations: 0 / 1.122 GB, free: 3.625 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001134/0.298, allocations: 0.6657 MB / 1.122 GB, free: 2.953 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 7.363e-05/0.298, allocations: 152.2 kB / 1.122 GB, free: 2.773 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.2981, allocations: 0 / 1.122 GB, free: 2.773 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.2981, allocations: 8 kB / 1.122 GB, free: 2.766 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.2994, allocations: 235.7 kB / 1.123 GB, free: 2.535 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.3007, allocations: 2.958 MB / 1.125 GB, free: 15.46 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003039/0.3038, allocations: 0.761 MB / 1.126 GB, free: 14.7 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5e-05/0.3038, allocations: 27.98 kB / 1.126 GB, free: 14.67 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 6.813e-06/0.3038, allocations: 4 kB / 1.126 GB, free: 14.67 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008837/0.3047, allocations: 0.4972 MB / 1.127 GB, free: 14.17 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.956e-06/0.3047, allocations: 0 / 1.127 GB, free: 14.17 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.302e-06/0.3048, allocations: 8 kB / 1.127 GB, free: 14.16 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006089/0.3054, allocations: 159.8 kB / 1.127 GB, free: 14.01 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.3054, allocations: 16.11 kB / 1.127 GB, free: 13.99 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002921/0.3083, allocations: 0.73 MB / 1.128 GB, free: 13.26 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.393e-05/0.3084, allocations: 31.98 kB / 1.128 GB, free: 13.23 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003359/0.3087, allocations: 329.9 kB / 1.128 GB, free: 12.89 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.3088, allocations: 94.78 kB / 1.128 GB, free: 12.8 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009634/0.3098, allocations: 0.5206 MB / 1.129 GB, free: 12.28 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/0.3098, allocations: 11.97 kB / 1.129 GB, free: 12.27 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.3098, allocations: 0 / 1.129 GB, free: 12.27 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3098, allocations: 0 / 1.129 GB, free: 12.27 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001678/0.3115, allocations: 1.276 MB / 1.13 GB, free: 10.92 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.3115, allocations: 4 kB / 1.13 GB, free: 10.92 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000464/0.312, allocations: 123.8 kB / 1.13 GB, free: 10.8 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.312, allocations: 4 kB / 1.13 GB, free: 10.79 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.312, allocations: 8 kB / 1.13 GB, free: 10.79 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001184/0.3132, allocations: 2.946 MB / 1.133 GB, free: 7.723 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3132, allocations: 0 / 1.133 GB, free: 7.723 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007721/0.314, allocations: 0.5854 MB / 1.133 GB, free: 7.109 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002332/0.3143, allocations: 223.7 kB / 1.134 GB, free: 6.871 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.702e-05/0.3144, allocations: 8 kB / 1.134 GB, free: 6.863 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000506/0.3149, allocations: 63.84 kB / 1.134 GB, free: 6.801 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.114e-05/0.3149, allocations: 39.83 kB / 1.134 GB, free: 6.762 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.315, allocations: 16 kB / 1.134 GB, free: 6.746 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0006315/0.3156, allocations: 0.6045 MB / 1.134 GB, free: 6.133 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3156, allocations: 0 / 1.134 GB, free: 6.133 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001097/0.3167, allocations: 0.5422 MB / 1.135 GB, free: 5.59 MB / 0.8887 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001484/0.3182, allocations: 1.348 MB / 1.136 GB, free: 4.215 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002145/0.3204, allocations: 0.8554 MB / 1.137 GB, free: 3.363 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3204, allocations: 0 / 1.137 GB, free: 3.363 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0005285/0.3209, allocations: 243.7 kB / 1.137 GB, free: 3.125 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002407/0.3233, allocations: 485.2 kB / 1.138 GB, free: 2.652 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008775/0.3321, allocations: 7.276 MB / 1.145 GB, free: 11.08 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005068/0.3326, allocations: 1.029 MB / 1.146 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.000764/0.3334, allocations: 214.9 kB / 1.146 GB, free: 9.805 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004095/0.3338, allocations: 371.3 kB / 1.146 GB, free: 9.441 MB / 0.9044 GB Notification: Performance of SimCode: time 2.6e-07/0.3338, allocations: 0 / 1.146 GB, free: 9.441 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.637/1.971, allocations: 32.5 MB / 1.178 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003277/1.971, allocations: 281.9 kB / 1.178 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.649/4.62, allocations: 3.938 kB / 1.178 GB, free: 9.199 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches