Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008915/0.0008918, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007281/0.007282, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.488/1.488, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.773/2.773, allocations: 437.8 MB / 0.7121 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003818/0.0003818, allocations: 11.98 kB / 0.8728 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7532/0.7536, allocations: 153.8 MB / 1.023 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.02187/0.7755, allocations: 18.78 MB / 1.041 GB, free: 13.05 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007801/0.7834, allocations: 5.121 MB / 1.046 GB, free: 7.918 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008664/0.7843, allocations: 15.88 kB / 1.046 GB, free: 7.902 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0008109/0.7851, allocations: 210.7 kB / 1.047 GB, free: 7.695 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.002258/0.7874, allocations: 0.7034 MB / 1.047 GB, free: 6.988 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002314/0.7897, allocations: 0.7985 MB / 1.048 GB, free: 6.195 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.00263/0.7923, allocations: 1.934 MB / 1.05 GB, free: 4.258 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008711/0.7932, allocations: 434.7 kB / 1.05 GB, free: 3.82 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001264/0.7945, allocations: 0.5678 MB / 1.051 GB, free: 3.25 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009043/0.7954, allocations: 0.5172 MB / 1.051 GB, free: 2.73 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001503/0.7956, allocations: 28 kB / 1.051 GB, free: 2.703 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001442/0.797, allocations: 0.651 MB / 1.052 GB, free: 2.051 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002383/0.7973, allocations: 135.4 kB / 1.052 GB, free: 1.918 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0005449/0.7978, allocations: 375.6 kB / 1.053 GB, free: 1.543 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001826/0.7997, allocations: 1.043 MB / 1.054 GB, free: 0.4961 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.7997, allocations: 4 kB / 1.054 GB, free: 0.4922 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.264e-06/0.7997, allocations: 0 / 1.054 GB, free: 0.4922 MB / 0.795 GB Notification: Performance of Transformations before backend: time 2.621e-05/0.7997, allocations: 0 / 1.054 GB, free: 0.4922 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002076/0.8018, allocations: 0.9891 MB / 1.055 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.8019, allocations: 12.03 kB / 1.055 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/0.8021, allocations: 91.84 kB / 1.055 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008028/0.8029, allocations: 0.4915 MB / 1.055 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.376e-05/0.8029, allocations: 37 kB / 1.055 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.371e-05/0.803, allocations: 48 kB / 1.055 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.8043, allocations: 0.6411 MB / 1.056 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.8043, allocations: 7.938 kB / 1.056 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.855e-05/0.8043, allocations: 16 kB / 1.056 GB, free: 14 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.8044, allocations: 19.98 kB / 1.056 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.8055, allocations: 0.5151 MB / 1.056 GB, free: 13.47 MB / 0.8106 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.003633/0.8092, allocations: 3.208 MB / 1.059 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007649/0.81, allocations: 363.3 kB / 1.06 GB, free: 9.707 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005221/0.8105, allocations: 244.7 kB / 1.06 GB, free: 9.465 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003554/0.8109, allocations: 348.4 kB / 1.06 GB, free: 9.051 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.8109, allocations: 42.59 kB / 1.06 GB, free: 9 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=38): time 2.044e-06/0.8109, allocations: 0 / 1.06 GB, free: 9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=38): time 0.002331/0.8132, allocations: 0.8699 MB / 1.061 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.8133, allocations: 55.41 kB / 1.061 GB, free: 8.035 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007097/0.814, allocations: 0.5823 MB / 1.062 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.88e-05/0.8141, allocations: 37.7 kB / 1.062 GB, free: 7.402 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002458/0.8143, allocations: 332.4 kB / 1.062 GB, free: 7.074 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.8144, allocations: 130 kB / 1.062 GB, free: 6.945 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.935e-05/0.8145, allocations: 65.67 kB / 1.062 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.8147, allocations: 370.8 kB / 1.063 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005465/0.8152, allocations: 229.1 kB / 1.063 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007049/0.816, allocations: 380 kB / 1.063 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.8173, allocations: 0.6017 MB / 1.064 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.8174, allocations: 0 / 1.064 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001878/0.8192, allocations: 0.7457 MB / 1.065 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002087/0.8195, allocations: 219.6 kB / 1.065 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.8195, allocations: 7.984 kB / 1.065 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007124/0.8202, allocations: 164.7 kB / 1.065 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005888/0.8208, allocations: 139.8 kB / 1.065 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006885/0.8215, allocations: 0.6186 MB / 1.066 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006896/0.8222, allocations: 107.5 kB / 1.066 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.938e-05/0.8223, allocations: 35.98 kB / 1.066 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.598e-06/0.8223, allocations: 7.938 kB / 1.066 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001375/0.8237, allocations: 0.6232 MB / 1.067 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.8237, allocations: 4 kB / 1.067 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.288e-06/0.8237, allocations: 8 kB / 1.067 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006379/0.8244, allocations: 163.8 kB / 1.067 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.8244, allocations: 7.938 kB / 1.067 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006632/0.8251, allocations: 99.78 kB / 1.067 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-05/0.8251, allocations: 24 kB / 1.067 GB, free: 2.121 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003827/0.8255, allocations: 284.8 kB / 1.067 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.8257, allocations: 67.16 kB / 1.067 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001686/0.8274, allocations: 0.6736 MB / 1.068 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.8274, allocations: 4 kB / 1.068 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.8274, allocations: 4 kB / 1.068 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.8274, allocations: 4 kB / 1.068 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00284/0.8303, allocations: 1.406 MB / 1.069 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.8303, allocations: 0 / 1.069 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003709/0.8307, allocations: 91.88 kB / 1.069 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004397/0.8311, allocations: 128.8 kB / 1.069 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.202e-05/0.8312, allocations: 20.03 kB / 1.069 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006659/0.8318, allocations: 0.6343 MB / 1.07 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.8319, allocations: 7.922 kB / 1.07 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.8334, allocations: 0.7202 MB / 1.071 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003706/0.8338, allocations: 212 kB / 1.071 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.8339, allocations: 11.98 kB / 1.071 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000554/0.8345, allocations: 51.95 kB / 1.071 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.548e-05/0.8346, allocations: 31.95 kB / 1.071 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-05/0.8347, allocations: 16 kB / 1.071 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0006263/0.8353, allocations: 403 kB / 1.072 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4.41e-07/0.8353, allocations: 0 / 1.072 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001473/0.8368, allocations: 391.3 kB / 1.072 GB, free: 12.83 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007666/0.8375, allocations: 311.5 kB / 1.072 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002223/0.8398, allocations: 0.9137 MB / 1.073 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.8398, allocations: 0 / 1.073 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007809/0.8406, allocations: 303.8 kB / 1.073 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00177/0.8424, allocations: 266.2 kB / 1.074 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002168/0.8446, allocations: 1.348 MB / 1.075 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005476/0.8451, allocations: 0.9081 MB / 1.076 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0006583/0.8458, allocations: 156.9 kB / 1.076 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001781/0.846, allocations: 63.41 kB / 1.076 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of SimCode: time 8.52e-07/0.846, allocations: 0 / 1.076 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of Templates: time 0.02358/0.8696, allocations: 12.2 MB / 1.088 GB, free: 12.48 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches