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.001275/0.001275, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001432/0.001432, allocations: 212.3 kB / 22.25 MB, free: 5.262 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.521/1.521, allocations: 230.6 MB / 256 MB, free: 7.789 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.243/3.243, allocations: 0.49 GB / 0.7951 GB, free: 35.4 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.00209/0.00209, allocations: 71.81 kB / 1.154 GB, free: 25.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.3844, allocations: 176.1 MB / 1.326 GB, free: 1.492 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.00246/0.3868, allocations: 0.669 MB / 1.326 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002038/0.3889, allocations: 1.093 MB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.788e-05/0.389, allocations: 0 / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.618e-05/0.389, allocations: 3.938 kB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.727e-05/0.3891, allocations: 11.94 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000382/0.3895, allocations: 43.83 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.3896, allocations: 59.78 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.3897, allocations: 11.98 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.489e-05/0.3898, allocations: 19.92 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.679e-05/0.3899, allocations: 23.91 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.032e-05/0.3899, allocations: 8 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.35e-05/0.39, allocations: 19.98 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.74e-05/0.39, allocations: 7.984 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.4e-05/0.3901, allocations: 19.92 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002077/0.3903, allocations: 67.94 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3903, allocations: 0 / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.104e-06/0.3903, allocations: 0 / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.3903, allocations: 4 kB / 1.328 GB, free: 15.43 MB / 1.029 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.0007116/0.391, allocations: 294.2 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.3911, allocations: 11.97 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.675e-05/0.3911, allocations: 38.75 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.3912, allocations: 4.891 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.3914, allocations: 110.5 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.3914, allocations: 4.375 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.956e-05/0.3914, allocations: 4.359 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002277/0.3916, allocations: 70.17 kB / 1.328 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.3916, allocations: 3.938 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.3917, allocations: 4 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.3917, allocations: 4 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001847/0.3919, allocations: 39.95 kB / 1.328 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005503/0.3924, allocations: 247.9 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002045/0.3926, allocations: 54.55 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.3927, allocations: 32.91 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.3927, allocations: 4 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000251/0.393, allocations: 71.38 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.393, allocations: 3.938 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004528/0.3934, allocations: 129.8 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/0.3935, allocations: 55.41 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.3936, allocations: 113.8 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.3936, allocations: 29.7 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.2e-05/0.3937, allocations: 84.14 kB / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.3937, allocations: 27.89 kB / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.723e-05/0.3938, allocations: 21.72 kB / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3939, allocations: 322.8 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.394, allocations: 23.98 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.3942, allocations: 60.27 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002302/0.3944, allocations: 88.19 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3944, allocations: 4 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002905/0.3947, allocations: 117.5 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.3947, allocations: 8.125 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.3947, allocations: 0 / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.3947, allocations: 4 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.3949, allocations: 20.03 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.3949, allocations: 3.938 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.089e-05/0.3949, allocations: 15.97 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.395, allocations: 4.188 kB / 1.33 GB, free: 13.11 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.0001184/0.3951, allocations: 119.6 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.728e-05/0.3951, allocations: 7.891 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003099/0.3954, allocations: 114 kB / 1.33 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.3954, allocations: 0 / 1.33 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3954, allocations: 0 / 1.33 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.3954, allocations: 3.938 kB / 1.33 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005209/0.3959, allocations: 325.6 kB / 1.33 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.3959, allocations: 0 / 1.33 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.479e-05/0.396, allocations: 8 kB / 1.33 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.396, allocations: 7.984 kB / 1.33 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.396, allocations: 4 kB / 1.33 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.396, allocations: 0 / 1.33 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.396, allocations: 0 / 1.33 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003766/0.3964, allocations: 207.3 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.878e-05/0.3964, allocations: 11.89 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.3964, allocations: 0 / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.883e-05/0.3965, allocations: 11.98 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.3966, allocations: 3.938 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.3966, allocations: 8.25 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.415e-05/0.3967, allocations: 91.27 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3967, allocations: 0 / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002597/0.3969, allocations: 16 kB / 1.331 GB, free: 12.1 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.0007336/0.3977, allocations: 0.7319 MB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002869/0.3979, allocations: 75.88 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3979, allocations: 0 / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001154/0.3981, allocations: 27.98 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.3983, allocations: 13.12 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001892/0.4002, allocations: 1.42 MB / 1.333 GB, free: 9.711 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.842e-05/0.4003, allocations: 67.33 kB / 1.333 GB, free: 9.625 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.595e-05/0.4003, allocations: 4.094 kB / 1.333 GB, free: 9.621 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.826e-05/0.4004, allocations: 19.38 kB / 1.333 GB, free: 9.602 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.4004, allocations: 0 / 1.333 GB, free: 9.602 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03026/0.4306, allocations: 2.409 MB / 1.335 GB, free: 7.332 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.54, allocations: 15.16 kB / 1.335 GB, free: 7.324 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.506212994019734]