Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.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.0009829/0.0009829, allocations: 73.88 kB / 20.66 MB, free: 3.84 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.001154/0.001154, allocations: 169 kB / 24.06 MB, free: 452 kB / 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.9307/0.9307, allocations: 177.1 MB / 204.5 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.144/2.144, allocations: 429.5 MB / 0.6743 GB, free: 3.895 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.Logical.Validation.Edge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|edge1.u|edge1.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|edge1.u|edge1.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.228e-06/4.228e-06, allocations: 0 / 0.8794 GB, free: 5.996 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.639e-05/4.062e-05, allocations: 3.375 kB / 0.8794 GB, free: 5.992 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.002172/0.002212, allocations: 0.7622 MB / 0.8802 GB, free: 5.258 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001741/0.003953, allocations: 1.18 MB / 0.8813 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.498e-05/0.004028, allocations: 4 kB / 0.8813 GB, free: 4.062 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.279e-05/0.004071, allocations: 3.938 kB / 0.8813 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.004182, allocations: 16.89 kB / 0.8813 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005787/0.004761, allocations: 136.6 kB / 0.8815 GB, free: 3.91 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002214/0.004982, allocations: 112.8 kB / 0.8816 GB, free: 3.801 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.005122, allocations: 15.97 kB / 0.8816 GB, free: 3.785 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.005281, allocations: 59.95 kB / 0.8816 GB, free: 3.727 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001708/0.005452, allocations: 41.47 kB / 0.8817 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.814e-05/0.00549, allocations: 12 kB / 0.8817 GB, free: 3.676 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.608e-05/0.005576, allocations: 23.98 kB / 0.8817 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.099e-05/0.005607, allocations: 3.984 kB / 0.8817 GB, free: 3.648 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.068e-05/0.005657, allocations: 41.88 kB / 0.8818 GB, free: 3.609 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000203/0.00586, allocations: 95.69 kB / 0.8818 GB, free: 3.516 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.005865, allocations: 4 kB / 0.8819 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.703e-06/0.005866, allocations: 0 / 0.8819 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.959e-06/0.005876, allocations: 0 / 0.8819 GB, free: 3.512 MB / 0.8386 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.0005681/0.006444, allocations: 432.6 kB / 0.8823 GB, free: 3.047 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.006489, allocations: 12.02 kB / 0.8823 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.995e-05/0.006539, allocations: 12.89 kB / 0.8823 GB, free: 3.023 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001143/0.006653, allocations: 120.5 kB / 0.8824 GB, free: 2.879 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.006671, allocations: 4.375 kB / 0.8824 GB, free: 2.875 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.00669, allocations: 12.38 kB / 0.8824 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001273/0.006817, allocations: 62.92 kB / 0.8825 GB, free: 2.793 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.006826, allocations: 0.9062 kB / 0.8825 GB, free: 2.793 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.006842, allocations: 4.375 kB / 0.8825 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.006848, allocations: 2.031 kB / 0.8825 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001299/0.006978, allocations: 19.86 kB / 0.8825 GB, free: 2.77 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000409/0.007387, allocations: 284.3 kB / 0.8828 GB, free: 2.465 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.007519, allocations: 44.39 kB / 0.8828 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.249e-05/0.007541, allocations: 11.69 kB / 0.8828 GB, free: 2.395 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.097e-05/0.007552, allocations: 11.98 kB / 0.8828 GB, free: 2.383 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001285/0.007681, allocations: 77.17 kB / 0.8829 GB, free: 2.293 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 2.725e-06/0.007683, allocations: 0 / 0.8829 GB, free: 2.293 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002371/0.00792, allocations: 97.53 kB / 0.883 GB, free: 2.191 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.007965, allocations: 55.34 kB / 0.8831 GB, free: 2.125 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.008067, allocations: 177.8 kB / 0.8832 GB, free: 1.934 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.00809, allocations: 33.7 kB / 0.8833 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.799e-05/0.008168, allocations: 134.9 kB / 0.8834 GB, free: 1.758 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.944e-05/0.008197, allocations: 23.88 kB / 0.8834 GB, free: 1.734 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.815e-05/0.008266, allocations: 39.36 kB / 0.8834 GB, free: 1.688 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.008422, allocations: 0.4884 MB / 0.8839 GB, free: 1.188 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.152e-05/0.008494, allocations: 61.69 kB / 0.884 GB, free: 1.121 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.923e-05/0.008583, allocations: 104.1 kB / 0.8841 GB, free: 0.9922 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003032/0.008886, allocations: 116 kB / 0.8842 GB, free: 0.8516 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.008889, allocations: 0 / 0.8842 GB, free: 0.8516 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002332/0.009122, allocations: 192.9 kB / 0.8844 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.272e-05/0.009165, allocations: 49.75 kB / 0.8844 GB, free: 0.5898 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.009174, allocations: 4 kB / 0.8844 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.00919, allocations: 0 / 0.8844 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.919e-05/0.009279, allocations: 11.94 kB / 0.8844 GB, free: 0.5742 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.009285, allocations: 4.297 kB / 0.8844 GB, free: 0.5703 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.841e-05/0.009384, allocations: 27.88 kB / 0.8845 GB, free: 0.543 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.009401, allocations: 12 kB / 0.8845 GB, free: 0.5312 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,edge1.y,edge1.u,$PRE.edge1.u,booPul.y,$PRE.booPul.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.0001096/0.009511, allocations: 164.5 kB / 0.8846 GB, free: 372 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.598e-05/0.009527, allocations: 19.95 kB / 0.8847 GB, free: 352 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.538e-05/0.009562, allocations: 12.38 kB / 0.8847 GB, free: 336 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.009565, allocations: 0 / 0.8847 GB, free: 336 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.009567, allocations: 0 / 0.8847 GB, free: 336 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.009572, allocations: 4 kB / 0.8847 GB, free: 332 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003404/0.009913, allocations: 314 kB / 0.885 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.009915, allocations: 0 / 0.885 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.938e-05/0.009954, allocations: 8 kB / 0.885 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.009959, allocations: 3.938 kB / 0.885 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.009966, allocations: 3.938 kB / 0.885 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.009969, allocations: 4 kB / 0.885 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.009972, allocations: 4 kB / 0.885 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001613/0.01013, allocations: 231.8 kB / 0.8852 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.496e-05/0.01015, allocations: 11.89 kB / 0.8852 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.01017, allocations: 3.984 kB / 0.8852 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.17e-05/0.01021, allocations: 4 kB / 0.8852 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.309e-05/0.01025, allocations: 11.98 kB / 0.8852 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.01026, allocations: 0 / 0.8852 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.162e-05/0.01031, allocations: 135.2 kB / 0.8854 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01031, allocations: 0 / 0.8854 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001897/0.0105, allocations: 20 kB / 0.8854 GB, free: 15.53 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (edge1.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,edge1.u,triggeredSampler.y) * Number of discrete states: 1 (edge1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001759/0.01067, allocations: 111.2 kB / 0.8855 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001953/0.01087, allocations: 152.7 kB / 0.8856 GB, free: 15.24 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.01087, allocations: 4 kB / 0.8857 GB, free: 15.24 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.8e-05/0.01091, allocations: 31.61 kB / 0.8857 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000222/0.01113, allocations: 8.188 kB / 0.8857 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000329/0.01146, allocations: 174.9 kB / 0.8859 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.86e-05/0.0115, allocations: 56.02 kB / 0.8859 GB, free: 14.92 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.16e-05/0.01153, allocations: 11.84 kB / 0.8859 GB, free: 14.91 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.733e-05/0.01163, allocations: 90.19 kB / 0.886 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of SimCode: time 9.72e-07/0.01163, allocations: 0 / 0.886 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of Templates: time 0.004334/0.01596, allocations: 1.802 MB / 0.8878 GB, free: 13.05 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.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.660355860833079]