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.008686/0.008686, allocations: 100.7 kB / 15.73 MB, free: 6.023 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.002155/0.002155, allocations: 194.9 kB / 16.67 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 2.664/2.664, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 3.17/3.17, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 67.89 kB / 0.9504 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9618/0.9633, allocations: 140.4 MB / 1.087 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002134/0.9655, allocations: 0.6786 MB / 1.088 GB, free: 4.84 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001377/0.9669, allocations: 1.069 MB / 1.089 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.299e-05/0.9669, allocations: 1.125 kB / 1.089 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.188e-05/0.967, allocations: 4.641 kB / 1.089 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.139e-05/0.9671, allocations: 9.688 kB / 1.089 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002954/0.9674, allocations: 48.3 kB / 1.089 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.9675, allocations: 68.77 kB / 1.089 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.9676, allocations: 15.3 kB / 1.089 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.369e-05/0.9677, allocations: 31.14 kB / 1.089 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.718e-05/0.9678, allocations: 28.3 kB / 1.089 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.027e-05/0.9678, allocations: 10.34 kB / 1.089 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.096e-05/0.9679, allocations: 20.77 kB / 1.089 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.372e-05/0.9679, allocations: 18.31 kB / 1.089 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.702e-05/0.968, allocations: 26.67 kB / 1.089 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001745/0.9681, allocations: 74.8 kB / 1.09 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.9682, allocations: 0.8438 kB / 1.09 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.653e-06/0.9682, allocations: 0 / 1.09 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.035e-06/0.9682, allocations: 1 kB / 1.09 GB, free: 3.879 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.0005997/0.9688, allocations: 387.9 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.9688, allocations: 10.56 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.972e-05/0.9689, allocations: 38 kB / 1.09 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.902e-05/0.9689, allocations: 8.484 kB / 1.09 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.604e-05/0.969, allocations: 173.3 kB / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.083e-05/0.9691, allocations: 11.72 kB / 1.09 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.965e-05/0.9691, allocations: 9.828 kB / 1.09 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002375/0.9693, allocations: 81.27 kB / 1.09 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.9693, allocations: 4.5 kB / 1.09 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.9694, allocations: 5.562 kB / 1.09 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.9694, allocations: 1 kB / 1.09 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002127/0.9696, allocations: 53.59 kB / 1.09 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004888/0.9701, allocations: 308 kB / 1.091 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002273/0.9703, allocations: 81.84 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/0.9705, allocations: 39.55 kB / 1.091 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.9705, allocations: 6.359 kB / 1.091 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002401/0.9707, allocations: 94.41 kB / 1.091 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.9707, allocations: 0 / 1.091 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.000522/0.9713, allocations: 169 kB / 1.091 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.805e-05/0.9713, allocations: 63.77 kB / 1.091 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.617e-05/0.9714, allocations: 104.9 kB / 1.091 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.9714, allocations: 32.59 kB / 1.091 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.438e-05/0.9715, allocations: 99.73 kB / 1.091 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.552e-05/0.9715, allocations: 25.55 kB / 1.091 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.845e-05/0.9715, allocations: 31.78 kB / 1.091 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.812e-05/0.9716, allocations: 322.6 kB / 1.092 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.9717, allocations: 37.7 kB / 1.092 GB, free: 2 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.9719, allocations: 69.94 kB / 1.092 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002394/0.9721, allocations: 98.44 kB / 1.092 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.9721, allocations: 0.7969 kB / 1.092 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003387/0.9725, allocations: 141.3 kB / 1.092 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.9725, allocations: 10.89 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.9725, allocations: 0 / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.9725, allocations: 1.625 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.9727, allocations: 23.08 kB / 1.092 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.9727, allocations: 2.328 kB / 1.092 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.911e-05/0.9728, allocations: 15.48 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.9728, allocations: 4.578 kB / 1.092 GB, free: 1.824 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 8.692e-05/0.9729, allocations: 133.3 kB / 1.092 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.721e-05/0.9729, allocations: 14.53 kB / 1.092 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003832/0.9733, allocations: 140 kB / 1.092 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.9733, allocations: 1.594 kB / 1.092 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.9733, allocations: 0.7656 kB / 1.092 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.9734, allocations: 1.5 kB / 1.092 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005146/0.9739, allocations: 416.3 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.9739, allocations: 4 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.271e-05/0.974, allocations: 14.97 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.974, allocations: 1.422 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.974, allocations: 2.391 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.974, allocations: 0 / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.974, allocations: 1.547 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003578/0.9744, allocations: 239.2 kB / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.356e-05/0.9744, allocations: 87.7 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.9744, allocations: 5.703 kB / 1.093 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.9745, allocations: 9.594 kB / 1.093 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.9746, allocations: 9.406 kB / 1.093 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.9746, allocations: 7.641 kB / 1.093 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.984e-05/0.9746, allocations: 81.48 kB / 1.093 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9746, allocations: 0 / 1.093 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002615/0.9749, allocations: 24.67 kB / 1.093 GB, free: 0.8945 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.0006688/0.9756, allocations: 0.7757 MB / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004112/0.976, allocations: 105.1 kB / 1.094 GB, free: 16.17 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.976, allocations: 0 / 1.094 GB, free: 16.17 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.9762, allocations: 47.73 kB / 1.094 GB, free: 16.16 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.9765, allocations: 10.36 kB / 1.094 GB, free: 16.15 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001861/0.9784, allocations: 1.506 MB / 1.095 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.9787, allocations: 0.6865 MB / 1.096 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.34e-05/0.9788, allocations: 7.25 kB / 1.096 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.428e-05/0.9788, allocations: 17.91 kB / 1.096 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of SimCode: time 2.21e-07/0.9788, allocations: 0 / 1.096 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01934/0.9982, allocations: 2.049 MB / 1.098 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.076/9.074, allocations: 6.297 kB / 1.098 GB, free: 13.71 MB / 0.8731 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