Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.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.00142/0.00142, allocations: 87.58 kB / 20.45 MB, free: 4.121 MB / 18.57 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.001597/0.001597, allocations: 161.4 kB / 23.82 MB, free: 0.7578 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.9946/0.9946, allocations: 177.1 MB / 204.2 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.833/1.833, allocations: 359 MB / 0.6052 GB, free: 11.03 MB / 0.573 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.045e-06/3.045e-06, allocations: 0 / 0.7872 GB, free: 12.43 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.416e-05/4.721e-05, allocations: 2.312 kB / 0.7872 GB, free: 12.43 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002177/0.002225, allocations: 0.8021 MB / 0.7879 GB, free: 11.64 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002235/0.004459, allocations: 1.198 MB / 0.7891 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.859e-05/0.004528, allocations: 0 / 0.7891 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 4.871e-05/0.004576, allocations: 4.5 kB / 0.7891 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.004693, allocations: 20.53 kB / 0.7891 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005739/0.005267, allocations: 132.5 kB / 0.7893 GB, free: 10.28 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002185/0.005486, allocations: 132.3 kB / 0.7894 GB, free: 10.15 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.005625, allocations: 13.17 kB / 0.7894 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.005777, allocations: 67.89 kB / 0.7895 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.005888, allocations: 47.86 kB / 0.7895 GB, free: 10.03 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.172e-05/0.00592, allocations: 13.59 kB / 0.7895 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.904e-05/0.005999, allocations: 20 kB / 0.7895 GB, free: 9.996 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.599e-05/0.006035, allocations: 15.92 kB / 0.7896 GB, free: 9.98 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 6.905e-05/0.006104, allocations: 35.95 kB / 0.7896 GB, free: 9.945 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002283/0.006332, allocations: 95.75 kB / 0.7897 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.006337, allocations: 3.438 kB / 0.7897 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.473e-06/0.006338, allocations: 0 / 0.7897 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.204e-06/0.006345, allocations: 0 / 0.7897 GB, free: 9.852 MB / 0.7448 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.0006646/0.00701, allocations: 446 kB / 0.7901 GB, free: 9.371 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.007068, allocations: 8.031 kB / 0.7901 GB, free: 9.363 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.41e-05/0.007143, allocations: 12.89 kB / 0.7901 GB, free: 9.352 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.00729, allocations: 124.5 kB / 0.7903 GB, free: 9.203 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.007312, allocations: 8.375 kB / 0.7903 GB, free: 9.195 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.428e-05/0.007336, allocations: 9.031 kB / 0.7903 GB, free: 9.188 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.007543, allocations: 72.58 kB / 0.7903 GB, free: 9.109 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.007555, allocations: 192 / 0.7903 GB, free: 9.109 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.007569, allocations: 4.375 kB / 0.7903 GB, free: 9.105 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.007578, allocations: 384 / 0.7903 GB, free: 9.105 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.699e-05/0.007625, allocations: 11.94 kB / 0.7904 GB, free: 9.094 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000517/0.008142, allocations: 316.2 kB / 0.7907 GB, free: 8.75 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.682e-05/0.008229, allocations: 31.83 kB / 0.7907 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.791e-05/0.008267, allocations: 11.69 kB / 0.7907 GB, free: 8.691 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.422e-05/0.008301, allocations: 4.969 kB / 0.7907 GB, free: 8.688 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001451/0.008446, allocations: 81 kB / 0.7908 GB, free: 8.594 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 2.846e-06/0.008449, allocations: 0.9688 kB / 0.7908 GB, free: 8.594 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0002537/0.008703, allocations: 73.64 kB / 0.7909 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.008749, allocations: 55.41 kB / 0.7909 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.008866, allocations: 179.2 kB / 0.7911 GB, free: 8.258 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.008888, allocations: 29.7 kB / 0.7911 GB, free: 8.223 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.644e-05/0.008965, allocations: 138.9 kB / 0.7912 GB, free: 8.082 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.882e-05/0.008994, allocations: 20.88 kB / 0.7913 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.476e-05/0.009058, allocations: 35.36 kB / 0.7913 GB, free: 8.02 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001768/0.009235, allocations: 0.4923 MB / 0.7918 GB, free: 7.516 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.61e-05/0.009331, allocations: 54.72 kB / 0.7918 GB, free: 7.457 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.553e-05/0.009427, allocations: 92.67 kB / 0.7919 GB, free: 7.348 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001138/0.009541, allocations: 93.78 kB / 0.792 GB, free: 7.238 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.009544, allocations: 256 / 0.792 GB, free: 7.238 MB / 0.7448 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002569/0.0098, allocations: 190.5 kB / 0.7922 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 4.971e-05/0.00985, allocations: 33.7 kB / 0.7922 GB, free: 6.996 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.009858, allocations: 4 kB / 0.7922 GB, free: 6.992 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.009881, allocations: 4.531 kB / 0.7922 GB, free: 6.988 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.01001, allocations: 16.58 kB / 0.7922 GB, free: 6.973 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.01001, allocations: 0 / 0.7922 GB, free: 6.973 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.01013, allocations: 37.14 kB / 0.7923 GB, free: 6.938 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.01015, allocations: 8 kB / 0.7923 GB, free: 6.93 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001006/0.01025, allocations: 161.5 kB / 0.7924 GB, free: 6.762 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.01027, allocations: 12.42 kB / 0.7925 GB, free: 6.75 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.633e-05/0.0103, allocations: 12.42 kB / 0.7925 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.01031, allocations: 5.375 kB / 0.7925 GB, free: 6.738 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.01031, allocations: 3.938 kB / 0.7925 GB, free: 6.734 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.01032, allocations: 0 / 0.7925 GB, free: 6.734 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001219/0.01044, allocations: 128.6 kB / 0.7926 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.01044, allocations: 1.25 kB / 0.7926 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.45e-05/0.0105, allocations: 15.98 kB / 0.7926 GB, free: 6.559 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.0105, allocations: 8.734 kB / 0.7926 GB, free: 6.551 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.01051, allocations: 3.938 kB / 0.7926 GB, free: 6.547 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.01051, allocations: 0 / 0.7926 GB, free: 6.547 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.01052, allocations: 1.016 kB / 0.7926 GB, free: 6.547 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001635/0.01068, allocations: 108.4 kB / 0.7927 GB, free: 6.418 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.269e-05/0.01069, allocations: 5.219 kB / 0.7927 GB, free: 6.414 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.01071, allocations: 3.938 kB / 0.7927 GB, free: 6.41 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.45e-05/0.01074, allocations: 11.98 kB / 0.7927 GB, free: 6.398 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.515e-05/0.0108, allocations: 8.828 kB / 0.7928 GB, free: 6.391 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-06/0.01081, allocations: 4 kB / 0.7928 GB, free: 6.387 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.181e-05/0.01087, allocations: 139.6 kB / 0.7929 GB, free: 6.254 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5.1e-08/0.01087, allocations: 0 / 0.7929 GB, free: 6.254 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001752/0.01104, allocations: 23.95 kB / 0.7929 GB, free: 6.23 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002304/0.01127, allocations: 103.2 kB / 0.793 GB, free: 6.117 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002775/0.01155, allocations: 155.9 kB / 0.7932 GB, free: 5.945 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.01155, allocations: 0 / 0.7932 GB, free: 5.945 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 6.57e-05/0.01162, allocations: 31.61 kB / 0.7932 GB, free: 5.91 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002611/0.01188, allocations: 25.88 kB / 0.7932 GB, free: 5.887 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005489/0.01243, allocations: 167.2 kB / 0.7934 GB, free: 5.695 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.23e-05/0.01249, allocations: 59.34 kB / 0.7934 GB, free: 5.617 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.782e-05/0.01253, allocations: 4.625 kB / 0.7934 GB, free: 5.613 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.457e-05/0.01258, allocations: 17.06 kB / 0.7935 GB, free: 5.598 MB / 0.7448 GB Notification: Performance of SimCode: time 1.653e-06/0.01258, allocations: 0 / 0.7935 GB, free: 5.598 MB / 0.7448 GB Notification: Performance of Templates: time 0.005481/0.01806, allocations: 1.717 MB / 0.7951 GB, free: 3.938 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.782296278048307]