Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.0009517/0.0009517, 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.0009971/0.0009971, allocations: 161 kB / 23.82 MB, free: 0.7539 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.9695/0.9695, allocations: 177.1 MB / 204.2 MB, free: 5.613 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.867/1.867, allocations: 359 MB / 0.6052 GB, free: 11.02 MB / 0.573 GB " [Timeout remaining time 178] 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.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 0.7871 GB, free: 11.41 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.982e-05/2.112e-05, allocations: 7.156 kB / 0.7871 GB, free: 11.41 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001259/0.00128, allocations: 0.6934 MB / 0.7878 GB, free: 10.73 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001378/0.002658, allocations: 1.125 MB / 0.7889 GB, free: 9.594 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.571e-05/0.002703, allocations: 4 kB / 0.7889 GB, free: 9.59 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.941e-05/0.002733, allocations: 4.938 kB / 0.7889 GB, free: 9.586 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 6.595e-05/0.002799, allocations: 11.91 kB / 0.7889 GB, free: 9.574 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002835/0.003082, allocations: 52.48 kB / 0.7889 GB, free: 9.523 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 8.698e-05/0.003169, allocations: 71.77 kB / 0.789 GB, free: 9.453 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.541e-05/0.003254, allocations: 12.86 kB / 0.789 GB, free: 9.441 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 7.754e-05/0.003332, allocations: 35.95 kB / 0.789 GB, free: 9.406 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 4.604e-05/0.003378, allocations: 28.92 kB / 0.7891 GB, free: 9.379 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.003397, allocations: 8 kB / 0.7891 GB, free: 9.371 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 6.214e-05/0.003459, allocations: 27.92 kB / 0.7891 GB, free: 9.344 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.069e-05/0.003479, allocations: 16.78 kB / 0.7891 GB, free: 9.328 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 3.952e-05/0.003519, allocations: 19.92 kB / 0.7891 GB, free: 9.309 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001291/0.003648, allocations: 64.92 kB / 0.7892 GB, free: 9.246 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.215e-06/0.00365, allocations: 0 / 0.7892 GB, free: 9.246 MB / 0.698 GB Notification: Performance of FrontEnd: time 7.31e-07/0.003651, allocations: 0 / 0.7892 GB, free: 9.246 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.003655, allocations: 1.531 kB / 0.7892 GB, free: 9.246 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004337/0.004089, allocations: 404.1 kB / 0.7896 GB, free: 8.812 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.004123, allocations: 13.5 kB / 0.7896 GB, free: 8.801 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.516e-05/0.004219, allocations: 16.81 kB / 0.7896 GB, free: 8.785 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.445e-05/0.004293, allocations: 112.6 kB / 0.7897 GB, free: 8.648 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.004313, allocations: 8.375 kB / 0.7897 GB, free: 8.641 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.004326, allocations: 7.469 kB / 0.7897 GB, free: 8.637 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.004459, allocations: 82.86 kB / 0.7898 GB, free: 8.547 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.069e-05/0.004489, allocations: 192 / 0.7898 GB, free: 8.547 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.0045, allocations: 4.359 kB / 0.7898 GB, free: 8.543 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.004508, allocations: 4.375 kB / 0.7898 GB, free: 8.539 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.916e-05/0.004557, allocations: 23.86 kB / 0.7898 GB, free: 8.516 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003601/0.004917, allocations: 291.7 kB / 0.7901 GB, free: 8.195 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 9.84e-05/0.005016, allocations: 64.09 kB / 0.7902 GB, free: 8.121 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.253e-05/0.005048, allocations: 23.69 kB / 0.7902 GB, free: 8.094 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.005067, allocations: 0.5938 kB / 0.7902 GB, free: 8.094 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.869e-05/0.005156, allocations: 85.62 kB / 0.7903 GB, free: 7.996 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 9.72e-07/0.005157, allocations: 0 / 0.7903 GB, free: 7.996 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0002173/0.005374, allocations: 118.2 kB / 0.7904 GB, free: 7.875 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.346e-05/0.005408, allocations: 64.94 kB / 0.7905 GB, free: 7.801 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.454e-05/0.005492, allocations: 169.9 kB / 0.7906 GB, free: 7.617 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.005507, allocations: 29.7 kB / 0.7907 GB, free: 7.582 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.329e-05/0.00555, allocations: 131.1 kB / 0.7908 GB, free: 7.445 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.362e-05/0.005574, allocations: 28.42 kB / 0.7908 GB, free: 7.418 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.217e-05/0.005616, allocations: 39.36 kB / 0.7908 GB, free: 7.371 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.005722, allocations: 0.4892 MB / 0.7913 GB, free: 6.871 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.02e-05/0.005752, allocations: 15.98 kB / 0.7913 GB, free: 6.855 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.549e-05/0.005797, allocations: 47.55 kB / 0.7914 GB, free: 6.797 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.828e-05/0.005876, allocations: 71.58 kB / 0.7914 GB, free: 6.715 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.005878, allocations: 0.6875 kB / 0.7914 GB, free: 6.715 MB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001254/0.006003, allocations: 111 kB / 0.7916 GB, free: 6.602 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.006016, allocations: 7.938 kB / 0.7916 GB, free: 6.594 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.006021, allocations: 4 kB / 0.7916 GB, free: 6.59 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.006037, allocations: 1.688 kB / 0.7916 GB, free: 6.59 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.158e-05/0.006129, allocations: 23.98 kB / 0.7916 GB, free: 6.566 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.006134, allocations: 0 / 0.7916 GB, free: 6.566 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.77e-05/0.006162, allocations: 8 kB / 0.7916 GB, free: 6.559 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.006171, allocations: 5.969 kB / 0.7916 GB, free: 6.555 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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 7.241e-05/0.006243, allocations: 164.5 kB / 0.7918 GB, free: 6.383 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.444e-05/0.006258, allocations: 15.88 kB / 0.7918 GB, free: 6.367 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001492/0.006407, allocations: 106 kB / 0.7919 GB, free: 6.258 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.00641, allocations: 4.641 kB / 0.7919 GB, free: 6.254 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.006413, allocations: 0 / 0.7919 GB, free: 6.254 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.006417, allocations: 6.422 kB / 0.7919 GB, free: 6.25 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002479/0.006665, allocations: 373.3 kB / 0.7922 GB, free: 5.844 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.006667, allocations: 0 / 0.7922 GB, free: 5.844 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.107e-05/0.006698, allocations: 7.984 kB / 0.7923 GB, free: 5.836 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.0067, allocations: 0 / 0.7923 GB, free: 5.836 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.253e-06/0.006707, allocations: 4 kB / 0.7923 GB, free: 5.832 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.006708, allocations: 0 / 0.7923 GB, free: 5.832 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.006709, allocations: 1.844 kB / 0.7923 GB, free: 5.832 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001493/0.006859, allocations: 267.7 kB / 0.7925 GB, free: 5.551 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.352e-06/0.006865, allocations: 3.953 kB / 0.7925 GB, free: 5.547 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.00688, allocations: 4 kB / 0.7925 GB, free: 5.543 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.861e-05/0.006928, allocations: 12.77 kB / 0.7925 GB, free: 5.531 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.305e-05/0.006961, allocations: 0 / 0.7925 GB, free: 5.531 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.006969, allocations: 12.55 kB / 0.7925 GB, free: 5.52 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.615e-05/0.007006, allocations: 128.9 kB / 0.7927 GB, free: 5.395 MB / 0.698 GB Notification: Performance of sort global known variables: time 5e-08/0.007006, allocations: 0 / 0.7927 GB, free: 5.395 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0001692/0.007175, allocations: 16 kB / 0.7927 GB, free: 5.379 MB / 0.698 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 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001081/0.007283, allocations: 114.8 kB / 0.7928 GB, free: 5.262 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0001354/0.007418, allocations: 67.64 kB / 0.7929 GB, free: 5.191 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-06/0.007419, allocations: 0 / 0.7929 GB, free: 5.191 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 4.643e-05/0.007466, allocations: 35.61 kB / 0.7929 GB, free: 5.152 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001895/0.007655, allocations: 21.3 kB / 0.7929 GB, free: 5.133 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004542/0.00811, allocations: 156 kB / 0.7931 GB, free: 4.953 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.158e-05/0.008151, allocations: 64.09 kB / 0.7931 GB, free: 4.871 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 2.51e-05/0.008176, allocations: 9.078 kB / 0.7931 GB, free: 4.863 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.842e-05/0.008205, allocations: 12.5 kB / 0.7931 GB, free: 4.852 MB / 0.698 GB Notification: Performance of SimCode: time 6.22e-07/0.008205, allocations: 0.8438 kB / 0.7931 GB, free: 4.852 MB / 0.698 GB Notification: Performance of Templates: time 0.002695/0.0109, allocations: 1.096 MB / 0.7942 GB, free: 3.801 MB / 0.698 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.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.148075846023858]