Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.001232/0.001232, allocations: 92.2 kB / 20.19 MB, free: 4.348 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.001106/0.001106, allocations: 169 kB / 23.49 MB, free: 1.051 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.9989/0.9989, allocations: 177.1 MB / 203.8 MB, free: 5.625 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.288/2.288, allocations: 429.5 MB / 0.6736 GB, free: 4.039 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.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 0.8782 GB, free: 6.641 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.801e-05/1.939e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.637 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001282/0.001301, allocations: 0.6841 MB / 0.8788 GB, free: 5.973 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001229/0.002531, allocations: 1.124 MB / 0.8799 GB, free: 4.84 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.778e-05/0.002578, allocations: 0 / 0.8799 GB, free: 4.84 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.759e-05/0.002606, allocations: 8.953 kB / 0.8799 GB, free: 4.832 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.666e-05/0.002673, allocations: 10.28 kB / 0.88 GB, free: 4.824 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002972/0.00297, allocations: 48.77 kB / 0.88 GB, free: 4.777 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 9.245e-05/0.003062, allocations: 55.78 kB / 0.8801 GB, free: 4.723 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.752e-05/0.00316, allocations: 7.406 kB / 0.8801 GB, free: 4.719 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 8.157e-05/0.003241, allocations: 35.89 kB / 0.8801 GB, free: 4.684 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.794e-05/0.003289, allocations: 15.98 kB / 0.8801 GB, free: 4.668 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.773e-05/0.003307, allocations: 4 kB / 0.8801 GB, free: 4.664 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.605e-05/0.003373, allocations: 19.98 kB / 0.8801 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.674e-05/0.0034, allocations: 19.91 kB / 0.8802 GB, free: 4.625 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.875e-05/0.003429, allocations: 8 kB / 0.8802 GB, free: 4.617 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.003568, allocations: 55.8 kB / 0.8802 GB, free: 4.562 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.003571, allocations: 0 / 0.8802 GB, free: 4.562 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.61e-07/0.003571, allocations: 0 / 0.8802 GB, free: 4.562 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.003575, allocations: 0.5938 kB / 0.8802 GB, free: 4.562 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005076/0.004083, allocations: 389.8 kB / 0.8806 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.004126, allocations: 12.03 kB / 0.8806 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.004257, allocations: 14.39 kB / 0.8806 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.004359, allocations: 120.5 kB / 0.8807 GB, free: 3.977 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.004373, allocations: 384 / 0.8807 GB, free: 3.977 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.004387, allocations: 4.375 kB / 0.8807 GB, free: 3.973 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001399/0.004527, allocations: 68.23 kB / 0.8808 GB, free: 3.898 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.004534, allocations: 192 / 0.8808 GB, free: 3.898 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.004544, allocations: 4.375 kB / 0.8808 GB, free: 3.895 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.004552, allocations: 4.375 kB / 0.8808 GB, free: 3.891 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.916e-05/0.004591, allocations: 15.92 kB / 0.8808 GB, free: 3.875 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003807/0.004972, allocations: 271.7 kB / 0.8811 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.964e-05/0.005072, allocations: 43.05 kB / 0.8811 GB, free: 3.52 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.743e-05/0.005099, allocations: 11.69 kB / 0.8811 GB, free: 3.504 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.005121, allocations: 4 kB / 0.8811 GB, free: 3.5 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.584e-05/0.005217, allocations: 69.09 kB / 0.8812 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.005218, allocations: 0 / 0.8812 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002208/0.005439, allocations: 85.62 kB / 0.8813 GB, free: 3.328 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.005492, allocations: 59.41 kB / 0.8813 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.0056, allocations: 165.9 kB / 0.8815 GB, free: 3.078 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.005616, allocations: 29.7 kB / 0.8815 GB, free: 3.043 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.52e-05/0.005681, allocations: 126.9 kB / 0.8816 GB, free: 2.914 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.546e-05/0.005707, allocations: 23.8 kB / 0.8817 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.143e-05/0.005748, allocations: 31.36 kB / 0.8817 GB, free: 2.852 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.005881, allocations: 0.4883 MB / 0.8822 GB, free: 2.352 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.588e-05/0.005907, allocations: 11.98 kB / 0.8822 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.962e-05/0.005956, allocations: 58.36 kB / 0.8822 GB, free: 2.262 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.945e-05/0.006036, allocations: 74.38 kB / 0.8823 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.006038, allocations: 0 / 0.8823 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001071/0.006145, allocations: 81.55 kB / 0.8824 GB, free: 2.082 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.006163, allocations: 14.28 kB / 0.8824 GB, free: 2.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.006168, allocations: 48 / 0.8824 GB, free: 2.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.006182, allocations: 3.984 kB / 0.8824 GB, free: 2.066 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.888e-05/0.006261, allocations: 19.98 kB / 0.8824 GB, free: 2.047 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.006268, allocations: 8.125 kB / 0.8824 GB, free: 2.039 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.034e-05/0.006298, allocations: 7.953 kB / 0.8824 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.006306, allocations: 4 kB / 0.8824 GB, free: 2.027 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: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.956e-05/0.006386, allocations: 164.5 kB / 0.8826 GB, free: 1.855 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.457e-06/0.006395, allocations: 7.938 kB / 0.8826 GB, free: 1.848 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/0.006517, allocations: 78.36 kB / 0.8827 GB, free: 1.762 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.00652, allocations: 0 / 0.8827 GB, free: 1.762 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.006525, allocations: 4 kB / 0.8827 GB, free: 1.758 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.006528, allocations: 0 / 0.8827 GB, free: 1.758 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002293/0.006757, allocations: 333.2 kB / 0.883 GB, free: 1.391 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.006759, allocations: 4 kB / 0.883 GB, free: 1.387 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.092e-05/0.00679, allocations: 11.98 kB / 0.883 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.006791, allocations: 0 / 0.883 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.0068, allocations: 0 / 0.883 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.006801, allocations: 0 / 0.883 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.006803, allocations: 0 / 0.883 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001486/0.006951, allocations: 223.8 kB / 0.8832 GB, free: 1.137 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.314e-06/0.006959, allocations: 3.953 kB / 0.8832 GB, free: 1.133 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.006979, allocations: 4 kB / 0.8832 GB, free: 1.129 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.514e-05/0.007024, allocations: 8 kB / 0.8833 GB, free: 1.121 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.518e-05/0.007069, allocations: 7.969 kB / 0.8833 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.007082, allocations: 8 kB / 0.8833 GB, free: 1.105 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.048e-05/0.007122, allocations: 127.2 kB / 0.8834 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6.1e-08/0.007122, allocations: 3.938 kB / 0.8834 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001707/0.007293, allocations: 16 kB / 0.8834 GB, free: 0.9609 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001151/0.007408, allocations: 95.25 kB / 0.8835 GB, free: 0.8594 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001132/0.007521, allocations: 47.59 kB / 0.8835 GB, free: 0.8086 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.007523, allocations: 0 / 0.8835 GB, free: 0.8086 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.682e-05/0.00756, allocations: 27.62 kB / 0.8836 GB, free: 0.7773 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/0.007746, allocations: 16.36 kB / 0.8836 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004751/0.008221, allocations: 154.1 kB / 0.8837 GB, free: 0.582 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.645e-05/0.008258, allocations: 59.34 kB / 0.8838 GB, free: 0.5039 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.384e-05/0.008282, allocations: 4 kB / 0.8838 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.844e-05/0.00831, allocations: 12.5 kB / 0.8838 GB, free: 500 kB / 0.8386 GB Notification: Performance of SimCode: time 5.51e-07/0.008311, allocations: 0 / 0.8838 GB, free: 500 kB / 0.8386 GB Notification: Performance of Templates: time 0.00256/0.01087, allocations: 0.9007 MB / 0.8847 GB, free: 15.61 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.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.675998592982069]