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 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: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001447/0.001446, allocations: 109.3 kB / 16.41 MB, free: 5.984 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.00157/0.00157, allocations: 194.1 kB / 17.35 MB, free: 5.574 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.531/1.531, allocations: 222.9 MB / 241.1 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.746/2.746, allocations: 472.7 MB / 0.746 GB, free: 428 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 59.91 kB / 1.07 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8962/0.8977, allocations: 159.9 MB / 1.226 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03431/0.9321, allocations: 29.82 MB / 1.255 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0127/0.9448, allocations: 8.14 MB / 1.263 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.9465, allocations: 27.81 kB / 1.263 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001405/0.9479, allocations: 448.9 kB / 1.264 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.004269/0.9522, allocations: 1.426 MB / 1.265 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.003231/0.9554, allocations: 1.148 MB / 1.266 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.004834/0.9603, allocations: 3.555 MB / 1.27 GB, free: 0.7734 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002116/0.9624, allocations: 1.326 MB / 1.271 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003181/0.9656, allocations: 1.706 MB / 1.273 GB, free: 13.72 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003545/0.9692, allocations: 1.62 MB / 1.274 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0006701/0.9699, allocations: 132 kB / 1.275 GB, free: 11.97 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00266/0.9726, allocations: 1.014 MB / 1.276 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007705/0.9734, allocations: 410.7 kB / 1.276 GB, free: 10.55 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001564/0.9749, allocations: 0.7467 MB / 1.277 GB, free: 9.801 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003565/0.9785, allocations: 2.204 MB / 1.279 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.9785, allocations: 0 / 1.279 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.987e-06/0.9785, allocations: 4 kB / 1.279 GB, free: 7.59 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.668e-05/0.9786, allocations: 3.938 kB / 1.279 GB, free: 7.586 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003436/0.982, allocations: 1.712 MB / 1.28 GB, free: 5.82 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.9821, allocations: 8.031 kB / 1.28 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005283/0.9826, allocations: 156.1 kB / 1.281 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00216/0.9848, allocations: 0.9346 MB / 1.282 GB, free: 4.668 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-05/0.9849, allocations: 81.31 kB / 1.282 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002431/0.9852, allocations: 116 kB / 1.282 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.9864, allocations: 0.6395 MB / 1.282 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.9864, allocations: 0 / 1.282 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.083e-05/0.9865, allocations: 20 kB / 1.282 GB, free: 3.789 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.9865, allocations: 16 kB / 1.282 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009627/0.9875, allocations: 472.8 kB / 1.283 GB, free: 3.312 MB / 0.9981 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.004968/0.9924, allocations: 2.872 MB / 1.286 GB, free: 288 kB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006409/0.9931, allocations: 318.4 kB / 1.286 GB, free: 15.96 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003116/0.9934, allocations: 153.9 kB / 1.286 GB, free: 15.81 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003223/0.9937, allocations: 344.6 kB / 1.286 GB, free: 15.4 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.9938, allocations: 34.84 kB / 1.286 GB, free: 15.36 MB / 1.014 GB Notification: Performance of pre-optimization done (n=33): time 2.334e-06/0.9938, allocations: 7.938 kB / 1.286 GB, free: 15.35 MB / 1.014 GB Notification: Performance of matching and sorting (n=33): time 0.001402/0.9952, allocations: 0.5296 MB / 1.287 GB, free: 14.82 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.9952, allocations: 55.41 kB / 1.287 GB, free: 14.75 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001168/0.9964, allocations: 0.9076 MB / 1.288 GB, free: 13.82 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001553/0.9966, allocations: 57.7 kB / 1.288 GB, free: 13.76 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.00046/0.997, allocations: 491.3 kB / 1.288 GB, free: 13.28 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.9972, allocations: 119 kB / 1.289 GB, free: 13.16 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004519/0.9976, allocations: 295 kB / 1.289 GB, free: 12.87 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.9978, allocations: 326.2 kB / 1.289 GB, free: 12.54 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004209/0.9982, allocations: 197.4 kB / 1.289 GB, free: 12.35 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.9996, allocations: 1.147 MB / 1.29 GB, free: 10.84 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008757/1, allocations: 463.4 kB / 1.291 GB, free: 10.36 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/1.001, allocations: 4 kB / 1.291 GB, free: 10.36 MB / 1.014 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001403/1.002, allocations: 0.6544 MB / 1.292 GB, free: 9.691 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/1.002, allocations: 8 kB / 1.292 GB, free: 9.684 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/1.002, allocations: 192 / 1.292 GB, free: 9.684 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/1.002, allocations: 8 kB / 1.292 GB, free: 9.676 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/1.003, allocations: 243.6 kB / 1.292 GB, free: 9.438 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001698/1.005, allocations: 2.954 MB / 1.295 GB, free: 6.367 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003219/1.008, allocations: 0.6989 MB / 1.295 GB, free: 5.668 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.493e-05/1.008, allocations: 27.98 kB / 1.295 GB, free: 5.641 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007816/1.009, allocations: 373.3 kB / 1.296 GB, free: 5.27 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001431/1.011, allocations: 1.154 MB / 1.297 GB, free: 3.742 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008159/1.012, allocations: 460.9 kB / 1.297 GB, free: 3.254 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.387e-06/1.012, allocations: 0 / 1.297 GB, free: 3.254 MB / 1.014 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001553/1.013, allocations: 0.6631 MB / 1.298 GB, free: 2.582 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/1.013, allocations: 9.406 kB / 1.298 GB, free: 2.574 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/1.013, allocations: 0 / 1.298 GB, free: 2.574 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/1.013, allocations: 8 kB / 1.298 GB, free: 2.566 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006945/1.014, allocations: 160.1 kB / 1.298 GB, free: 2.41 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/1.014, allocations: 11.94 kB / 1.298 GB, free: 2.398 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004298/1.018, allocations: 0.9575 MB / 1.299 GB, free: 1.438 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.215e-05/1.018, allocations: 35.86 kB / 1.299 GB, free: 1.402 MB / 1.014 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.0003033/1.019, allocations: 245.1 kB / 1.299 GB, free: 1.152 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/1.019, allocations: 99.34 kB / 1.299 GB, free: 1.055 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/1.02, allocations: 0.5087 MB / 1.3 GB, free: 0.5352 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/1.02, allocations: 3.984 kB / 1.3 GB, free: 0.5312 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/1.02, allocations: 0 / 1.3 GB, free: 0.5312 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003439/1.02, allocations: 212.3 kB / 1.3 GB, free: 312 kB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/1.021, allocations: 12 kB / 1.3 GB, free: 300 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004734/1.021, allocations: 31.95 kB / 1.3 GB, free: 268 kB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/1.021, allocations: 28.23 kB / 1.3 GB, free: 240 kB / 1.014 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001303/1.022, allocations: 0.549 MB / 1.301 GB, free: 15.66 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001349/1.024, allocations: 0.812 MB / 1.302 GB, free: 14.83 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003579/1.024, allocations: 176 kB / 1.302 GB, free: 14.66 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0008786/1.025, allocations: 0.6123 MB / 1.302 GB, free: 14.04 MB / 1.029 GB Notification: Performance of Backend: time 5e-07/1.025, allocations: 0 / 1.302 GB, free: 14.04 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00373/1.029, allocations: 1.037 MB / 1.303 GB, free: 13.02 MB / 1.029 GB Notification: Performance of SimCode: time 0.003656/1.032, allocations: 2.252 MB / 1.306 GB, free: 10.71 MB / 1.029 GB Notification: Performance of Templates: time 0.04335/1.076, allocations: 26.92 MB / 1.332 GB, free: 252 kB / 1.045 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (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 & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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