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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00155/0.00155, allocations: 100.1 kB / 15.88 MB, free: 12 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.002013/0.002013, allocations: 200.6 kB / 16.79 MB, free: 6.809 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.462/1.462, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.386/2.386, allocations: 390.2 MB / 0.6649 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 59.91 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7228/0.7243, allocations: 140.4 MB / 0.9496 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002252/0.7266, allocations: 0.7721 MB / 0.9503 GB, free: 8.512 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001492/0.7281, allocations: 1.293 MB / 0.9516 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.094e-05/0.7282, allocations: 5.25 kB / 0.9516 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.692e-05/0.7282, allocations: 3.938 kB / 0.9516 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.906e-05/0.7283, allocations: 17.88 kB / 0.9516 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007481/0.7291, allocations: 282.6 kB / 0.9519 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002962/0.7294, allocations: 231.9 kB / 0.9521 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.837e-05/0.7295, allocations: 14.41 kB / 0.9521 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.7297, allocations: 87.58 kB / 0.9522 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.7298, allocations: 71.48 kB / 0.9523 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.64e-05/0.7298, allocations: 13.22 kB / 0.9523 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.73, allocations: 26.72 kB / 0.9523 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.286e-05/0.73, allocations: 21.78 kB / 0.9523 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.7301, allocations: 71.05 kB / 0.9524 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001823/0.7303, allocations: 152.2 kB / 0.9526 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.7303, allocations: 5.375 kB / 0.9526 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.01e-07/0.7303, allocations: 0 / 0.9526 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.7303, allocations: 0 / 0.9526 GB, free: 6.875 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.0005476/0.7309, allocations: 0.4907 MB / 0.953 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.7309, allocations: 8.625 kB / 0.953 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.59e-05/0.731, allocations: 15.2 kB / 0.9531 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.552e-05/0.7311, allocations: 171.6 kB / 0.9532 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/0.7312, allocations: 7.156 kB / 0.9532 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.237e-05/0.7312, allocations: 13.44 kB / 0.9532 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.7313, allocations: 59.8 kB / 0.9533 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-06/0.7314, allocations: 7.875 kB / 0.9533 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.7314, allocations: 5.234 kB / 0.9533 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.7314, allocations: 1.062 kB / 0.9533 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.503e-05/0.7315, allocations: 31.2 kB / 0.9533 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004851/0.7319, allocations: 414.1 kB / 0.9537 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.483e-05/0.732, allocations: 35.38 kB / 0.9538 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.703e-05/0.7321, allocations: 17.67 kB / 0.9538 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.514e-06/0.7321, allocations: 3.938 kB / 0.9538 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002026/0.7323, allocations: 97.28 kB / 0.9539 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.7323, allocations: 0 / 0.9539 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003064/0.7326, allocations: 138 kB / 0.954 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.504e-05/0.7326, allocations: 54.66 kB / 0.9541 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.167e-05/0.7327, allocations: 141.7 kB / 0.9542 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/0.7328, allocations: 35.27 kB / 0.9542 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.421e-05/0.7329, allocations: 99.39 kB / 0.9543 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.975e-05/0.7329, allocations: 19.92 kB / 0.9544 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.733, allocations: 66.39 kB / 0.9544 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.664e-05/0.7331, allocations: 325.4 kB / 0.9547 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002075/0.7333, allocations: 89.02 kB / 0.9548 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.7335, allocations: 137.6 kB / 0.9549 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.7338, allocations: 237 kB / 0.9552 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.7338, allocations: 4.938 kB / 0.9552 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005807/0.7344, allocations: 373.1 kB / 0.9555 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.804e-05/0.7344, allocations: 102 kB / 0.9556 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.7344, allocations: 2.062 kB / 0.9556 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.7345, allocations: 2.875 kB / 0.9556 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.393e-05/0.7345, allocations: 2.906 kB / 0.9556 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.7345, allocations: 6.062 kB / 0.9556 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000519/0.735, allocations: 89.05 kB / 0.9557 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.864e-05/0.7351, allocations: 20.14 kB / 0.9557 GB, free: 4.008 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 9.738e-05/0.7352, allocations: 138.3 kB / 0.9559 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.774e-05/0.7352, allocations: 7.5 kB / 0.9559 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.7e-05/0.7353, allocations: 9.812 kB / 0.9559 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.7353, allocations: 5.422 kB / 0.9559 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.7353, allocations: 1.406 kB / 0.9559 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.7353, allocations: 3.984 kB / 0.9559 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001083/0.7354, allocations: 192.9 kB / 0.9561 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-06/0.7354, allocations: 1.312 kB / 0.9561 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.146e-05/0.7354, allocations: 1.562 kB / 0.9561 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.7354, allocations: 1.438 kB / 0.9561 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.7354, allocations: 13.33 kB / 0.9561 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.7354, allocations: 0 / 0.9561 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.7355, allocations: 0 / 0.9561 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001642/0.7356, allocations: 136.8 kB / 0.9562 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.497e-05/0.7357, allocations: 87.66 kB / 0.9563 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/0.7357, allocations: 1.219 kB / 0.9563 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.469e-05/0.7357, allocations: 4 kB / 0.9563 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.667e-05/0.7358, allocations: 12.83 kB / 0.9563 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.809e-06/0.7358, allocations: 7.812 kB / 0.9563 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.732e-05/0.7358, allocations: 99.45 kB / 0.9564 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7358, allocations: 0 / 0.9564 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002797/0.7361, allocations: 42.12 kB / 0.9565 GB, free: 3.312 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.0001417/0.7363, allocations: 112.8 kB / 0.9566 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004191/0.7367, allocations: 366.6 kB / 0.9569 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.7367, allocations: 1.531 kB / 0.9569 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.149e-05/0.7368, allocations: 44.8 kB / 0.957 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.7371, allocations: 22.89 kB / 0.957 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003888/0.7375, allocations: 242.9 kB / 0.9572 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001143/0.7376, allocations: 0.6929 MB / 0.9579 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.617e-05/0.7376, allocations: 19.05 kB / 0.9579 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of SimCode: time 5.71e-07/0.7376, allocations: 0 / 0.9579 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of Templates: time 0.004057/0.7417, allocations: 1.877 MB / 0.9598 GB, free: 0.9805 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/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