Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 107.8 kB / 19.71 MB, free: 2.145 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001963/0.001963, allocations: 212 kB / 23 MB, free: 4.969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.703/1.703, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.48/3.48, allocations: 0.49 GB / 0.7959 GB, free: 35.54 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002231/0.002231, allocations: 69.44 kB / 1.155 GB, free: 25.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4588/0.461, allocations: 176.1 MB / 1.327 GB, free: 0.9805 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03686/0.4979, allocations: 27.45 MB / 1.354 GB, free: 5.434 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.01555/0.5134, allocations: 7.405 MB / 1.361 GB, free: 14.01 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002143/0.5156, allocations: 47.56 kB / 1.361 GB, free: 13.96 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001605/0.5172, allocations: 421 kB / 1.362 GB, free: 13.55 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.005337/0.5225, allocations: 1.429 MB / 1.363 GB, free: 12.12 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.003882/0.5264, allocations: 1.16 MB / 1.364 GB, free: 10.97 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.00564/0.5321, allocations: 3.529 MB / 1.368 GB, free: 7.426 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002393/0.5344, allocations: 1.17 MB / 1.369 GB, free: 6.234 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003824/0.5383, allocations: 1.808 MB / 1.37 GB, free: 4.422 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003859/0.5421, allocations: 1.69 MB / 1.372 GB, free: 2.727 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0007133/0.5428, allocations: 127.9 kB / 1.372 GB, free: 2.602 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002823/0.5457, allocations: 0.8697 MB / 1.373 GB, free: 1.73 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.000572/0.5462, allocations: 406.7 kB / 1.373 GB, free: 1.332 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.5474, allocations: 0.6458 MB / 1.374 GB, free: 0.6836 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.003678/0.5511, allocations: 2.169 MB / 1.376 GB, free: 14.5 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.5511, allocations: 0 / 1.376 GB, free: 14.5 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.505e-06/0.5511, allocations: 0 / 1.376 GB, free: 14.5 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.328e-05/0.5511, allocations: 0 / 1.376 GB, free: 14.5 MB / 1.076 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.003737/0.5549, allocations: 1.61 MB / 1.378 GB, free: 12.86 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/0.5549, allocations: 12.03 kB / 1.378 GB, free: 12.85 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005316/0.5555, allocations: 156.1 kB / 1.378 GB, free: 12.7 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00213/0.5576, allocations: 0.8429 MB / 1.379 GB, free: 11.83 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.044e-05/0.5577, allocations: 81.31 kB / 1.379 GB, free: 11.75 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002405/0.5579, allocations: 123.9 kB / 1.379 GB, free: 11.63 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.5592, allocations: 0.6318 MB / 1.38 GB, free: 10.97 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.5593, allocations: 3.938 kB / 1.38 GB, free: 10.96 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.03e-05/0.5593, allocations: 24 kB / 1.38 GB, free: 10.94 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.5594, allocations: 20 kB / 1.38 GB, free: 10.92 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001105/0.5605, allocations: 460.8 kB / 1.38 GB, free: 10.47 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00527/0.5657, allocations: 2.206 MB / 1.382 GB, free: 8.203 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006981/0.5664, allocations: 297.2 kB / 1.383 GB, free: 7.906 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003141/0.5667, allocations: 133.3 kB / 1.383 GB, free: 7.773 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001943/0.5669, allocations: 40.25 kB / 1.383 GB, free: 7.734 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.567, allocations: 30.84 kB / 1.383 GB, free: 7.695 MB / 1.076 GB Notification: Performance of pre-optimization done (n=33): time 3.677e-06/0.567, allocations: 0 / 1.383 GB, free: 7.695 MB / 1.076 GB Notification: Performance of matching and sorting (n=33): time 0.001584/0.5686, allocations: 0.5335 MB / 1.383 GB, free: 7.156 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.5686, allocations: 51.41 kB / 1.383 GB, free: 7.094 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.5697, allocations: 0.791 MB / 1.384 GB, free: 6.277 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0001446/0.5699, allocations: 53.7 kB / 1.384 GB, free: 6.219 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005655/0.5704, allocations: 499.3 kB / 1.385 GB, free: 5.727 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.5706, allocations: 122.9 kB / 1.385 GB, free: 5.605 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004962/0.5711, allocations: 283.1 kB / 1.385 GB, free: 5.324 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0002098/0.5713, allocations: 330 kB / 1.385 GB, free: 4.996 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004495/0.5717, allocations: 189.4 kB / 1.385 GB, free: 4.805 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00368/0.5754, allocations: 4.024 MB / 1.389 GB, free: 15.72 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009481/0.5763, allocations: 454.1 kB / 1.39 GB, free: 15.25 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.5763, allocations: 192 / 1.39 GB, free: 15.25 MB / 1.092 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00161/0.578, allocations: 0.6452 MB / 1.39 GB, free: 14.6 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.578, allocations: 5.875 kB / 1.39 GB, free: 14.59 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.578, allocations: 4 kB / 1.39 GB, free: 14.59 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.007e-05/0.578, allocations: 4 kB / 1.39 GB, free: 14.59 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/0.5795, allocations: 227.9 kB / 1.391 GB, free: 14.36 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002264/0.5818, allocations: 2.958 MB / 1.394 GB, free: 11.29 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003549/0.5853, allocations: 0.6874 MB / 1.394 GB, free: 10.6 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.441e-05/0.5854, allocations: 23.98 kB / 1.394 GB, free: 10.58 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008532/0.5863, allocations: 361.3 kB / 1.395 GB, free: 10.22 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003908/0.5902, allocations: 4.039 MB / 1.399 GB, free: 5.105 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009063/0.5911, allocations: 452.5 kB / 1.399 GB, free: 4.617 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.577e-06/0.5911, allocations: 0 / 1.399 GB, free: 4.617 MB / 1.092 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.00182/0.5929, allocations: 0.6359 MB / 1.4 GB, free: 3.973 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 3.726e-05/0.5929, allocations: 12.25 kB / 1.4 GB, free: 3.961 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.593, allocations: 4 kB / 1.4 GB, free: 3.957 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.593, allocations: 8 kB / 1.4 GB, free: 3.949 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007646/0.5937, allocations: 155.8 kB / 1.4 GB, free: 3.797 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.5937, allocations: 4 kB / 1.4 GB, free: 3.793 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004578/0.5983, allocations: 0.9652 MB / 1.401 GB, free: 2.828 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.149e-05/0.5984, allocations: 31.97 kB / 1.401 GB, free: 2.797 MB / 1.092 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 (71): * Single equations (assignments): 66 * 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.0004341/0.5988, allocations: 245.1 kB / 1.401 GB, free: 2.551 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002694/0.5991, allocations: 87.38 kB / 1.401 GB, free: 2.465 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001377/0.6005, allocations: 0.5073 MB / 1.402 GB, free: 1.941 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.6005, allocations: 0 / 1.402 GB, free: 1.941 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.6005, allocations: 4 kB / 1.402 GB, free: 1.938 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003457/0.6008, allocations: 127.2 kB / 1.402 GB, free: 1.812 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.687e-05/0.6009, allocations: 4 kB / 1.402 GB, free: 1.809 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004108/0.6013, allocations: 32.14 kB / 1.402 GB, free: 1.777 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.827e-05/0.6014, allocations: 24.28 kB / 1.402 GB, free: 1.754 MB / 1.092 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001357/0.6028, allocations: 0.5491 MB / 1.402 GB, free: 1.184 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001381/0.6042, allocations: 0.8179 MB / 1.403 GB, free: 356 kB / 1.092 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003576/0.6045, allocations: 152.9 kB / 1.403 GB, free: 204 kB / 1.092 GB Notification: Performance of sorting global known variables: time 0.0007901/0.6053, allocations: 0.5189 MB / 1.404 GB, free: 15.67 MB / 1.107 GB Notification: Performance of Backend: time 1.062e-06/0.6053, allocations: 4 kB / 1.404 GB, free: 15.66 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.003873/0.6092, allocations: 0.9649 MB / 1.405 GB, free: 14.7 MB / 1.107 GB Notification: Performance of SimCode: time 0.003999/0.6132, allocations: 2.112 MB / 1.407 GB, free: 12.54 MB / 1.107 GB Notification: Performance of Templates: time 0.05021/0.6634, allocations: 28.86 MB / 1.435 GB, free: 348 kB / 1.123 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.243155550997471]