Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001696/0.001697, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.569/1.569, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.515/2.515, allocations: 390.2 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 67.89 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7879/0.7893, allocations: 140.3 MB / 0.9496 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002252/0.7916, allocations: 0.7118 MB / 0.9503 GB, free: 8.602 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001649/0.7933, allocations: 1.258 MB / 0.9515 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.62e-05/0.7934, allocations: 0 / 0.9515 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.213e-05/0.7934, allocations: 9.156 kB / 0.9515 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.437e-05/0.7935, allocations: 21.02 kB / 0.9515 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008321/0.7943, allocations: 311.2 kB / 0.9518 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003946/0.7948, allocations: 274.9 kB / 0.9521 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.7949, allocations: 11.75 kB / 0.9521 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001817/0.7951, allocations: 104 kB / 0.9522 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/0.7953, allocations: 74.98 kB / 0.9523 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.51e-05/0.7953, allocations: 22.06 kB / 0.9523 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.7955, allocations: 37.48 kB / 0.9523 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.573e-05/0.7955, allocations: 20.73 kB / 0.9524 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001409/0.7957, allocations: 82.86 kB / 0.9524 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003212/0.796, allocations: 219.7 kB / 0.9526 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.796, allocations: 0 / 0.9526 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.994e-06/0.796, allocations: 0 / 0.9526 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.796, allocations: 0 / 0.9526 GB, free: 6.844 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005792/0.7966, allocations: 493.8 kB / 0.9531 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.7967, allocations: 9.062 kB / 0.9531 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.309e-05/0.7968, allocations: 11.94 kB / 0.9531 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.7969, allocations: 176.8 kB / 0.9533 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/0.7969, allocations: 18.06 kB / 0.9533 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.837e-05/0.797, allocations: 13.69 kB / 0.9533 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001269/0.7971, allocations: 59.72 kB / 0.9534 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.7971, allocations: 3.938 kB / 0.9534 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.7971, allocations: 4.984 kB / 0.9534 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.7971, allocations: 1 kB / 0.9534 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.815e-05/0.7972, allocations: 14.56 kB / 0.9534 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005005/0.7977, allocations: 419 kB / 0.9538 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.577e-05/0.7978, allocations: 35.33 kB / 0.9538 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.696e-05/0.7978, allocations: 24.59 kB / 0.9539 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.7978, allocations: 1.25 kB / 0.9539 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002059/0.798, allocations: 101 kB / 0.954 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.798, allocations: 0 / 0.954 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0002996/0.7984, allocations: 145.4 kB / 0.9541 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.7984, allocations: 54.03 kB / 0.9542 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.787e-05/0.7985, allocations: 136.8 kB / 0.9543 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/0.7985, allocations: 31.33 kB / 0.9543 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.104e-05/0.7986, allocations: 107.4 kB / 0.9544 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.7986, allocations: 15.06 kB / 0.9544 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.7988, allocations: 66.64 kB / 0.9545 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.625e-05/0.7988, allocations: 330.1 kB / 0.9548 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.799, allocations: 85.23 kB / 0.9549 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.7992, allocations: 133.1 kB / 0.955 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002515/0.7995, allocations: 236.4 kB / 0.9552 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.7995, allocations: 5.281 kB / 0.9553 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000568/0.8001, allocations: 375.2 kB / 0.9556 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.319e-05/0.8001, allocations: 100.5 kB / 0.9557 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.8002, allocations: 9.422 kB / 0.9557 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.8002, allocations: 2.969 kB / 0.9557 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.931e-05/0.8002, allocations: 6.844 kB / 0.9557 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.8002, allocations: 2.938 kB / 0.9557 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005357/0.8008, allocations: 82.39 kB / 0.9558 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.286e-05/0.8008, allocations: 26.14 kB / 0.9558 GB, free: 3.973 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.8009, allocations: 124.8 kB / 0.956 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.717e-05/0.801, allocations: 9.125 kB / 0.956 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.988e-05/0.801, allocations: 9.812 kB / 0.956 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.801, allocations: 1.062 kB / 0.956 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.801, allocations: 1.156 kB / 0.956 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.801, allocations: 7.922 kB / 0.956 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.8011, allocations: 197.9 kB / 0.9562 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.8012, allocations: 4 kB / 0.9562 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-05/0.8012, allocations: 2.812 kB / 0.9562 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.8012, allocations: 3.984 kB / 0.9562 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.8012, allocations: 5.484 kB / 0.9562 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.8012, allocations: 5.469 kB / 0.9562 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.8012, allocations: 0 / 0.9562 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001606/0.8014, allocations: 141.3 kB / 0.9563 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.405e-05/0.8014, allocations: 88.56 kB / 0.9564 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.8014, allocations: 0 / 0.9564 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.126e-05/0.8014, allocations: 4 kB / 0.9564 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.8015, allocations: 11.58 kB / 0.9564 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.014e-06/0.8015, allocations: 3.844 kB / 0.9564 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.518e-05/0.8015, allocations: 96.92 kB / 0.9565 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8015, allocations: 0 / 0.9565 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002599/0.8018, allocations: 44.28 kB / 0.9566 GB, free: 3.285 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001405/0.802, allocations: 109 kB / 0.9567 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003951/0.8024, allocations: 372.4 kB / 0.957 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.8024, allocations: 0 / 0.957 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.098e-05/0.8024, allocations: 39.73 kB / 0.9571 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.8027, allocations: 31.2 kB / 0.9571 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003537/0.8031, allocations: 194.5 kB / 0.9573 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000127/0.8032, allocations: 0.6957 MB / 0.958 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.377e-05/0.8032, allocations: 10.23 kB / 0.958 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.135e-05/0.8033, allocations: 11.84 kB / 0.958 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8033, allocations: 5.188 kB / 0.958 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of Templates: time 0.005398/0.8087, allocations: 2.628 MB / 0.9605 GB, free: 0.6289 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches