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.01084/0.01084, allocations: 99.91 kB / 15.73 MB, free: 6.492 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.002119/0.002119, allocations: 201.3 kB / 16.68 MB, free: 6.375 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.531/1.531, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.485/2.485, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 71.19 kB / 0.9504 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.276, allocations: 140.4 MB / 1.087 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001977/0.278, allocations: 0.6694 MB / 1.088 GB, free: 1.34 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001455/0.2795, allocations: 1.064 MB / 1.089 GB, free: 268 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.603e-05/0.2796, allocations: 0 / 1.089 GB, free: 268 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.199e-05/0.2796, allocations: 3.938 kB / 1.089 GB, free: 264 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.695e-05/0.2797, allocations: 11.91 kB / 1.089 GB, free: 252 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002965/0.28, allocations: 43.84 kB / 1.089 GB, free: 208 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.551e-05/0.2801, allocations: 43.91 kB / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.2802, allocations: 11.98 kB / 1.089 GB, free: 152 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.687e-05/0.2803, allocations: 23.92 kB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.545e-05/0.2804, allocations: 23.92 kB / 1.089 GB, free: 104 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.2804, allocations: 4 kB / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.503e-05/0.2805, allocations: 15.98 kB / 1.089 GB, free: 84 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.283e-05/0.2805, allocations: 19.91 kB / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.889e-05/0.2805, allocations: 19.92 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.2807, allocations: 63.94 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2807, allocations: 0 / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.322e-06/0.2807, allocations: 0 / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.2807, allocations: 0 / 1.089 GB, free: 15.98 MB / 0.8575 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.0005842/0.2813, allocations: 367.3 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.2814, allocations: 12.03 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.756e-05/0.2814, allocations: 38.73 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.435e-05/0.2815, allocations: 8.891 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.2816, allocations: 160.4 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.2816, allocations: 4.375 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.678e-05/0.2816, allocations: 4.375 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.2818, allocations: 70.16 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.2818, allocations: 3.938 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.2818, allocations: 4 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2819, allocations: 4 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/0.282, allocations: 39.95 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004177/0.2825, allocations: 280.8 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001615/0.2826, allocations: 66.48 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.2828, allocations: 32.95 kB / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.2828, allocations: 0 / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.283, allocations: 79.36 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.283, allocations: 0 / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004263/0.2835, allocations: 121.6 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.2835, allocations: 59.34 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.213e-05/0.2836, allocations: 109.8 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.2836, allocations: 33.62 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.855e-05/0.2837, allocations: 88.09 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.233e-05/0.2837, allocations: 15.97 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.748e-05/0.2838, allocations: 37.7 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.083e-05/0.2839, allocations: 314.8 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.284, allocations: 31.97 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.2841, allocations: 60.45 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000204/0.2843, allocations: 96.17 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.2843, allocations: 4 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002715/0.2846, allocations: 121.5 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2846, allocations: 7.984 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2846, allocations: 0 / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.2846, allocations: 4 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.2848, allocations: 15.98 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.2848, allocations: 3.938 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.084e-05/0.2849, allocations: 12 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.2849, allocations: 3.984 kB / 1.092 GB, free: 13.45 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 8.99e-05/0.285, allocations: 129.8 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.384e-05/0.285, allocations: 3.953 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000276/0.2853, allocations: 102 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.2853, allocations: 4 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2853, allocations: 3.938 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2853, allocations: 0 / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004196/0.2857, allocations: 358.5 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.2857, allocations: 0 / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.368e-05/0.2858, allocations: 11.98 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.2858, allocations: 0 / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.2858, allocations: 0 / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.2858, allocations: 7.984 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2858, allocations: 3.938 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002725/0.2861, allocations: 199.4 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.219e-05/0.2862, allocations: 77.11 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/0.2862, allocations: 3.984 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.848e-05/0.2863, allocations: 12 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.929e-05/0.2863, allocations: 7.922 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.2864, allocations: 4 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.885e-05/0.2864, allocations: 87.45 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2864, allocations: 4 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000244/0.2867, allocations: 15.94 kB / 1.093 GB, free: 12.32 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.0006071/0.2873, allocations: 0.7396 MB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002587/0.2875, allocations: 72.5 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2876, allocations: 0 / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.2877, allocations: 31.98 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.2879, allocations: 16.05 kB / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.2895, allocations: 1.408 MB / 1.095 GB, free: 9.93 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.2897, allocations: 0.6846 MB / 1.096 GB, free: 9.219 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.145e-05/0.2898, allocations: 11.98 kB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.174e-05/0.2898, allocations: 15.44 kB / 1.096 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.2898, allocations: 0 / 1.096 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01865/0.3085, allocations: 1.819 MB / 1.097 GB, free: 7.473 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.265/8.573, allocations: 3.375 kB / 1.097 GB, free: 7.473 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