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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 113.5 kB / 17.08 MB, free: 5.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001874/0.001874, allocations: 193.2 kB / 20.03 MB, free: 3.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 222.9 MB / 245.7 MB, free: 4.219 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.911/2.911, allocations: 489.3 MB / 0.7687 GB, free: 3.82 MB / 0.6075 GB " [Timeout remaining time 176] 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=2500,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=2500,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 67.88 kB / 1.103 GB, free: 0.8203 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9777/0.9797, allocations: 163.8 MB / 1.263 GB, free: 8 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03317/1.013, allocations: 29.67 MB / 1.292 GB, free: 2.742 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01344/1.026, allocations: 8.014 MB / 1.299 GB, free: 13.06 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001862/1.028, allocations: 32.44 kB / 1.299 GB, free: 13.05 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001527/1.03, allocations: 423.9 kB / 1.3 GB, free: 12.79 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.004914/1.035, allocations: 1.357 MB / 1.301 GB, free: 12 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.003649/1.038, allocations: 1.132 MB / 1.302 GB, free: 11.45 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.00572/1.044, allocations: 3.497 MB / 1.306 GB, free: 10.04 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002618/1.047, allocations: 1.323 MB / 1.307 GB, free: 9.598 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004155/1.051, allocations: 1.714 MB / 1.309 GB, free: 8.996 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003971/1.055, allocations: 1.591 MB / 1.31 GB, free: 8.496 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0007545/1.056, allocations: 123.9 kB / 1.31 GB, free: 8.496 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003112/1.059, allocations: 1.014 MB / 1.311 GB, free: 8.207 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0006757/1.06, allocations: 404.3 kB / 1.312 GB, free: 8.004 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.001677/1.061, allocations: 0.7345 MB / 1.312 GB, free: 7.621 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.00433/1.066, allocations: 2.19 MB / 1.315 GB, free: 6.898 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/1.066, allocations: 0 / 1.315 GB, free: 6.898 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.603e-06/1.066, allocations: 3.938 kB / 1.315 GB, free: 6.895 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.973e-05/1.066, allocations: 1.312 kB / 1.315 GB, free: 6.895 MB / 1.029 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.004092/1.07, allocations: 1.681 MB / 1.316 GB, free: 5.82 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/1.07, allocations: 9.656 kB / 1.316 GB, free: 5.82 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004818/1.07, allocations: 151.9 kB / 1.316 GB, free: 5.754 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002096/1.072, allocations: 0.9185 MB / 1.317 GB, free: 5.246 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.722e-05/1.073, allocations: 79.88 kB / 1.317 GB, free: 5.219 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002114/1.073, allocations: 116.9 kB / 1.317 GB, free: 5.191 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/1.074, allocations: 0.6376 MB / 1.318 GB, free: 4.898 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/1.074, allocations: 1.547 kB / 1.318 GB, free: 4.898 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.502e-05/1.074, allocations: 20.97 kB / 1.318 GB, free: 4.883 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/1.074, allocations: 15.12 kB / 1.318 GB, free: 4.883 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009578/1.075, allocations: 467.5 kB / 1.319 GB, free: 4.734 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005352/1.08, allocations: 2.867 MB / 1.321 GB, free: 2.91 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000679/1.081, allocations: 310.8 kB / 1.322 GB, free: 2.789 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003124/1.082, allocations: 144.2 kB / 1.322 GB, free: 2.738 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003554/1.082, allocations: 343.9 kB / 1.322 GB, free: 2.355 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/1.082, allocations: 37.45 kB / 1.322 GB, free: 2.312 MB / 1.029 GB Notification: Performance of pre-optimization done (n=33): time 2.384e-06/1.082, allocations: 0 / 1.322 GB, free: 2.312 MB / 1.029 GB Notification: Performance of matching and sorting (n=33): time 0.001556/1.084, allocations: 0.5317 MB / 1.323 GB, free: 2.105 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/1.084, allocations: 54.69 kB / 1.323 GB, free: 2.043 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/1.085, allocations: 0.8756 MB / 1.324 GB, free: 1.676 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0002214/1.085, allocations: 55.11 kB / 1.324 GB, free: 1.633 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005488/1.086, allocations: 492.9 kB / 1.324 GB, free: 1.254 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/1.086, allocations: 122.2 kB / 1.324 GB, free: 1.156 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005039/1.086, allocations: 285.8 kB / 1.324 GB, free: 1.066 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001712/1.086, allocations: 338.3 kB / 1.325 GB, free: 0.7422 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004592/1.087, allocations: 193.6 kB / 1.325 GB, free: 0.6719 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001736/1.089, allocations: 1.151 MB / 1.326 GB, free: 15.57 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009025/1.09, allocations: 457.7 kB / 1.327 GB, free: 15.34 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/1.09, allocations: 1.062 kB / 1.327 GB, free: 15.34 MB / 1.045 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001598/1.091, allocations: 0.6531 MB / 1.327 GB, free: 15.08 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/1.091, allocations: 10.33 kB / 1.327 GB, free: 15.07 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/1.091, allocations: 2.406 kB / 1.327 GB, free: 15.07 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/1.091, allocations: 4.938 kB / 1.327 GB, free: 15.07 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/1.093, allocations: 230.6 kB / 1.327 GB, free: 15.05 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002132/1.095, allocations: 2.966 MB / 1.33 GB, free: 12.07 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004049/1.099, allocations: 0.7016 MB / 1.331 GB, free: 11.98 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00018/1.099, allocations: 26.95 kB / 1.331 GB, free: 11.97 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001068/1.1, allocations: 366.7 kB / 1.331 GB, free: 11.79 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001689/1.102, allocations: 1.155 MB / 1.332 GB, free: 10.66 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008763/1.103, allocations: 456.8 kB / 1.333 GB, free: 10.41 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.617e-06/1.103, allocations: 5.312 kB / 1.333 GB, free: 10.4 MB / 1.045 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.00189/1.105, allocations: 0.6588 MB / 1.334 GB, free: 10.14 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/1.105, allocations: 13.19 kB / 1.334 GB, free: 10.14 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/1.105, allocations: 3.469 kB / 1.334 GB, free: 10.14 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/1.105, allocations: 6.5 kB / 1.334 GB, free: 10.14 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000698/1.106, allocations: 161.8 kB / 1.334 GB, free: 10.12 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/1.106, allocations: 5.859 kB / 1.334 GB, free: 10.12 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005021/1.111, allocations: 0.9574 MB / 1.335 GB, free: 10.04 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001567/1.111, allocations: 26.44 kB / 1.335 GB, free: 10.04 MB / 1.045 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.0004878/1.111, allocations: 242.1 kB / 1.335 GB, free: 9.82 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003596/1.112, allocations: 97.59 kB / 1.335 GB, free: 9.766 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001303/1.113, allocations: 0.5155 MB / 1.336 GB, free: 9.535 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/1.113, allocations: 4.734 kB / 1.336 GB, free: 9.535 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/1.113, allocations: 0 / 1.336 GB, free: 9.535 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/1.113, allocations: 5.875 kB / 1.336 GB, free: 9.531 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00233/1.115, allocations: 1.241 MB / 1.337 GB, free: 8.867 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.922e-06/1.115, allocations: 0 / 1.337 GB, free: 8.867 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005521/1.116, allocations: 115.9 kB / 1.337 GB, free: 8.855 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/1.116, allocations: 9.312 kB / 1.337 GB, free: 8.848 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/1.116, allocations: 15.28 kB / 1.337 GB, free: 8.84 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001881/1.118, allocations: 2.937 MB / 1.34 GB, free: 5.875 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/1.118, allocations: 1.438 kB / 1.34 GB, free: 5.875 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/1.119, allocations: 0.5721 MB / 1.34 GB, free: 5.535 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000403/1.119, allocations: 212.8 kB / 1.341 GB, free: 5.363 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/1.12, allocations: 15.38 kB / 1.341 GB, free: 5.352 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004487/1.12, allocations: 27.31 kB / 1.341 GB, free: 5.348 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.39e-05/1.12, allocations: 33.48 kB / 1.341 GB, free: 5.336 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.195e-05/1.12, allocations: 13.06 kB / 1.341 GB, free: 5.336 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0008864/1.121, allocations: 0.5863 MB / 1.341 GB, free: 5.086 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.6e-07/1.121, allocations: 0 / 1.341 GB, free: 5.086 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.001987/1.123, allocations: 0.5385 MB / 1.342 GB, free: 4.973 MB / 1.045 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.0008723/1.124, allocations: 334.3 kB / 1.342 GB, free: 4.793 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.003008/1.127, allocations: 0.8435 MB / 1.343 GB, free: 4.574 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/1.127, allocations: 0 / 1.343 GB, free: 4.574 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0006428/1.128, allocations: 230.8 kB / 1.343 GB, free: 4.516 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002036/1.13, allocations: 412.9 kB / 1.343 GB, free: 4.379 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002838/1.132, allocations: 1.539 MB / 1.345 GB, free: 3.531 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007773/1.133, allocations: 1.016 MB / 1.346 GB, free: 2.805 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/1.134, allocations: 80.67 kB / 1.346 GB, free: 2.793 MB / 1.045 GB Notification: Performance of SimCode: time 1.573e-06/1.134, allocations: 1.156 kB / 1.346 GB, free: 2.793 MB / 1.045 GB Notification: Performance of Templates: time 0.05126/1.185, allocations: 35.78 MB / 1.381 GB, free: 13.92 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) [Timeout 800] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_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: 15.896404162980616]