Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Examples.ZeroOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_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.007994/0.007993, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.001633/0.001633, allocations: 186.9 kB / 16.67 MB, free: 5.977 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.389/2.389, allocations: 390.3 MB / 0.6648 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 67.05 kB / 0.9504 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2928, allocations: 140.4 MB / 1.087 GB, free: 2.043 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001823/0.2947, allocations: 0.6715 MB / 1.088 GB, free: 1.371 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001876/0.2966, allocations: 1.068 MB / 1.089 GB, free: 296 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.082e-05/0.2966, allocations: 0 / 1.089 GB, free: 296 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.712e-05/0.2967, allocations: 3.938 kB / 1.089 GB, free: 292 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.2968, allocations: 11.92 kB / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.2972, allocations: 35.84 kB / 1.089 GB, free: 244 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001584/0.2973, allocations: 55.83 kB / 1.089 GB, free: 188 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.2975, allocations: 12 kB / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.762e-05/0.2975, allocations: 19.92 kB / 1.089 GB, free: 156 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.491e-05/0.2976, allocations: 27.91 kB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.2976, allocations: 4 kB / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.465e-05/0.2977, allocations: 15.98 kB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.358e-05/0.2978, allocations: 11.92 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.216e-05/0.2978, allocations: 23.92 kB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.298, allocations: 59.78 kB / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.298, allocations: 0 / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.252e-06/0.298, allocations: 0 / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.298, allocations: 4 kB / 1.089 GB, free: 8 kB / 0.8419 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.0007123/0.2988, allocations: 371.9 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.489e-05/0.2988, allocations: 8.031 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.695e-05/0.2989, allocations: 34.75 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.343e-05/0.2989, allocations: 4.844 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.2991, allocations: 169.2 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.2991, allocations: 4.375 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.284e-05/0.2992, allocations: 8.375 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003044/0.2995, allocations: 70.2 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.2995, allocations: 7.875 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.2995, allocations: 0 / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.2996, allocations: 0 / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002282/0.2998, allocations: 47.89 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005958/0.3004, allocations: 284.8 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.3006, allocations: 50.55 kB / 1.09 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.3007, allocations: 36.95 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.3007, allocations: 0 / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002371/0.301, allocations: 83.31 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.904e-06/0.301, allocations: 0 / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.000445/0.3014, allocations: 121.5 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.3015, allocations: 51.41 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.3017, allocations: 105.9 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.3018, allocations: 33.7 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.864e-05/0.3018, allocations: 88.06 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.845e-05/0.3019, allocations: 27.66 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.351e-05/0.302, allocations: 25.7 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002253/0.3022, allocations: 322.8 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.3024, allocations: 27.91 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001783/0.3026, allocations: 60.52 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003404/0.303, allocations: 96.19 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.303, allocations: 4 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004451/0.3034, allocations: 117.5 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.3035, allocations: 4 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.3035, allocations: 4 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.3035, allocations: 0 / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.3037, allocations: 15.98 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.3037, allocations: 4 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.3038, allocations: 11.89 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.3039, allocations: 8.125 kB / 1.092 GB, free: 13.48 MB / 0.8575 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.0001452/0.304, allocations: 127.6 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.208e-05/0.3041, allocations: 4 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004237/0.3045, allocations: 102 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.3045, allocations: 0 / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3045, allocations: 0 / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3045, allocations: 0 / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006936/0.3052, allocations: 374.5 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.3053, allocations: 0 / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.968e-05/0.3054, allocations: 11.94 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.939e-06/0.3054, allocations: 7.984 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.3055, allocations: 0 / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.3055, allocations: 0 / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3055, allocations: 0 / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004405/0.3059, allocations: 203.4 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.282e-05/0.306, allocations: 84.95 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.3061, allocations: 4 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.3062, allocations: 7.984 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.583e-05/0.3063, allocations: 15.88 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.3063, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.521e-05/0.3064, allocations: 87.27 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.51e-07/0.3064, allocations: 0 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004835/0.3069, allocations: 20 kB / 1.093 GB, free: 12.35 MB / 0.8575 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.0009198/0.3079, allocations: 0.7286 MB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004529/0.3083, allocations: 79.88 kB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3084, allocations: 0 / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001983/0.3086, allocations: 32.05 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004518/0.309, allocations: 16.11 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/0.3118, allocations: 1.415 MB / 1.095 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.3123, allocations: 0.6846 MB / 1.096 GB, free: 9.242 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.839e-05/0.3124, allocations: 8 kB / 1.096 GB, free: 9.234 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.793e-05/0.3125, allocations: 15.44 kB / 1.096 GB, free: 9.219 MB / 0.8575 GB Notification: Performance of SimCode: time 8.42e-07/0.3125, allocations: 0 / 1.096 GB, free: 9.219 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02687/0.3394, allocations: 1.812 MB / 1.097 GB, free: 7.508 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/8.163, allocations: 9.719 kB / 1.097 GB, free: 7.5 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.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_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches