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.008467/0.008467, allocations: 99.05 kB / 15.73 MB, free: 6.004 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.002036/0.002036, allocations: 199.4 kB / 16.68 MB, free: 5.934 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.37/1.37, 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 11.0.1-master/package.mo): time 2.734/2.734, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 67.88 kB / 1.054 GB, free: 7.672 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.3683, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001787/0.3702, allocations: 0.6713 MB / 1.208 GB, free: 9.488 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001308/0.3715, allocations: 1.061 MB / 1.209 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.94e-05/0.3716, allocations: 0 / 1.209 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.796e-05/0.3716, allocations: 3.938 kB / 1.209 GB, free: 8.41 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.792e-05/0.3717, allocations: 7.938 kB / 1.209 GB, free: 8.402 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002755/0.372, allocations: 39.89 kB / 1.209 GB, free: 8.363 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.214e-05/0.3721, allocations: 51.78 kB / 1.209 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.802e-05/0.3722, allocations: 23.97 kB / 1.209 GB, free: 8.289 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.873e-05/0.3722, allocations: 15.94 kB / 1.209 GB, free: 8.273 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.125e-05/0.3723, allocations: 23.91 kB / 1.209 GB, free: 8.25 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.367e-05/0.3723, allocations: 7.938 kB / 1.209 GB, free: 8.242 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.477e-05/0.3724, allocations: 19.98 kB / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.034e-05/0.3724, allocations: 7.984 kB / 1.209 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.388e-05/0.3725, allocations: 23.86 kB / 1.209 GB, free: 8.191 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.3726, allocations: 63.77 kB / 1.209 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.3726, allocations: 4 kB / 1.209 GB, free: 8.125 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3726, allocations: 0 / 1.209 GB, free: 8.125 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.848e-06/0.3726, allocations: 0 / 1.209 GB, free: 8.125 MB / 0.9669 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.0005535/0.3732, allocations: 371.6 kB / 1.21 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.3732, allocations: 12.62 kB / 1.21 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.345e-05/0.3733, allocations: 34.75 kB / 1.21 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.007e-05/0.3733, allocations: 4.844 kB / 1.21 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.3734, allocations: 172.3 kB / 1.21 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.3735, allocations: 384 / 1.21 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.3735, allocations: 4.375 kB / 1.21 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/0.3737, allocations: 78.14 kB / 1.21 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.3737, allocations: 3.938 kB / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.417e-06/0.3737, allocations: 0 / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.3737, allocations: 0 / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.3739, allocations: 43.95 kB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004029/0.3743, allocations: 284.7 kB / 1.21 GB, free: 6.984 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.3745, allocations: 62.48 kB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.287e-05/0.3746, allocations: 24.97 kB / 1.21 GB, free: 6.887 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.3746, allocations: 7.984 kB / 1.21 GB, free: 6.879 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001963/0.3748, allocations: 79.44 kB / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.684e-06/0.3748, allocations: 0 / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003927/0.3752, allocations: 117.6 kB / 1.21 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.174e-05/0.3753, allocations: 59.34 kB / 1.211 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.3754, allocations: 109.8 kB / 1.211 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.3754, allocations: 25.7 kB / 1.211 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.622e-05/0.3755, allocations: 84.55 kB / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.368e-05/0.3755, allocations: 27.73 kB / 1.211 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.3756, allocations: 25.72 kB / 1.211 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.3757, allocations: 318.8 kB / 1.211 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.626e-05/0.3758, allocations: 23.98 kB / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.3759, allocations: 56.27 kB / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.3762, allocations: 96.38 kB / 1.211 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.3762, allocations: 0 / 1.211 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002618/0.3764, allocations: 125.4 kB / 1.211 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.3765, allocations: 8 kB / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.3765, allocations: 0 / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.3765, allocations: 0 / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.3766, allocations: 23.92 kB / 1.211 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.828e-05/0.3767, allocations: 3.938 kB / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.008e-05/0.3768, allocations: 11.98 kB / 1.211 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.3768, allocations: 8.125 kB / 1.211 GB, free: 5.598 MB / 0.9669 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 8e-05/0.3769, allocations: 117.8 kB / 1.212 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.44e-05/0.3769, allocations: 7.984 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003696/0.3773, allocations: 113.8 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.3773, allocations: 256 / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3773, allocations: 0 / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.3773, allocations: 8 kB / 1.212 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004178/0.3777, allocations: 358.5 kB / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.3777, allocations: 0 / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.333e-05/0.3778, allocations: 11.98 kB / 1.212 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.3778, allocations: 0 / 1.212 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.3778, allocations: 0 / 1.212 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.3778, allocations: 3.938 kB / 1.212 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3778, allocations: 0 / 1.212 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002697/0.3781, allocations: 199.4 kB / 1.212 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.3782, allocations: 85.02 kB / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.3783, allocations: 0 / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.619e-05/0.3784, allocations: 11.98 kB / 1.212 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.922e-05/0.3784, allocations: 11.92 kB / 1.212 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.3784, allocations: 4 kB / 1.212 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.798e-05/0.3785, allocations: 87.28 kB / 1.212 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3785, allocations: 0 / 1.212 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002412/0.3787, allocations: 15.94 kB / 1.212 GB, free: 4.473 MB / 0.9669 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.0005723/0.3793, allocations: 0.7402 MB / 1.213 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002318/0.3795, allocations: 67.89 kB / 1.213 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3795, allocations: 0 / 1.213 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.3797, allocations: 40.03 kB / 1.213 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.3799, allocations: 11.03 kB / 1.213 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.3814, allocations: 1.438 MB / 1.215 GB, free: 2.055 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/0.3816, allocations: 0.6807 MB / 1.215 GB, free: 1.348 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.451e-05/0.3817, allocations: 7.938 kB / 1.215 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.175e-05/0.3817, allocations: 19.42 kB / 1.215 GB, free: 1.32 MB / 0.9669 GB Notification: Performance of SimCode: time 2.31e-07/0.3817, allocations: 0 / 1.215 GB, free: 1.32 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01642/0.3982, allocations: 1.824 MB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.76/8.158, allocations: 11.81 kB / 1.217 GB, free: 15.61 MB / 0.9825 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