Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001399/0.001399, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.001343/0.001343, allocations: 183.9 kB / 17.19 MB, free: 5.688 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.386/1.386, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.433/2.433, allocations: 437 MB / 0.711 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 64.19 kB / 0.8699 GB, free: 2.184 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2833, allocations: 151.6 MB / 1.018 GB, free: 10.62 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002266/0.2856, allocations: 0.699 MB / 1.019 GB, free: 9.922 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00174/0.2874, allocations: 1.274 MB / 1.02 GB, free: 8.633 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.307e-05/0.2875, allocations: 0 / 1.02 GB, free: 8.633 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.979e-05/0.2876, allocations: 3.938 kB / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 9.743e-05/0.2877, allocations: 19.8 kB / 1.02 GB, free: 8.609 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009539/0.2886, allocations: 310.4 kB / 1.02 GB, free: 8.316 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003323/0.289, allocations: 263.6 kB / 1.02 GB, free: 8.059 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.2891, allocations: 28.14 kB / 1.02 GB, free: 8.027 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.2893, allocations: 103.8 kB / 1.021 GB, free: 7.926 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.2894, allocations: 67.84 kB / 1.021 GB, free: 7.859 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.887e-05/0.2895, allocations: 24 kB / 1.021 GB, free: 7.836 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.2896, allocations: 35.98 kB / 1.021 GB, free: 7.801 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.722e-05/0.2896, allocations: 11.94 kB / 1.021 GB, free: 7.789 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.2898, allocations: 95.66 kB / 1.021 GB, free: 7.695 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002735/0.29, allocations: 211.8 kB / 1.021 GB, free: 7.488 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.29, allocations: 7.984 kB / 1.021 GB, free: 7.48 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.422e-06/0.2901, allocations: 3.938 kB / 1.021 GB, free: 7.477 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.2901, allocations: 4 kB / 1.021 GB, free: 7.473 MB / 0.795 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.0006061/0.2907, allocations: 496.2 kB / 1.022 GB, free: 6.922 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.2907, allocations: 8.031 kB / 1.022 GB, free: 6.914 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.698e-05/0.2908, allocations: 16.84 kB / 1.022 GB, free: 6.898 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.291, allocations: 168.3 kB / 1.022 GB, free: 6.695 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.827e-05/0.291, allocations: 12.36 kB / 1.022 GB, free: 6.684 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.132e-05/0.291, allocations: 16.38 kB / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.2912, allocations: 54.23 kB / 1.022 GB, free: 6.609 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2912, allocations: 3.938 kB / 1.022 GB, free: 6.605 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.2912, allocations: 4 kB / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2912, allocations: 4 kB / 1.022 GB, free: 6.598 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.183e-05/0.2913, allocations: 19.92 kB / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005635/0.2918, allocations: 420.4 kB / 1.022 GB, free: 6.117 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 8.183e-05/0.2919, allocations: 34.56 kB / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.928e-05/0.292, allocations: 20.94 kB / 1.022 GB, free: 6.051 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/0.292, allocations: 0 / 1.022 GB, free: 6.051 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001925/0.2922, allocations: 103.2 kB / 1.022 GB, free: 5.938 MB / 0.795 GB Notification: Performance of pre-optimization done (n=10): time 3.497e-06/0.2922, allocations: 3.984 kB / 1.022 GB, free: 5.934 MB / 0.795 GB Notification: Performance of matching and sorting (n=10): time 0.0003119/0.2925, allocations: 137.5 kB / 1.022 GB, free: 5.793 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.2926, allocations: 59.39 kB / 1.023 GB, free: 5.723 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.2927, allocations: 131.8 kB / 1.023 GB, free: 5.586 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.041e-05/0.2928, allocations: 37.7 kB / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.559e-05/0.2928, allocations: 92.05 kB / 1.023 GB, free: 5.449 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.187e-05/0.2929, allocations: 23.86 kB / 1.023 GB, free: 5.426 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.293, allocations: 69.67 kB / 1.023 GB, free: 5.352 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.2931, allocations: 318.8 kB / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.2933, allocations: 91.94 kB / 1.023 GB, free: 4.941 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002151/0.2936, allocations: 137.9 kB / 1.023 GB, free: 4.785 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002791/0.2939, allocations: 239 kB / 1.024 GB, free: 4.512 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2939, allocations: 384 / 1.024 GB, free: 4.512 MB / 0.795 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006033/0.2945, allocations: 374.4 kB / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.381e-05/0.2946, allocations: 97.09 kB / 1.024 GB, free: 4.008 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.2946, allocations: 4 kB / 1.024 GB, free: 4.004 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.2946, allocations: 7.875 kB / 1.024 GB, free: 3.996 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.207e-05/0.2946, allocations: 4.188 kB / 1.024 GB, free: 3.992 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.2946, allocations: 8 kB / 1.024 GB, free: 3.984 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005439/0.2952, allocations: 91.73 kB / 1.024 GB, free: 3.895 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-05/0.2952, allocations: 19.98 kB / 1.024 GB, free: 3.875 MB / 0.795 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.0001244/0.2954, allocations: 136 kB / 1.024 GB, free: 3.734 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.987e-05/0.2954, allocations: 11.89 kB / 1.024 GB, free: 3.723 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.73e-05/0.2954, allocations: 8.375 kB / 1.024 GB, free: 3.715 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.2954, allocations: 4 kB / 1.024 GB, free: 3.711 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2954, allocations: 0 / 1.024 GB, free: 3.711 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.2954, allocations: 0 / 1.024 GB, free: 3.711 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.2956, allocations: 193.5 kB / 1.025 GB, free: 3.473 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/0.2956, allocations: 0 / 1.025 GB, free: 3.473 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.325e-05/0.2956, allocations: 8 kB / 1.025 GB, free: 3.465 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2956, allocations: 0 / 1.025 GB, free: 3.465 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.2956, allocations: 0 / 1.025 GB, free: 3.465 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.2957, allocations: 4 kB / 1.025 GB, free: 3.461 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.2957, allocations: 4 kB / 1.025 GB, free: 3.457 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001863/0.2959, allocations: 136.9 kB / 1.025 GB, free: 3.305 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.179e-05/0.2959, allocations: 88.95 kB / 1.025 GB, free: 3.199 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.2959, allocations: 4 kB / 1.025 GB, free: 3.195 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.348e-05/0.296, allocations: 0 / 1.025 GB, free: 3.195 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.333e-05/0.296, allocations: 11.92 kB / 1.025 GB, free: 3.184 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.296, allocations: 15.98 kB / 1.025 GB, free: 3.168 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.219e-05/0.2961, allocations: 97.38 kB / 1.025 GB, free: 3.074 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.31e-07/0.2961, allocations: 0 / 1.025 GB, free: 3.074 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002704/0.2964, allocations: 44 kB / 1.025 GB, free: 3.031 MB / 0.795 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.0001467/0.2965, allocations: 99.25 kB / 1.025 GB, free: 2.926 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004896/0.297, allocations: 382 kB / 1.025 GB, free: 2.516 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.297, allocations: 384 / 1.025 GB, free: 2.516 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 7.002e-05/0.2971, allocations: 39.98 kB / 1.025 GB, free: 2.477 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.2974, allocations: 26.09 kB / 1.025 GB, free: 2.453 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004032/0.2978, allocations: 224.6 kB / 1.026 GB, free: 2.199 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.298, allocations: 0.6924 MB / 1.026 GB, free: 1.48 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.795e-05/0.2981, allocations: 15.44 kB / 1.026 GB, free: 1.465 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.2981, allocations: 3.938 kB / 1.026 GB, free: 1.461 MB / 0.795 GB Notification: Performance of Templates: time 0.003682/0.3018, allocations: 1.879 MB / 1.028 GB, free: 15.6 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches