Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.FirstOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_10_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.001176/0.001176, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001201/0.001201, allocations: 198.9 kB / 16.26 MB, free: 6.625 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.232/1.232, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.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.321/2.321, allocations: 437 MB / 0.7101 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 71.88 kB / 0.8689 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.556/0.5574, allocations: 151.6 MB / 1.017 GB, free: 2.68 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001597/0.559, allocations: 0.7577 MB / 1.018 GB, free: 1.926 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001037/0.56, allocations: 1.066 MB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.056e-05/0.5601, allocations: 0 / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.241e-05/0.5601, allocations: 7.922 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.32e-05/0.5602, allocations: 3.984 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001872/0.5604, allocations: 51.89 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.048e-05/0.5604, allocations: 63.84 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.49e-05/0.5605, allocations: 11.98 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.247e-05/0.5605, allocations: 23.92 kB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.255e-05/0.5606, allocations: 39.83 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.134e-05/0.5606, allocations: 4 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.002e-05/0.5607, allocations: 19.98 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.504e-05/0.5607, allocations: 15.98 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.98e-05/0.5607, allocations: 31.86 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.761e-05/0.5608, allocations: 75.75 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.5608, allocations: 0 / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.092e-06/0.5608, allocations: 0 / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 2.735e-06/0.5609, allocations: 0 / 1.019 GB, free: 0.5 MB / 0.7637 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.0004398/0.5613, allocations: 385.5 kB / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 2.703e-05/0.5613, allocations: 12.03 kB / 1.019 GB, free: 64 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.814e-05/0.5614, allocations: 38.73 kB / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.484e-05/0.5614, allocations: 8.844 kB / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.478e-05/0.5615, allocations: 172.3 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.5615, allocations: 4.375 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.672e-05/0.5615, allocations: 12.36 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.5617, allocations: 74.22 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.5617, allocations: 7.922 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.5617, allocations: 4 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.264e-06/0.5617, allocations: 0 / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.5619, allocations: 59.94 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003677/0.5623, allocations: 316.5 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.5625, allocations: 82.53 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.5626, allocations: 44.83 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/0.5626, allocations: 0 / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001878/0.5628, allocations: 95.44 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.5628, allocations: 0 / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004007/0.5632, allocations: 169.5 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.032e-05/0.5633, allocations: 63.39 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.531e-05/0.5633, allocations: 105.8 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.5634, allocations: 37.69 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.134e-05/0.5634, allocations: 80.38 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.662e-05/0.5634, allocations: 35.62 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.597e-05/0.5635, allocations: 29.72 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.278e-05/0.5636, allocations: 322.8 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.5637, allocations: 39.97 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.5638, allocations: 62.55 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.564, allocations: 102.7 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.564, allocations: 0 / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002782/0.5643, allocations: 145.5 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.598e-06/0.5643, allocations: 4 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.5643, allocations: 4 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.191e-06/0.5643, allocations: 0 / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.5644, allocations: 23.92 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.557e-06/0.5645, allocations: 0 / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.66e-05/0.5645, allocations: 16.05 kB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.5645, allocations: 4 kB / 1.021 GB, free: 13.73 MB / 0.7794 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 7.47e-05/0.5646, allocations: 130.3 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.465e-05/0.5646, allocations: 7.891 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002979/0.5649, allocations: 145.9 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.565, allocations: 3.984 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.565, allocations: 4 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.565, allocations: 4.469 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004503/0.5654, allocations: 402.3 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.5654, allocations: 0 / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.633e-05/0.5655, allocations: 11.98 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.5655, allocations: 3.938 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.5655, allocations: 4 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.5655, allocations: 8 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.5655, allocations: 0 / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/0.5658, allocations: 235.3 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.857e-05/0.5659, allocations: 85.02 kB / 1.022 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.5659, allocations: 4 kB / 1.022 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.876e-05/0.566, allocations: 7.984 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.547e-05/0.566, allocations: 15.92 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.5661, allocations: 4 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.492e-05/0.5661, allocations: 83.28 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5661, allocations: 3.938 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002247/0.5663, allocations: 23.98 kB / 1.023 GB, free: 12.46 MB / 0.7794 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.0005205/0.5669, allocations: 0.771 MB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002534/0.5671, allocations: 99.88 kB / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5671, allocations: 0 / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.5673, allocations: 60.11 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002135/0.5675, allocations: 14.59 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.5688, allocations: 1.511 MB / 1.025 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001766/0.569, allocations: 0.6846 MB / 1.026 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.546e-05/0.5691, allocations: 12.42 kB / 1.026 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.428e-05/0.5691, allocations: 15.77 kB / 1.026 GB, free: 9.16 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.5691, allocations: 0 / 1.026 GB, free: 9.16 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.011/1.58, allocations: 1.88 MB / 1.028 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/1.58, allocations: 216.5 kB / 1.028 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/3.352, allocations: 6.625 kB / 1.028 GB, free: 7.141 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches