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.001094/0.001094, allocations: 106.9 kB / 16.27 MB, free: 6.414 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.001175/0.001176, allocations: 189.3 kB / 17.2 MB, free: 5.953 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.419/1.419, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.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.269/2.269, allocations: 390.3 MB / 0.6653 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001287, allocations: 63.48 kB / 0.8132 GB, free: 33.02 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2462, allocations: 140.4 MB / 0.9503 GB, free: 8.879 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001994/0.2482, allocations: 0.6983 MB / 0.951 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001494/0.2497, allocations: 1.255 MB / 0.9522 GB, free: 6.902 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.837e-05/0.2498, allocations: 8 kB / 0.9522 GB, free: 6.895 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.426e-05/0.2499, allocations: 3.938 kB / 0.9522 GB, free: 6.891 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.728e-05/0.25, allocations: 19.78 kB / 0.9522 GB, free: 6.871 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008544/0.2508, allocations: 298.4 kB / 0.9525 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003092/0.2512, allocations: 283.5 kB / 0.9528 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.2513, allocations: 16.17 kB / 0.9528 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.2514, allocations: 95.86 kB / 0.9529 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.2516, allocations: 87.75 kB / 0.953 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.855e-05/0.2516, allocations: 23.94 kB / 0.953 GB, free: 6.086 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.2517, allocations: 43.92 kB / 0.953 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.363e-05/0.2518, allocations: 11.94 kB / 0.953 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.2519, allocations: 83.8 kB / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002616/0.2521, allocations: 215.7 kB / 0.9533 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2522, allocations: 0 / 0.9533 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2522, allocations: 0 / 0.9533 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.828e-06/0.2522, allocations: 0 / 0.9533 GB, free: 5.738 MB / 0.7325 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.0005692/0.2528, allocations: 496.3 kB / 0.9538 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.2528, allocations: 12.03 kB / 0.9538 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.028e-05/0.2529, allocations: 16.84 kB / 0.9538 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.253, allocations: 172.3 kB / 0.954 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.2531, allocations: 8.375 kB / 0.954 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.911e-05/0.2531, allocations: 16.38 kB / 0.954 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.2532, allocations: 58.22 kB / 0.9541 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.2532, allocations: 3.938 kB / 0.9541 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.2532, allocations: 3.938 kB / 0.9541 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.2533, allocations: 4 kB / 0.9541 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.75e-05/0.2533, allocations: 23.98 kB / 0.9541 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005049/0.2538, allocations: 424.4 kB / 0.9545 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 5.857e-05/0.2539, allocations: 30.56 kB / 0.9545 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.39e-05/0.2539, allocations: 20.8 kB / 0.9546 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 8.667e-06/0.254, allocations: 0 / 0.9546 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001739/0.2541, allocations: 107.3 kB / 0.9547 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/0.2541, allocations: 0 / 0.9547 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0002957/0.2544, allocations: 137.5 kB / 0.9548 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.2545, allocations: 51.41 kB / 0.9548 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.456e-05/0.2546, allocations: 132.2 kB / 0.955 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.966e-05/0.2546, allocations: 34.08 kB / 0.955 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.844e-05/0.2547, allocations: 104.1 kB / 0.9551 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.174e-05/0.2547, allocations: 15.81 kB / 0.9551 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.2549, allocations: 69.67 kB / 0.9552 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.082e-05/0.255, allocations: 334.6 kB / 0.9555 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001862/0.2552, allocations: 87.94 kB / 0.9556 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.2554, allocations: 130 kB / 0.9557 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002579/0.2556, allocations: 237.9 kB / 0.9559 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.2556, allocations: 4 kB / 0.9559 GB, free: 2.77 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000569/0.2562, allocations: 378.4 kB / 0.9563 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.379e-05/0.2563, allocations: 105.1 kB / 0.9564 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.2563, allocations: 4 kB / 0.9564 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.2563, allocations: 0 / 0.9564 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.211e-05/0.2563, allocations: 4 kB / 0.9564 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.2564, allocations: 4 kB / 0.9564 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005288/0.2569, allocations: 87.92 kB / 0.9565 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-05/0.2569, allocations: 19.98 kB / 0.9565 GB, free: 2.137 MB / 0.7325 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.0001052/0.257, allocations: 135.7 kB / 0.9567 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.704e-05/0.2571, allocations: 7.906 kB / 0.9567 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.836e-05/0.2571, allocations: 12.36 kB / 0.9567 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.2571, allocations: 4 kB / 0.9567 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.2571, allocations: 0 / 0.9567 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.2571, allocations: 4 kB / 0.9567 GB, free: 1.969 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001267/0.2573, allocations: 185.6 kB / 0.9569 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2573, allocations: 0 / 0.9569 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.342e-05/0.2573, allocations: 3.984 kB / 0.9569 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.2573, allocations: 4 kB / 0.9569 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.2573, allocations: 3.938 kB / 0.9569 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.614e-06/0.2573, allocations: 0 / 0.9569 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2573, allocations: 3.938 kB / 0.9569 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000172/0.2575, allocations: 148.9 kB / 0.957 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.479e-05/0.2575, allocations: 88.95 kB / 0.9571 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.821e-05/0.2576, allocations: 8.031 kB / 0.9571 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.29e-05/0.2576, allocations: 3.938 kB / 0.9571 GB, free: 1.441 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.533e-05/0.2576, allocations: 11.98 kB / 0.9571 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.2576, allocations: 4 kB / 0.9571 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.346e-05/0.2577, allocations: 99.27 kB / 0.9572 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2577, allocations: 0 / 0.9572 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002568/0.258, allocations: 43.98 kB / 0.9573 GB, free: 1.285 MB / 0.7325 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.0001451/0.2581, allocations: 107.2 kB / 0.9574 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004363/0.2586, allocations: 365.9 kB / 0.9577 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2586, allocations: 0 / 0.9577 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.101e-05/0.2587, allocations: 47.92 kB / 0.9578 GB, free: 0.7266 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.2589, allocations: 37.28 kB / 0.9578 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003979/0.2593, allocations: 220.7 kB / 0.958 GB, free: 456 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.2596, allocations: 0.7 MB / 0.9587 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.584e-05/0.2596, allocations: 19.44 kB / 0.9587 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of SimCode: time 3.11e-07/0.2596, allocations: 0 / 0.9587 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of Templates: time 0.003611/0.2632, allocations: 1.873 MB / 0.9605 GB, free: 13.84 MB / 0.7481 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/jenkins1/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