Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Sampler,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_10_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.0008908/0.0008907, allocations: 90.53 kB / 15.35 MB, free: 0.7422 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.005286/0.005286, allocations: 180.8 kB / 16.26 MB, free: 6.605 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.201/1.201, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.312/2.312, allocations: 437.8 MB / 0.7121 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005666/0.0005667, allocations: 12 kB / 0.8729 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5841/0.5847, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0007352/0.5854, allocations: 397 kB / 1.024 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001132/0.5866, allocations: 1.042 MB / 1.025 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.684e-05/0.5866, allocations: 8 kB / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.513e-05/0.5866, allocations: 0 / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.241e-05/0.5867, allocations: 7.922 kB / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000196/0.5869, allocations: 31.97 kB / 1.025 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.711e-05/0.587, allocations: 43.86 kB / 1.025 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.156e-05/0.5871, allocations: 19.95 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.396e-05/0.5871, allocations: 11.94 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.274e-05/0.5872, allocations: 19.91 kB / 1.025 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.344e-05/0.5872, allocations: 4 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.543e-05/0.5873, allocations: 19.98 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.645e-05/0.5873, allocations: 7.938 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.231e-05/0.5873, allocations: 45.61 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.909e-05/0.5875, allocations: 47.86 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.5875, allocations: 0 / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5875, allocations: 3.938 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.657e-06/0.5875, allocations: 0 / 1.025 GB, free: 14.14 MB / 0.7794 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.0004858/0.588, allocations: 365.7 kB / 1.025 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.588, allocations: 12.02 kB / 1.025 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.881e-05/0.5881, allocations: 38.75 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.484e-05/0.5881, allocations: 4.844 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.791e-05/0.5882, allocations: 172.3 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.778e-06/0.5882, allocations: 384 / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/0.5882, allocations: 4.375 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.5884, allocations: 77.91 kB / 1.025 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.091e-06/0.5884, allocations: 0 / 1.025 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.5884, allocations: 0 / 1.025 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.5884, allocations: 4 kB / 1.025 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001902/0.5886, allocations: 55.95 kB / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003773/0.589, allocations: 280.7 kB / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.5892, allocations: 58.55 kB / 1.026 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.5893, allocations: 36.97 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.891e-05/0.5893, allocations: 0 / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000191/0.5895, allocations: 79.38 kB / 1.026 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 3.867e-06/0.5895, allocations: 4 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0003915/0.5899, allocations: 137.6 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.59, allocations: 51.41 kB / 1.026 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.187e-05/0.5901, allocations: 109.8 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.5901, allocations: 25.7 kB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.711e-05/0.5902, allocations: 92.05 kB / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.145e-05/0.5902, allocations: 15.81 kB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.703e-05/0.5902, allocations: 21.7 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.5903, allocations: 314.8 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.5904, allocations: 39.97 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.5905, allocations: 47.42 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002196/0.5908, allocations: 91.33 kB / 1.027 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.5908, allocations: 0 / 1.027 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002676/0.5911, allocations: 117.5 kB / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.5911, allocations: 8 kB / 1.027 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.5911, allocations: 0 / 1.027 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.686e-06/0.5911, allocations: 0 / 1.027 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.293e-05/0.5912, allocations: 16.48 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.341e-06/0.5912, allocations: 4 kB / 1.027 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.532e-05/0.5913, allocations: 16.08 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.645e-06/0.5913, allocations: 4 kB / 1.027 GB, free: 11.63 MB / 0.7794 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 7.721e-05/0.5914, allocations: 122.2 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.449e-05/0.5914, allocations: 11.91 kB / 1.027 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002748/0.5917, allocations: 118 kB / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.5917, allocations: 0 / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.5917, allocations: 0 / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.5917, allocations: 7.969 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000411/0.5921, allocations: 366.4 kB / 1.028 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.5921, allocations: 0 / 1.028 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.833e-05/0.5922, allocations: 11.98 kB / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.696e-06/0.5922, allocations: 4 kB / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.5922, allocations: 0 / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.5922, allocations: 0 / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.5922, allocations: 3.938 kB / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.5925, allocations: 211.3 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.26e-05/0.5926, allocations: 81.05 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.5926, allocations: 0 / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.79e-05/0.5927, allocations: 19.98 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.5927, allocations: 11.92 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.5927, allocations: 4 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.324e-05/0.5928, allocations: 79.47 kB / 1.028 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5928, allocations: 0 / 1.028 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002253/0.593, allocations: 16 kB / 1.028 GB, free: 10.48 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: 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.0005566/0.5936, allocations: 0.7438 MB / 1.029 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002345/0.5938, allocations: 79.89 kB / 1.029 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.5938, allocations: 0 / 1.029 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.594, allocations: 39.91 kB / 1.029 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002436/0.5942, allocations: 11.94 kB / 1.029 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.5956, allocations: 1.413 MB / 1.03 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.5959, allocations: 0.6848 MB / 1.031 GB, free: 7.359 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.539e-05/0.5959, allocations: 0 / 1.031 GB, free: 7.359 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.653e-05/0.596, allocations: 23.36 kB / 1.031 GB, free: 7.34 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.596, allocations: 0 / 1.031 GB, free: 7.34 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0145/0.6105, allocations: 1.481 MB / 1.032 GB, free: 5.98 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002271/0.6107, allocations: 195 kB / 1.033 GB, free: 5.73 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.569/2.18, allocations: 2.875 kB / 1.033 GB, free: 5.73 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches