Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001654/0.001654, allocations: 107.6 kB / 18.95 MB, free: 2.809 MB / 14.72 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.001564/0.001564, allocations: 213.5 kB / 22.25 MB, free: 5.117 MB / 14.72 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 1.605/1.605, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.201/3.201, allocations: 0.4892 GB / 0.7943 GB, free: 35.68 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 66.69 kB / 1.153 GB, free: 25.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3676/0.3697, allocations: 176.1 MB / 1.325 GB, free: 2.402 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001964/0.3717, allocations: 0.6752 MB / 1.326 GB, free: 1.734 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001441/0.3731, allocations: 1.097 MB / 1.327 GB, free: 0.625 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.383e-05/0.3732, allocations: 0 / 1.327 GB, free: 0.625 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.676e-05/0.3732, allocations: 7.938 kB / 1.327 GB, free: 0.6172 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.881e-05/0.3732, allocations: 3.938 kB / 1.327 GB, free: 0.6133 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.3735, allocations: 47.83 kB / 1.327 GB, free: 0.5664 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001144/0.3736, allocations: 55.78 kB / 1.327 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.209e-05/0.3737, allocations: 4 kB / 1.327 GB, free: 0.5078 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 6.805e-05/0.3738, allocations: 23.92 kB / 1.327 GB, free: 496 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.632e-05/0.3739, allocations: 27.89 kB / 1.327 GB, free: 468 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.459e-05/0.3739, allocations: 4 kB / 1.327 GB, free: 464 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.626e-05/0.3739, allocations: 16 kB / 1.327 GB, free: 448 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.338e-05/0.374, allocations: 11.98 kB / 1.327 GB, free: 436 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.587e-05/0.374, allocations: 19.92 kB / 1.327 GB, free: 416 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001439/0.3742, allocations: 67.94 kB / 1.327 GB, free: 348 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3742, allocations: 0 / 1.327 GB, free: 348 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3742, allocations: 4 kB / 1.327 GB, free: 344 kB / 1.014 GB Notification: Performance of Transformations before backend: time 9.377e-06/0.3742, allocations: 0 / 1.327 GB, free: 344 kB / 1.014 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.0005636/0.3747, allocations: 286.2 kB / 1.327 GB, free: 24 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3748, allocations: 12.03 kB / 1.327 GB, free: 12 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.294e-05/0.3748, allocations: 34.73 kB / 1.327 GB, free: 15.97 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.916e-05/0.3749, allocations: 16.89 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.375, allocations: 114.5 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.375, allocations: 384 / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.375, allocations: 4.375 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002052/0.3752, allocations: 66.22 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.3753, allocations: 11.88 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.3753, allocations: 0 / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.3753, allocations: 0 / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001853/0.3755, allocations: 47.95 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004391/0.3759, allocations: 243.9 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.3761, allocations: 50.55 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.829e-05/0.3762, allocations: 32.89 kB / 1.328 GB, free: 15.31 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.3762, allocations: 4 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000253/0.3764, allocations: 79.31 kB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.3764, allocations: 0 / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.000425/0.3769, allocations: 137.6 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.3769, allocations: 51.41 kB / 1.328 GB, free: 15.01 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.986e-05/0.377, allocations: 105.8 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.377, allocations: 29.64 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.114e-05/0.3771, allocations: 88.14 kB / 1.328 GB, free: 14.77 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.3771, allocations: 15.8 kB / 1.328 GB, free: 14.76 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.227e-05/0.3771, allocations: 29.7 kB / 1.328 GB, free: 14.72 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3773, allocations: 318.8 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.3774, allocations: 31.97 kB / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.3775, allocations: 56.27 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002246/0.3777, allocations: 96.17 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3777, allocations: 0 / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002836/0.378, allocations: 117.5 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.378, allocations: 8 kB / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.378, allocations: 0 / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.3781, allocations: 0 / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.3782, allocations: 19.98 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.3782, allocations: 0 / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.494e-05/0.3782, allocations: 15.94 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.3783, allocations: 12.06 kB / 1.329 GB, free: 14.02 MB / 1.029 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 0.0001012/0.3784, allocations: 118.3 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.422e-05/0.3784, allocations: 4 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002976/0.3787, allocations: 106 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.3787, allocations: 0 / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.3787, allocations: 4 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.3787, allocations: 3.984 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004803/0.3792, allocations: 325.5 kB / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3792, allocations: 0 / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.567e-05/0.3792, allocations: 11.98 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.3792, allocations: 0 / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.3792, allocations: 4.25 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.3793, allocations: 4 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.3793, allocations: 3.984 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003099/0.3796, allocations: 203.8 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.417e-05/0.3796, allocations: 15.89 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.135e-05/0.3796, allocations: 7.984 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.7e-05/0.3797, allocations: 4.188 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.279e-05/0.3797, allocations: 11.92 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.3798, allocations: 3.938 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.463e-05/0.3798, allocations: 91.27 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3798, allocations: 0 / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002482/0.3801, allocations: 8 kB / 1.33 GB, free: 13.02 MB / 1.029 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.000672/0.3807, allocations: 0.7398 MB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000269/0.381, allocations: 67.86 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.381, allocations: 4 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001135/0.3811, allocations: 27.98 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.3814, allocations: 13.33 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001732/0.3831, allocations: 1.417 MB / 1.332 GB, free: 10.62 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.972e-05/0.3832, allocations: 73.39 kB / 1.332 GB, free: 10.54 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.537e-05/0.3832, allocations: 4 kB / 1.332 GB, free: 10.53 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.446e-05/0.3833, allocations: 19.58 kB / 1.332 GB, free: 10.51 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.3833, allocations: 0 / 1.332 GB, free: 10.51 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03048/0.4137, allocations: 2.383 MB / 1.335 GB, free: 8.266 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.87, allocations: 5.688 kB / 1.335 GB, free: 8.266 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv. Warning: Get data of variable zerOrdHol.u from file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.752423867117614]