Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.Sampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",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.007456/0.007456, allocations: 100.6 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.001572/0.001572, allocations: 196.9 kB / 16.68 MB, free: 5.926 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.452/1.452, allocations: 222.9 MB / 240.4 MB, free: 15.07 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 2.325/2.325, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 67.89 kB / 0.9504 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9237/0.9252, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001647/0.9269, allocations: 0.6662 MB / 1.088 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001105/0.928, allocations: 1.045 MB / 1.089 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.296e-05/0.928, allocations: 4.906 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.119e-05/0.928, allocations: 0.7031 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.289e-05/0.9281, allocations: 9.625 kB / 1.089 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002545/0.9284, allocations: 41.64 kB / 1.089 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.963e-05/0.9285, allocations: 49.83 kB / 1.089 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.23e-05/0.9286, allocations: 9.984 kB / 1.089 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.174e-05/0.9287, allocations: 18.44 kB / 1.089 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.584e-05/0.9287, allocations: 23.88 kB / 1.089 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.9287, allocations: 4.094 kB / 1.089 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.055e-05/0.9288, allocations: 17.86 kB / 1.089 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.291e-05/0.9288, allocations: 16.73 kB / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.663e-05/0.9289, allocations: 19.38 kB / 1.089 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.9291, allocations: 57.06 kB / 1.089 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.9291, allocations: 4 kB / 1.089 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of FrontEnd: time 8.51e-07/0.9291, allocations: 5.062 kB / 1.089 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.9291, allocations: 0.5156 kB / 1.089 GB, free: 3.945 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005433/0.9296, allocations: 359.4 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.9297, allocations: 9.562 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.047e-05/0.9297, allocations: 38.41 kB / 1.09 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.788e-05/0.9297, allocations: 2.062 kB / 1.09 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.156e-05/0.9298, allocations: 176 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.9299, allocations: 10.7 kB / 1.09 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.697e-05/0.9299, allocations: 3.328 kB / 1.09 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.9301, allocations: 62.19 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.9301, allocations: 3.938 kB / 1.09 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.9301, allocations: 1.484 kB / 1.09 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.9301, allocations: 1 kB / 1.09 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.9303, allocations: 46.16 kB / 1.09 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003802/0.9307, allocations: 272.4 kB / 1.09 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001686/0.9309, allocations: 57.28 kB / 1.09 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.931, allocations: 29.72 kB / 1.09 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.931, allocations: 0 / 1.09 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001933/0.9312, allocations: 76.83 kB / 1.09 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.9312, allocations: 0 / 1.09 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0004228/0.9317, allocations: 125.5 kB / 1.091 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.9317, allocations: 57.97 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.229e-05/0.9318, allocations: 109.4 kB / 1.091 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.9318, allocations: 26.8 kB / 1.091 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.001e-05/0.9318, allocations: 86.03 kB / 1.091 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.9319, allocations: 15.2 kB / 1.091 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.119e-05/0.9319, allocations: 26.17 kB / 1.091 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.045e-05/0.932, allocations: 318 kB / 1.091 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.9321, allocations: 22.77 kB / 1.091 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.9322, allocations: 59.53 kB / 1.091 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000209/0.9324, allocations: 76.78 kB / 1.091 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.9324, allocations: 0 / 1.091 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002644/0.9327, allocations: 107 kB / 1.091 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.9327, allocations: 9.703 kB / 1.091 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.9327, allocations: 0.9688 kB / 1.091 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.9328, allocations: 5.125 kB / 1.091 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.9329, allocations: 14.48 kB / 1.092 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.9329, allocations: 1.969 kB / 1.092 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.831e-05/0.933, allocations: 11.8 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.933, allocations: 5.844 kB / 1.092 GB, free: 2.016 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 6.481e-05/0.9331, allocations: 115 kB / 1.092 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.45e-05/0.9331, allocations: 7.297 kB / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002848/0.9334, allocations: 99.97 kB / 1.092 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.9334, allocations: 0.75 kB / 1.092 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.9334, allocations: 1.578 kB / 1.092 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.9334, allocations: 4 kB / 1.092 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003975/0.9338, allocations: 359.8 kB / 1.092 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.9338, allocations: 0.75 kB / 1.092 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.169e-05/0.9339, allocations: 9.859 kB / 1.092 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.9339, allocations: 3.938 kB / 1.092 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.9339, allocations: 1.938 kB / 1.092 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.9339, allocations: 0.9062 kB / 1.092 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.9339, allocations: 3.984 kB / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.9342, allocations: 195.8 kB / 1.092 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.115e-05/0.9342, allocations: 82.94 kB / 1.092 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.9342, allocations: 5.75 kB / 1.092 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.886e-05/0.9343, allocations: 8.766 kB / 1.092 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.9344, allocations: 11.86 kB / 1.092 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.9344, allocations: 6.891 kB / 1.092 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.689e-05/0.9344, allocations: 85.11 kB / 1.092 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9344, allocations: 1.031 kB / 1.092 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002368/0.9347, allocations: 22.39 kB / 1.093 GB, free: 1.145 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0005429/0.9352, allocations: 0.7221 MB / 1.093 GB, free: 16.47 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002686/0.9355, allocations: 66.61 kB / 1.093 GB, free: 16.46 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.9355, allocations: 0 / 1.093 GB, free: 16.46 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.9357, allocations: 32.94 kB / 1.093 GB, free: 16.45 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.9359, allocations: 14.12 kB / 1.093 GB, free: 16.44 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.9375, allocations: 1.378 MB / 1.095 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.9377, allocations: 0.6856 MB / 1.095 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.164e-05/0.9378, allocations: 11.42 kB / 1.095 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.789e-05/0.9378, allocations: 16.16 kB / 1.095 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.9378, allocations: 0 / 1.095 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01829/0.9561, allocations: 1.752 MB / 1.097 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.535/8.491, allocations: 8.047 kB / 1.097 GB, free: 14.03 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_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_Sampler.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches