Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_10_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.008121/0.008121, allocations: 104.3 kB / 15.73 MB, free: 5.953 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.001612/0.001612, allocations: 190.2 kB / 16.67 MB, free: 5.871 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.39/2.39, allocations: 437.1 MB / 0.7105 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 71.88 kB / 1.018 GB, free: 9.875 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6855/0.6869, allocations: 151.6 MB / 1.166 GB, free: 3.734 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001794/0.6887, allocations: 0.6779 MB / 1.167 GB, free: 3.059 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.69, allocations: 1.06 MB / 1.168 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.14e-05/0.6901, allocations: 0 / 1.168 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.911e-05/0.6901, allocations: 3.938 kB / 1.168 GB, free: 1.98 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.765e-05/0.6902, allocations: 7.938 kB / 1.168 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.6905, allocations: 51.81 kB / 1.168 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001166/0.6906, allocations: 51.8 kB / 1.168 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.6908, allocations: 11.98 kB / 1.168 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.908e-05/0.6908, allocations: 23.92 kB / 1.168 GB, free: 1.836 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.746e-05/0.6909, allocations: 23.91 kB / 1.168 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.56e-05/0.6909, allocations: 4 kB / 1.168 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.231e-05/0.691, allocations: 19.98 kB / 1.168 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.131e-05/0.691, allocations: 7.984 kB / 1.168 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.209e-05/0.6911, allocations: 23.88 kB / 1.168 GB, free: 1.758 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001471/0.6912, allocations: 58.5 kB / 1.168 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.6912, allocations: 0 / 1.168 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.885e-06/0.6912, allocations: 4 kB / 1.168 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.197e-06/0.6913, allocations: 3.938 kB / 1.168 GB, free: 1.695 MB / 0.8887 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.0006135/0.6919, allocations: 372.2 kB / 1.168 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.6919, allocations: 12.56 kB / 1.168 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.58e-05/0.692, allocations: 34.75 kB / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.112e-05/0.692, allocations: 4.922 kB / 1.169 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.6921, allocations: 168.3 kB / 1.169 GB, free: 1.02 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.6922, allocations: 4.375 kB / 1.169 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.6922, allocations: 4.375 kB / 1.169 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/0.6924, allocations: 70.22 kB / 1.169 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.6924, allocations: 11.88 kB / 1.169 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.6924, allocations: 0 / 1.169 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.6924, allocations: 0 / 1.169 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001863/0.6926, allocations: 47.89 kB / 1.169 GB, free: 0.8789 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004039/0.693, allocations: 284.8 kB / 1.169 GB, free: 0.5508 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.6932, allocations: 54.55 kB / 1.169 GB, free: 500 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.957e-05/0.6933, allocations: 28.97 kB / 1.169 GB, free: 468 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.6933, allocations: 4 kB / 1.169 GB, free: 464 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001852/0.6935, allocations: 75.31 kB / 1.169 GB, free: 376 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.6935, allocations: 4 kB / 1.169 GB, free: 372 kB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.0004048/0.694, allocations: 125.6 kB / 1.169 GB, free: 240 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.272e-05/0.694, allocations: 55.41 kB / 1.169 GB, free: 172 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.805e-05/0.6941, allocations: 105.8 kB / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.6941, allocations: 25.7 kB / 1.17 GB, free: 24 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 5.094e-05/0.6942, allocations: 88.12 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.521e-05/0.6942, allocations: 27.8 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.104e-05/0.6942, allocations: 21.72 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.6944, allocations: 322.8 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.6945, allocations: 31.91 kB / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.6946, allocations: 52.28 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.6948, allocations: 96.19 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.6948, allocations: 0 / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002829/0.6951, allocations: 113.5 kB / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.6952, allocations: 8 kB / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.6952, allocations: 0 / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.6952, allocations: 0 / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.6953, allocations: 19.98 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.6953, allocations: 8.297 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.805e-05/0.6954, allocations: 7.953 kB / 1.17 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.6954, allocations: 8.062 kB / 1.17 GB, free: 15.18 MB / 0.9044 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 9.575e-05/0.6955, allocations: 129.8 kB / 1.17 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.44e-05/0.6955, allocations: 7.984 kB / 1.17 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002841/0.6958, allocations: 106 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.6958, allocations: 0 / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.6959, allocations: 0 / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.6959, allocations: 0 / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004431/0.6963, allocations: 378.5 kB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.6963, allocations: 0 / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.347e-05/0.6964, allocations: 15.92 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.6964, allocations: 0 / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.6964, allocations: 256 / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.6964, allocations: 4 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.6964, allocations: 0 / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002854/0.6967, allocations: 203.4 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.266e-05/0.6968, allocations: 85.06 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.6968, allocations: 0 / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.6969, allocations: 7.984 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.794e-05/0.6969, allocations: 11.92 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.697, allocations: 4 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.768e-05/0.697, allocations: 83.28 kB / 1.171 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.61e-07/0.697, allocations: 4 kB / 1.171 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002464/0.6973, allocations: 12 kB / 1.171 GB, free: 14.04 MB / 0.9044 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.0005782/0.6978, allocations: 0.7474 MB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002644/0.6981, allocations: 71.89 kB / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.6981, allocations: 0 / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.6982, allocations: 31.97 kB / 1.172 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.6985, allocations: 11.94 kB / 1.172 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.7, allocations: 1.416 MB / 1.174 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.7003, allocations: 0.6823 MB / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.523e-05/0.7003, allocations: 7.984 kB / 1.174 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.856e-05/0.7004, allocations: 19.38 kB / 1.174 GB, free: 10.9 MB / 0.9044 GB Notification: Performance of SimCode: time 2.61e-07/0.7004, allocations: 0 / 1.174 GB, free: 10.9 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01678/0.7172, allocations: 1.811 MB / 1.176 GB, free: 9.191 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.625/8.342, allocations: 15.95 kB / 1.176 GB, free: 9.176 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches