Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0009458/0.0009458, allocations: 80.44 kB / 19.17 MB, free: 0.7383 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.000877/0.000877, allocations: 165.9 kB / 22.45 MB, free: 2.102 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.919/0.919, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.701/1.701, allocations: 359 MB / 0.6037 GB, free: 11.06 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.176e-06/3.176e-06, allocations: 0 / 0.9505 GB, free: 3.492 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.088e-05/2.406e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.488 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001374/0.001398, allocations: 0.6701 MB / 0.9511 GB, free: 2.812 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001138/0.002535, allocations: 1.089 MB / 0.9522 GB, free: 1.711 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.028e-05/0.002586, allocations: 0 / 0.9522 GB, free: 1.711 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 3.128e-05/0.002617, allocations: 3.938 kB / 0.9522 GB, free: 1.707 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 7.271e-05/0.00269, allocations: 7.922 kB / 0.9522 GB, free: 1.699 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004268/0.003116, allocations: 47.77 kB / 0.9522 GB, free: 1.652 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.003245, allocations: 51.84 kB / 0.9523 GB, free: 1.602 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.003376, allocations: 11.94 kB / 0.9523 GB, free: 1.59 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.003484, allocations: 31.97 kB / 0.9523 GB, free: 1.559 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 6.221e-05/0.003546, allocations: 11.97 kB / 0.9524 GB, free: 1.547 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.102e-05/0.003567, allocations: 4 kB / 0.9524 GB, free: 1.543 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 7.548e-05/0.003643, allocations: 31.86 kB / 0.9524 GB, free: 1.512 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.803e-05/0.003671, allocations: 11.97 kB / 0.9524 GB, free: 1.5 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 3.812e-05/0.003709, allocations: 12 kB / 0.9524 GB, free: 1.488 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001991/0.003908, allocations: 71.7 kB / 0.9525 GB, free: 1.418 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.003912, allocations: 0 / 0.9525 GB, free: 1.418 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.845e-06/0.003915, allocations: 0 / 0.9525 GB, free: 1.418 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.003924, allocations: 0 / 0.9525 GB, free: 1.418 MB / 0.9011 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.0005174/0.004441, allocations: 302.1 kB / 0.9528 GB, free: 1.09 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.004488, allocations: 8.031 kB / 0.9528 GB, free: 1.082 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.479e-05/0.004522, allocations: 38.75 kB / 0.9528 GB, free: 1.035 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.311e-05/0.004605, allocations: 8.875 kB / 0.9528 GB, free: 1.027 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.167e-05/0.004697, allocations: 109.7 kB / 0.9529 GB, free: 0.8945 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.00471, allocations: 4.375 kB / 0.9529 GB, free: 0.8906 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.004721, allocations: 384 / 0.9529 GB, free: 0.8906 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001699/0.004891, allocations: 78.14 kB / 0.953 GB, free: 0.8086 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.004899, allocations: 4.125 kB / 0.953 GB, free: 0.8047 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.004913, allocations: 4.375 kB / 0.953 GB, free: 0.8008 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.004922, allocations: 12.11 kB / 0.953 GB, free: 0.7891 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.005024, allocations: 39.95 kB / 0.9531 GB, free: 0.75 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003907/0.005415, allocations: 232 kB / 0.9533 GB, free: 492 kB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.005537, allocations: 54.55 kB / 0.9533 GB, free: 428 kB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.607e-05/0.005593, allocations: 32.91 kB / 0.9534 GB, free: 392 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.005617, allocations: 3.938 kB / 0.9534 GB, free: 388 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000208/0.005825, allocations: 79.38 kB / 0.9534 GB, free: 296 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=7): time 2.023e-06/0.005827, allocations: 0 / 0.9534 GB, free: 296 kB / 0.9011 GB Notification: Performance of matching and sorting (n=7): time 0.0003129/0.00614, allocations: 129.6 kB / 0.9536 GB, free: 160 kB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.006183, allocations: 55.41 kB / 0.9536 GB, free: 92 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.564e-05/0.006269, allocations: 117.8 kB / 0.9537 GB, free: 15.96 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.006283, allocations: 25.7 kB / 0.9538 GB, free: 15.93 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 4.358e-05/0.006327, allocations: 92.06 kB / 0.9538 GB, free: 15.84 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.006346, allocations: 15.86 kB / 0.9539 GB, free: 15.82 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.689e-05/0.006383, allocations: 25.72 kB / 0.9539 GB, free: 15.79 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.917e-05/0.006462, allocations: 314.8 kB / 0.9542 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.254e-05/0.006525, allocations: 27.98 kB / 0.9542 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.214e-05/0.006597, allocations: 56.27 kB / 0.9543 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.006725, allocations: 96.19 kB / 0.9544 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.006728, allocations: 0 / 0.9544 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00018/0.006908, allocations: 121.4 kB / 0.9545 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.006925, allocations: 4.125 kB / 0.9545 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.006931, allocations: 4 kB / 0.9545 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.006944, allocations: 4 kB / 0.9545 GB, free: 15.13 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.107e-05/0.007025, allocations: 15.98 kB / 0.9545 GB, free: 15.12 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.007033, allocations: 7.984 kB / 0.9545 GB, free: 15.11 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.524e-05/0.007068, allocations: 11.94 kB / 0.9545 GB, free: 15.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.007077, allocations: 4 kB / 0.9545 GB, free: 15.09 MB / 0.9167 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.831e-05/0.007155, allocations: 113.8 kB / 0.9546 GB, free: 14.97 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.036e-05/0.007166, allocations: 8.109 kB / 0.9546 GB, free: 14.96 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000192/0.007358, allocations: 122.3 kB / 0.9548 GB, free: 14.84 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.00736, allocations: 3.938 kB / 0.9548 GB, free: 14.83 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.007365, allocations: 0 / 0.9548 GB, free: 14.83 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.007369, allocations: 0 / 0.9548 GB, free: 14.83 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003097/0.007678, allocations: 333.5 kB / 0.9551 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.007681, allocations: 0 / 0.9551 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.546e-05/0.007716, allocations: 11.98 kB / 0.9551 GB, free: 14.45 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.007719, allocations: 0 / 0.9551 GB, free: 14.45 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.365e-06/0.007727, allocations: 4 kB / 0.9551 GB, free: 14.44 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.007728, allocations: 0 / 0.9551 GB, free: 14.44 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.00773, allocations: 0 / 0.9551 GB, free: 14.44 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001771/0.007907, allocations: 207.4 kB / 0.9553 GB, free: 14.22 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 7.324e-06/0.007914, allocations: 3.953 kB / 0.9553 GB, free: 14.22 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.00793, allocations: 0 / 0.9553 GB, free: 14.22 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.261e-05/0.007983, allocations: 15.98 kB / 0.9553 GB, free: 14.2 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.884e-05/0.008021, allocations: 8.016 kB / 0.9553 GB, free: 14.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.008037, allocations: 4 kB / 0.9553 GB, free: 14.19 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.947e-05/0.008076, allocations: 91.53 kB / 0.9554 GB, free: 14.1 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.008077, allocations: 0 / 0.9554 GB, free: 14.1 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001808/0.008257, allocations: 12 kB / 0.9554 GB, free: 14.09 MB / 0.9167 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.0004189/0.008676, allocations: 0.7423 MB / 0.9561 GB, free: 13.32 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001661/0.008842, allocations: 68.08 kB / 0.9562 GB, free: 13.26 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.008844, allocations: 4.062 kB / 0.9562 GB, free: 13.25 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.86e-05/0.008902, allocations: 31.97 kB / 0.9562 GB, free: 13.22 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.009099, allocations: 9.719 kB / 0.9563 GB, free: 13.21 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.0102, allocations: 1.427 MB / 0.9576 GB, free: 11.68 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.043e-05/0.01025, allocations: 71.25 kB / 0.9577 GB, free: 11.59 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.336e-05/0.01028, allocations: 7.984 kB / 0.9577 GB, free: 11.58 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.008e-05/0.01032, allocations: 16.5 kB / 0.9577 GB, free: 11.57 MB / 0.9167 GB Notification: Performance of SimCode: time 1.132e-06/0.01032, allocations: 0 / 0.9577 GB, free: 11.57 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0169/0.02722, allocations: 2.514 MB / 0.9602 GB, free: 9.203 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.799/6.826, allocations: 1.719 kB / 0.9602 GB, free: 9.203 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable zerOrdHol.u in file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv. Warning: Get data of variable zerOrdHol.u from file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.022554086521268]