Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.007823/0.007823, allocations: 102 kB / 15.73 MB, free: 5.988 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.001728/0.001728, allocations: 194.5 kB / 16.67 MB, free: 5.926 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.398/2.398, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 66.98 kB / 0.9504 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2866, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001864/0.2885, allocations: 0.6811 MB / 1.088 GB, free: 1.34 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.2899, allocations: 1.075 MB / 1.089 GB, free: 256 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.353e-05/0.29, allocations: 3.938 kB / 1.089 GB, free: 252 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.339e-05/0.29, allocations: 3.938 kB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.415e-05/0.2901, allocations: 3.938 kB / 1.089 GB, free: 244 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003331/0.2904, allocations: 55.81 kB / 1.089 GB, free: 188 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001136/0.2906, allocations: 59.91 kB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.2907, allocations: 15.98 kB / 1.089 GB, free: 112 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.811e-05/0.2908, allocations: 23.92 kB / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.244e-05/0.2908, allocations: 39.83 kB / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.833e-05/0.2909, allocations: 4 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.165e-05/0.2909, allocations: 19.98 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.865e-05/0.291, allocations: 15.98 kB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.647e-05/0.291, allocations: 31.84 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000151/0.2912, allocations: 75.69 kB / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2912, allocations: 0 / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2912, allocations: 0 / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.518e-06/0.2912, allocations: 0 / 1.09 GB, free: 15.9 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006389/0.2919, allocations: 380.9 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2919, allocations: 8.031 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.793e-05/0.292, allocations: 42.73 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.945e-05/0.292, allocations: 8.844 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.2921, allocations: 164.6 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/0.2922, allocations: 8.375 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.001e-05/0.2922, allocations: 4.375 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002247/0.2924, allocations: 90.14 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2924, allocations: 3.938 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.2925, allocations: 4 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.2925, allocations: 0 / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002074/0.2927, allocations: 55.89 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000492/0.2932, allocations: 312.7 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002052/0.2934, allocations: 90.45 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.2935, allocations: 36.84 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.2936, allocations: 3.984 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002417/0.2938, allocations: 95.31 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.2938, allocations: 0 / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0004942/0.2943, allocations: 173.6 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.2944, allocations: 59.41 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.971e-05/0.2945, allocations: 109.8 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.2945, allocations: 33.7 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.961e-05/0.2945, allocations: 96.28 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.234e-05/0.2946, allocations: 23.72 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.254e-05/0.2946, allocations: 33.7 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.285e-05/0.2947, allocations: 322.8 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.2949, allocations: 35.97 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.295, allocations: 58.55 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002393/0.2953, allocations: 110.5 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2953, allocations: 0 / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003157/0.2956, allocations: 145.5 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.2956, allocations: 8.062 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.2956, allocations: 0 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.2957, allocations: 4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.2958, allocations: 15.98 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.2958, allocations: 4 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.942e-05/0.2959, allocations: 20.08 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.2959, allocations: 4 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 9.333e-05/0.296, allocations: 134.2 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.556e-05/0.296, allocations: 8 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003463/0.2964, allocations: 142.3 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.2964, allocations: 0 / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2964, allocations: 96 / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2964, allocations: 7.922 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005029/0.2969, allocations: 414.3 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2969, allocations: 4 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.164e-05/0.297, allocations: 11.98 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.297, allocations: 0 / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.297, allocations: 4 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.297, allocations: 0 / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.2971, allocations: 3.984 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003475/0.2974, allocations: 235.4 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.866e-05/0.2975, allocations: 92.88 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.213e-05/0.2975, allocations: 8 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.2976, allocations: 7.984 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.773e-05/0.2977, allocations: 7.938 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.2977, allocations: 7.984 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.278e-05/0.2977, allocations: 83.28 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.2977, allocations: 0 / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002629/0.298, allocations: 20 kB / 1.093 GB, free: 11.86 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006631/0.2987, allocations: 0.7747 MB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003217/0.299, allocations: 104.2 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.299, allocations: 4.062 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.2992, allocations: 39.98 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/0.2994, allocations: 15.92 kB / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.3011, allocations: 1.487 MB / 1.095 GB, free: 9.324 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.3013, allocations: 0.6889 MB / 1.096 GB, free: 8.609 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.89e-05/0.3014, allocations: 4.438 kB / 1.096 GB, free: 8.602 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.598e-05/0.3014, allocations: 23.42 kB / 1.096 GB, free: 8.582 MB / 0.8575 GB Notification: Performance of SimCode: time 3.61e-07/0.3014, allocations: 4 kB / 1.096 GB, free: 8.578 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02019/0.3216, allocations: 2.054 MB / 1.098 GB, free: 6.625 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.744/8.066, allocations: 5.312 kB / 1.098 GB, free: 6.621 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_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_FirstOrderHold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches