Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_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.007735/0.007735, allocations: 97.34 kB / 15.73 MB, free: 6.055 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.002139/0.002139, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.886/2.886, allocations: 482.4 MB / 0.7548 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 67.84 kB / 1.083 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2899, allocations: 162.2 MB / 1.241 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00175/0.2917, allocations: 0.6957 MB / 1.242 GB, free: 9.539 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001315/0.293, allocations: 1.057 MB / 1.243 GB, free: 8.469 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.893e-05/0.2931, allocations: 0 / 1.243 GB, free: 8.469 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.678e-05/0.2931, allocations: 3.938 kB / 1.243 GB, free: 8.465 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.85e-05/0.2932, allocations: 11.86 kB / 1.243 GB, free: 8.453 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.2934, allocations: 55.81 kB / 1.243 GB, free: 8.398 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001049/0.2935, allocations: 63.91 kB / 1.243 GB, free: 8.336 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.268e-05/0.2936, allocations: 15.97 kB / 1.243 GB, free: 8.32 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.476e-05/0.2937, allocations: 27.92 kB / 1.243 GB, free: 8.293 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.553e-05/0.2938, allocations: 31.89 kB / 1.243 GB, free: 8.262 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.877e-05/0.2938, allocations: 15.88 kB / 1.243 GB, free: 8.246 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.516e-05/0.2939, allocations: 19.98 kB / 1.243 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.998e-05/0.2939, allocations: 7.984 kB / 1.243 GB, free: 8.219 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.424e-05/0.294, allocations: 35.84 kB / 1.243 GB, free: 8.184 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.2941, allocations: 79.69 kB / 1.244 GB, free: 8.105 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2941, allocations: 4 kB / 1.244 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.323e-06/0.2941, allocations: 0 / 1.244 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.2941, allocations: 0 / 1.244 GB, free: 8.102 MB / 0.9981 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.0006226/0.2948, allocations: 379.2 kB / 1.244 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.2948, allocations: 8.031 kB / 1.244 GB, free: 7.672 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.894e-05/0.2948, allocations: 38.73 kB / 1.244 GB, free: 7.625 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.096e-05/0.2949, allocations: 12.89 kB / 1.244 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.295, allocations: 172.3 kB / 1.244 GB, free: 7.406 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.295, allocations: 8.375 kB / 1.244 GB, free: 7.398 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.2951, allocations: 4.375 kB / 1.244 GB, free: 7.395 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002298/0.2953, allocations: 78.2 kB / 1.244 GB, free: 7.312 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.2953, allocations: 3.938 kB / 1.244 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.2953, allocations: 0 / 1.244 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.2953, allocations: 7.984 kB / 1.244 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002211/0.2956, allocations: 55.95 kB / 1.244 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005219/0.2961, allocations: 316.6 kB / 1.245 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.2963, allocations: 78.53 kB / 1.245 GB, free: 6.801 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/0.2965, allocations: 40.84 kB / 1.245 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.2965, allocations: 11.98 kB / 1.245 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000231/0.2967, allocations: 95.44 kB / 1.245 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.2967, allocations: 0 / 1.245 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0005158/0.2973, allocations: 173.5 kB / 1.245 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.2973, allocations: 55.41 kB / 1.245 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.545e-05/0.2974, allocations: 109.8 kB / 1.245 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.2974, allocations: 29.7 kB / 1.245 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.102e-05/0.2975, allocations: 88.36 kB / 1.245 GB, free: 6.152 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.986e-05/0.2975, allocations: 27.78 kB / 1.245 GB, free: 6.125 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.637e-05/0.2976, allocations: 37.7 kB / 1.245 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.2978, allocations: 322.8 kB / 1.246 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.2979, allocations: 43.97 kB / 1.246 GB, free: 5.715 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.2981, allocations: 54.55 kB / 1.246 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002637/0.2983, allocations: 102.4 kB / 1.246 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2983, allocations: 0 / 1.246 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003479/0.2987, allocations: 149.6 kB / 1.246 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.2987, allocations: 9.25 kB / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.2987, allocations: 0 / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.2987, allocations: 0 / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.2989, allocations: 19.98 kB / 1.246 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.2989, allocations: 3.938 kB / 1.246 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.34e-05/0.299, allocations: 23.88 kB / 1.246 GB, free: 5.336 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.299, allocations: 8.062 kB / 1.246 GB, free: 5.328 MB / 0.9981 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 0.0001035/0.2991, allocations: 122.3 kB / 1.246 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.721e-05/0.2991, allocations: 7.953 kB / 1.246 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000363/0.2995, allocations: 142.3 kB / 1.246 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2995, allocations: 4 kB / 1.246 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.2995, allocations: 0 / 1.246 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2995, allocations: 3.984 kB / 1.246 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005787/0.3001, allocations: 410.4 kB / 1.247 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3001, allocations: 0 / 1.247 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.567e-05/0.3002, allocations: 11.98 kB / 1.247 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3002, allocations: 0 / 1.247 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.875e-05/0.3002, allocations: 4 kB / 1.247 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3002, allocations: 0 / 1.247 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3003, allocations: 3.938 kB / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003785/0.3006, allocations: 235.4 kB / 1.247 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.201e-05/0.3007, allocations: 89.05 kB / 1.247 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.807e-05/0.3007, allocations: 0 / 1.247 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.3008, allocations: 12.23 kB / 1.247 GB, free: 4.195 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.218e-05/0.3009, allocations: 11.88 kB / 1.247 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.49e-05/0.3009, allocations: 15.92 kB / 1.247 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.354e-05/0.301, allocations: 87.28 kB / 1.247 GB, free: 4.082 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.301, allocations: 0 / 1.247 GB, free: 4.082 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002542/0.3012, allocations: 23.94 kB / 1.247 GB, free: 4.059 MB / 0.9981 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.0007349/0.302, allocations: 0.7788 MB / 1.248 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003187/0.3023, allocations: 96.16 kB / 1.248 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3023, allocations: 0 / 1.248 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.3025, allocations: 47.86 kB / 1.248 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.3027, allocations: 19.92 kB / 1.248 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001825/0.3046, allocations: 1.491 MB / 1.249 GB, free: 1.516 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.3049, allocations: 0.6885 MB / 1.25 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.451e-05/0.3049, allocations: 8.438 kB / 1.25 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.967e-05/0.305, allocations: 23.42 kB / 1.25 GB, free: 0.7695 MB / 0.9981 GB Notification: Performance of SimCode: time 2.41e-07/0.305, allocations: 0 / 1.25 GB, free: 0.7695 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.545/0.85, allocations: 2.05 MB / 1.252 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.961/8.811, allocations: 9.062 kB / 1.252 GB, free: 14.9 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches