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.001151/0.001151, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.249/1.249, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.416/2.416, allocations: 461.9 MB / 0.7344 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 69.08 kB / 0.8987 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2552, allocations: 157.4 MB / 1.052 GB, free: 8.645 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001568/0.2568, allocations: 0.7501 MB / 1.053 GB, free: 7.895 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.2578, allocations: 1.069 MB / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.66e-05/0.2579, allocations: 0 / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.775e-05/0.2579, allocations: 3.938 kB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.32e-05/0.258, allocations: 11.92 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001635/0.2581, allocations: 35.97 kB / 1.054 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7e-05/0.2582, allocations: 51.84 kB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.852e-05/0.2583, allocations: 8 kB / 1.054 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.695e-05/0.2583, allocations: 23.91 kB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.622e-05/0.2584, allocations: 19.92 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.216e-05/0.2584, allocations: 4 kB / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.847e-05/0.2585, allocations: 19.98 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.768e-05/0.2585, allocations: 11.92 kB / 1.054 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.17e-05/0.2585, allocations: 31.91 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.2587, allocations: 47.86 kB / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.2587, allocations: 0 / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.675e-06/0.2587, allocations: 0 / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.2587, allocations: 3.938 kB / 1.054 GB, free: 6.543 MB / 0.8106 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.0005047/0.2592, allocations: 371.7 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.2592, allocations: 8.625 kB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.996e-05/0.2593, allocations: 42.69 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.653e-05/0.2593, allocations: 0.9375 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.106e-05/0.2594, allocations: 176.2 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.2594, allocations: 4.375 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.2594, allocations: 4.375 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.2596, allocations: 66.22 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.2596, allocations: 3.938 kB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.687e-06/0.2596, allocations: 0 / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-06/0.2596, allocations: 0 / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.2598, allocations: 51.89 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003603/0.2602, allocations: 276.8 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001425/0.2603, allocations: 58.48 kB / 1.055 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.495e-05/0.2604, allocations: 40.94 kB / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.2605, allocations: 4 kB / 1.056 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000186/0.2607, allocations: 79.38 kB / 1.056 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.2607, allocations: 0 / 1.056 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003575/0.261, allocations: 121.5 kB / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.2611, allocations: 59.41 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.162e-05/0.2611, allocations: 105.8 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.505e-05/0.2612, allocations: 33.7 kB / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.274e-05/0.2612, allocations: 80.14 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/0.2612, allocations: 23.66 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.86e-05/0.2613, allocations: 25.7 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.226e-05/0.2614, allocations: 318.8 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.236e-05/0.2615, allocations: 31.97 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.2616, allocations: 60.2 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001871/0.2618, allocations: 96.19 kB / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2618, allocations: 0 / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000246/0.262, allocations: 113.5 kB / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.262, allocations: 4 kB / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.262, allocations: 4.125 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.336e-06/0.2621, allocations: 7.938 kB / 1.057 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.719e-05/0.2622, allocations: 15.98 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.2622, allocations: 4 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.405e-05/0.2622, allocations: 7.984 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.2623, allocations: 4 kB / 1.057 GB, free: 4.02 MB / 0.8106 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.013e-05/0.2623, allocations: 121.7 kB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.369e-05/0.2623, allocations: 7.906 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002483/0.2626, allocations: 110 kB / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2626, allocations: 0 / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.2626, allocations: 0 / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.2626, allocations: 0 / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003827/0.263, allocations: 366.8 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.263, allocations: 0 / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.119e-05/0.2631, allocations: 12 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2631, allocations: 0 / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.2631, allocations: 3.984 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.2631, allocations: 192 / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.2631, allocations: 80 / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002478/0.2634, allocations: 211.2 kB / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.949e-05/0.2634, allocations: 85.09 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.2634, allocations: 4 kB / 1.058 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.172e-05/0.2635, allocations: 7.984 kB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.414e-05/0.2636, allocations: 11.94 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/0.2636, allocations: 256 / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.674e-05/0.2636, allocations: 91.27 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2636, allocations: 0 / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00023/0.2639, allocations: 19.84 kB / 1.058 GB, free: 2.883 MB / 0.8106 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.000478/0.2644, allocations: 0.7242 MB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002281/0.2646, allocations: 91.83 kB / 1.058 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2646, allocations: 256 / 1.058 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.575e-05/0.2647, allocations: 31.98 kB / 1.058 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002344/0.2649, allocations: 17.47 kB / 1.059 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.2662, allocations: 1.418 MB / 1.06 GB, free: 488 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001891/0.2664, allocations: 0.6924 MB / 1.061 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.163e-05/0.2665, allocations: 7.984 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.225e-05/0.2665, allocations: 11.44 kB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of SimCode: time 2.01e-07/0.2665, allocations: 0 / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.855/5.122, allocations: 1.655 MB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002217/5.122, allocations: 215.5 kB / 1.062 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.486/6.608, allocations: 3.562 kB / 1.062 GB, free: 13.97 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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