Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000828/0.000828, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009103/0.0009103, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8747/0.8747, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.713/1.713, allocations: 377.8 MB / 0.6221 GB, free: 8.664 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.414e-06/2.414e-06, allocations: 0 / 0.981 GB, free: 2.605 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.444e-05/1.685e-05, allocations: 6.281 kB / 0.981 GB, free: 2.598 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001222/0.001239, allocations: 0.6868 MB / 0.9816 GB, free: 1.914 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001381/0.00262, allocations: 1.295 MB / 0.9829 GB, free: 0.6055 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.049e-05/0.00268, allocations: 0 / 0.9829 GB, free: 0.6055 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.465e-05/0.002715, allocations: 3.938 kB / 0.9829 GB, free: 0.6016 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 8.647e-05/0.002802, allocations: 27.78 kB / 0.9829 GB, free: 0.5742 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006736/0.003475, allocations: 297.7 kB / 0.9832 GB, free: 300 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0002569/0.003732, allocations: 263.5 kB / 0.9835 GB, free: 36 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.003837, allocations: 20.09 kB / 0.9835 GB, free: 12 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.003982, allocations: 139.8 kB / 0.9836 GB, free: 15.88 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.004103, allocations: 75.86 kB / 0.9837 GB, free: 15.8 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.874e-05/0.004131, allocations: 20 kB / 0.9837 GB, free: 15.78 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.704e-05/0.004198, allocations: 32 kB / 0.9837 GB, free: 15.75 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 2.398e-05/0.004222, allocations: 15.92 kB / 0.9838 GB, free: 15.73 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 7.401e-05/0.004296, allocations: 83.84 kB / 0.9838 GB, free: 15.65 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002213/0.004518, allocations: 259.4 kB / 0.9841 GB, free: 15.4 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.004519, allocations: 4 kB / 0.9841 GB, free: 15.39 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.273e-06/0.004521, allocations: 0 / 0.9841 GB, free: 15.39 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.004525, allocations: 3.938 kB / 0.9841 GB, free: 15.39 MB / 0.948 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.0004438/0.004969, allocations: 431.1 kB / 0.9845 GB, free: 14.92 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.005012, allocations: 12.03 kB / 0.9845 GB, free: 14.91 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.648e-05/0.005039, allocations: 30.75 kB / 0.9845 GB, free: 14.87 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.196e-05/0.005091, allocations: 20.88 kB / 0.9846 GB, free: 14.85 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.457e-05/0.005175, allocations: 113.7 kB / 0.9847 GB, free: 14.71 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.0052, allocations: 12.38 kB / 0.9847 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.715e-05/0.005227, allocations: 12.38 kB / 0.9847 GB, free: 14.69 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001158/0.005343, allocations: 62.17 kB / 0.9848 GB, free: 14.62 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.005351, allocations: 4.188 kB / 0.9848 GB, free: 14.62 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.005364, allocations: 12.3 kB / 0.9848 GB, free: 14.61 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.00537, allocations: 3.938 kB / 0.9848 GB, free: 14.61 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.03e-05/0.00541, allocations: 20 kB / 0.9848 GB, free: 14.59 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000471/0.005881, allocations: 335.8 kB / 0.9851 GB, free: 14.21 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 5.603e-05/0.005937, allocations: 34.5 kB / 0.9851 GB, free: 14.17 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.725e-05/0.005964, allocations: 20.89 kB / 0.9852 GB, free: 14.15 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.099e-05/0.005975, allocations: 7.969 kB / 0.9852 GB, free: 14.14 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001434/0.006119, allocations: 95.36 kB / 0.9853 GB, free: 14.04 MB / 0.948 GB Notification: Performance of pre-optimization done (n=10): time 1.162e-06/0.00612, allocations: 0 / 0.9853 GB, free: 14.04 MB / 0.948 GB Notification: Performance of matching and sorting (n=10): time 0.0003179/0.006438, allocations: 141.5 kB / 0.9854 GB, free: 13.89 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.006471, allocations: 59.39 kB / 0.9855 GB, free: 13.82 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.597e-05/0.006547, allocations: 140.4 kB / 0.9856 GB, free: 13.68 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.006572, allocations: 33.7 kB / 0.9856 GB, free: 13.64 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.803e-05/0.00662, allocations: 92.14 kB / 0.9857 GB, free: 13.54 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.006637, allocations: 31.91 kB / 0.9857 GB, free: 13.51 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.473e-05/0.006712, allocations: 65.67 kB / 0.9858 GB, free: 13.44 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.301e-05/0.006785, allocations: 322.8 kB / 0.9861 GB, free: 13.12 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.006971, allocations: 181 kB / 0.9863 GB, free: 12.92 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001675/0.007139, allocations: 224.9 kB / 0.9865 GB, free: 12.66 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001866/0.007325, allocations: 242.4 kB / 0.9867 GB, free: 12.39 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.007328, allocations: 3.938 kB / 0.9867 GB, free: 12.39 MB / 0.948 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004058/0.007734, allocations: 471.5 kB / 0.9872 GB, free: 11.88 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.148e-05/0.007786, allocations: 105.3 kB / 0.9873 GB, free: 11.76 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.007791, allocations: 0 / 0.9873 GB, free: 11.76 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.007804, allocations: 7.938 kB / 0.9873 GB, free: 11.75 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.774e-05/0.007822, allocations: 0 / 0.9873 GB, free: 11.75 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.007829, allocations: 4.375 kB / 0.9873 GB, free: 11.75 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002637/0.008093, allocations: 79.86 kB / 0.9874 GB, free: 11.67 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.698e-05/0.00812, allocations: 19.98 kB / 0.9874 GB, free: 11.65 MB / 0.948 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.602e-05/0.008216, allocations: 139.5 kB / 0.9875 GB, free: 11.51 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.219e-05/0.008228, allocations: 15.88 kB / 0.9875 GB, free: 11.49 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.304e-05/0.008251, allocations: 12.44 kB / 0.9875 GB, free: 11.48 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.008253, allocations: 0 / 0.9875 GB, free: 11.48 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.008258, allocations: 0 / 0.9875 GB, free: 11.48 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.008262, allocations: 0 / 0.9875 GB, free: 11.48 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.976e-05/0.008362, allocations: 156.7 kB / 0.9877 GB, free: 11.29 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.008364, allocations: 4 kB / 0.9877 GB, free: 11.28 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.22e-06/0.008369, allocations: 7.984 kB / 0.9877 GB, free: 11.27 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.008371, allocations: 0 / 0.9877 GB, free: 11.27 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-06/0.008379, allocations: 4 kB / 0.9877 GB, free: 11.27 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.00838, allocations: 0 / 0.9877 GB, free: 11.27 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.008382, allocations: 7.938 kB / 0.9877 GB, free: 11.26 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001373/0.00852, allocations: 144.9 kB / 0.9879 GB, free: 11.1 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 9.157e-06/0.008529, allocations: 7.953 kB / 0.9879 GB, free: 11.09 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.00854, allocations: 3.938 kB / 0.9879 GB, free: 11.09 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.428e-05/0.008555, allocations: 4 kB / 0.9879 GB, free: 11.09 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.167e-05/0.008586, allocations: 11.98 kB / 0.9879 GB, free: 11.07 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.008592, allocations: 0 / 0.9879 GB, free: 11.07 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.009e-05/0.008632, allocations: 99.27 kB / 0.988 GB, free: 10.98 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.008632, allocations: 0 / 0.988 GB, free: 10.98 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001847/0.008817, allocations: 47.98 kB / 0.988 GB, free: 10.93 MB / 0.948 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.0004577/0.009275, allocations: 0.6786 MB / 0.9887 GB, free: 10.22 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003445/0.009619, allocations: 419.1 kB / 0.9891 GB, free: 9.758 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.009621, allocations: 192 / 0.9891 GB, free: 9.758 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.011e-05/0.009661, allocations: 35.92 kB / 0.9891 GB, free: 9.723 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001795/0.009841, allocations: 32.52 kB / 0.9892 GB, free: 9.691 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001788/0.01163, allocations: 2.433 MB / 0.9915 GB, free: 7.043 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.37e-05/0.01168, allocations: 79.83 kB / 0.9916 GB, free: 6.941 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.377e-05/0.01172, allocations: 12.5 kB / 0.9916 GB, free: 6.93 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.438e-05/0.01176, allocations: 28.48 kB / 0.9916 GB, free: 6.902 MB / 0.948 GB Notification: Performance of SimCode: time 9.12e-07/0.01176, allocations: 0 / 0.9916 GB, free: 6.902 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01938/0.03114, allocations: 4.804 MB / 0.9963 GB, free: 2.305 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.717/6.748, allocations: 5.953 kB / 0.9963 GB, free: 2.301 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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: 10.723594872280955]