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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001798/0.001798, allocations: 197.1 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.237/1.237, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.511/2.511, allocations: 469.4 MB / 0.742 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 61.23 kB / 0.9083 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2458, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001799/0.2477, allocations: 0.664 MB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001146/0.2488, allocations: 1.074 MB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.208e-05/0.2489, allocations: 3.938 kB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.163e-05/0.2489, allocations: 0 / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.53e-05/0.249, allocations: 11.86 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002488/0.2493, allocations: 43.89 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.436e-05/0.2493, allocations: 55.84 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.61e-05/0.2494, allocations: 11.98 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.05e-05/0.2495, allocations: 19.92 kB / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.804e-05/0.2496, allocations: 19.92 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.116e-05/0.2496, allocations: 4 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.372e-05/0.2496, allocations: 19.97 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.905e-05/0.2497, allocations: 15.92 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.602e-05/0.2497, allocations: 19.92 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.2498, allocations: 59.84 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2499, allocations: 4 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2499, allocations: 0 / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.183e-06/0.2499, allocations: 0 / 1.066 GB, free: 12.5 MB / 0.8262 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.000509/0.2504, allocations: 371.6 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.2504, allocations: 8.031 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.095e-05/0.2505, allocations: 38.67 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.067e-05/0.2505, allocations: 8.844 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.116e-05/0.2506, allocations: 168.3 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.2506, allocations: 8.375 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.425e-05/0.2506, allocations: 4.375 kB / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001842/0.2508, allocations: 62.22 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.2508, allocations: 3.938 kB / 1.066 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.2508, allocations: 0 / 1.066 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.2509, allocations: 4 kB / 1.066 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001846/0.251, allocations: 51.89 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003775/0.2514, allocations: 276.8 kB / 1.067 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001567/0.2516, allocations: 54.55 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.2517, allocations: 36.95 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.2517, allocations: 4 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001889/0.2519, allocations: 87.2 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.2519, allocations: 0 / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004008/0.2523, allocations: 117.6 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.2524, allocations: 51.41 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.31e-05/0.2525, allocations: 105.9 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.2525, allocations: 29.7 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.823e-05/0.2525, allocations: 92.11 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.976e-05/0.2525, allocations: 19.66 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.161e-05/0.2526, allocations: 25.7 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.178e-05/0.2527, allocations: 326.7 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.2528, allocations: 23.97 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.2529, allocations: 68.2 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.2531, allocations: 88.2 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.2531, allocations: 7.984 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000268/0.2534, allocations: 109.5 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.2534, allocations: 9.391 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.2534, allocations: 0 / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.2535, allocations: 4 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.2536, allocations: 20.36 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.2536, allocations: 0 / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.5e-05/0.2537, allocations: 19.84 kB / 1.068 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.2537, allocations: 7.984 kB / 1.068 GB, free: 9.973 MB / 0.8262 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.693e-05/0.2538, allocations: 121.7 kB / 1.068 GB, free: 9.844 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.157e-05/0.2538, allocations: 0 / 1.068 GB, free: 9.844 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00027/0.2541, allocations: 106.1 kB / 1.068 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2541, allocations: 7.984 kB / 1.068 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2541, allocations: 0 / 1.068 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.2541, allocations: 0 / 1.068 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000409/0.2545, allocations: 366.3 kB / 1.068 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2545, allocations: 0 / 1.068 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.632e-05/0.2546, allocations: 11.98 kB / 1.068 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.2546, allocations: 0 / 1.068 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.2546, allocations: 8 kB / 1.068 GB, free: 9.293 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2546, allocations: 0 / 1.068 GB, free: 9.293 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2546, allocations: 3.984 kB / 1.068 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002723/0.2549, allocations: 195.4 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.002e-05/0.2549, allocations: 81.02 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.255, allocations: 3.984 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.905e-05/0.2551, allocations: 12 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.4e-05/0.2551, allocations: 7.922 kB / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.2551, allocations: 8 kB / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.698e-05/0.2552, allocations: 83.27 kB / 1.069 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2552, allocations: 0 / 1.069 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002444/0.2554, allocations: 19.94 kB / 1.069 GB, free: 8.852 MB / 0.8262 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.0005162/0.2559, allocations: 0.7326 MB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002487/0.2562, allocations: 75.81 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2562, allocations: 0 / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001115/0.2563, allocations: 28.86 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002444/0.2566, allocations: 23.92 kB / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.258, allocations: 1.406 MB / 1.071 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001865/0.2582, allocations: 0.6807 MB / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.103e-05/0.2582, allocations: 8 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.622e-05/0.2583, allocations: 23.36 kB / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.2583, allocations: 0 / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01585/0.2741, allocations: 1.801 MB / 1.074 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.892/7.166, allocations: 9.156 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches