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.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.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.007477/0.007477, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001884/0.001884, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.639/2.639, allocations: 437.1 MB / 0.7105 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002247/0.002247, allocations: 63.89 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3287, allocations: 151.6 MB / 1.166 GB, free: 7.297 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001779/0.3306, allocations: 0.6659 MB / 1.167 GB, free: 6.625 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001323/0.3319, allocations: 1.051 MB / 1.168 GB, free: 5.559 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.56e-05/0.332, allocations: 0 / 1.168 GB, free: 5.559 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.837e-05/0.332, allocations: 0 / 1.168 GB, free: 5.559 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.05e-05/0.3321, allocations: 11.86 kB / 1.168 GB, free: 5.547 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002791/0.3324, allocations: 39.89 kB / 1.168 GB, free: 5.508 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.957e-05/0.3325, allocations: 47.86 kB / 1.168 GB, free: 5.461 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.831e-05/0.3326, allocations: 15.98 kB / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.918e-05/0.3327, allocations: 15.92 kB / 1.168 GB, free: 5.43 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.37e-05/0.3327, allocations: 23.91 kB / 1.168 GB, free: 5.406 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.3328, allocations: 4 kB / 1.168 GB, free: 5.402 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.909e-05/0.3328, allocations: 19.98 kB / 1.168 GB, free: 5.383 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.104e-05/0.3329, allocations: 11.92 kB / 1.168 GB, free: 5.371 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.415e-05/0.3329, allocations: 15.94 kB / 1.168 GB, free: 5.355 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.333, allocations: 59.78 kB / 1.168 GB, free: 5.297 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3331, allocations: 8 kB / 1.168 GB, free: 5.289 MB / 0.92 GB Notification: Performance of FrontEnd: time 9.62e-07/0.3331, allocations: 0 / 1.168 GB, free: 5.289 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.521e-06/0.3331, allocations: 0 / 1.168 GB, free: 5.289 MB / 0.92 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.0005769/0.3337, allocations: 362.2 kB / 1.168 GB, free: 4.887 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.3337, allocations: 12.03 kB / 1.168 GB, free: 4.875 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.949e-05/0.3337, allocations: 34.75 kB / 1.168 GB, free: 4.832 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.079e-05/0.3338, allocations: 8.781 kB / 1.168 GB, free: 4.824 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.3339, allocations: 169.2 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.3339, allocations: 8.359 kB / 1.169 GB, free: 4.613 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.3339, allocations: 4.375 kB / 1.169 GB, free: 4.609 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001898/0.3341, allocations: 62.22 kB / 1.169 GB, free: 4.543 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.3341, allocations: 3.938 kB / 1.169 GB, free: 4.539 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.3342, allocations: 4 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.3342, allocations: 3.938 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.3344, allocations: 43.95 kB / 1.169 GB, free: 4.488 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00041/0.3348, allocations: 284.8 kB / 1.169 GB, free: 4.16 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.3349, allocations: 54.55 kB / 1.169 GB, free: 4.098 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.332e-05/0.335, allocations: 24.97 kB / 1.169 GB, free: 4.07 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.3351, allocations: 0 / 1.169 GB, free: 4.07 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002142/0.3353, allocations: 83.28 kB / 1.169 GB, free: 3.977 MB / 0.92 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.3353, allocations: 3.938 kB / 1.169 GB, free: 3.973 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0003993/0.3357, allocations: 121.8 kB / 1.169 GB, free: 3.848 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.3358, allocations: 51.41 kB / 1.169 GB, free: 3.785 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.311e-05/0.3358, allocations: 105.8 kB / 1.169 GB, free: 3.672 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.3359, allocations: 29.7 kB / 1.169 GB, free: 3.637 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.255e-05/0.3359, allocations: 88.14 kB / 1.17 GB, free: 3.547 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.864e-05/0.3359, allocations: 11.8 kB / 1.17 GB, free: 3.535 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.051e-05/0.336, allocations: 21.72 kB / 1.17 GB, free: 3.508 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.3361, allocations: 322.8 kB / 1.17 GB, free: 3.184 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.816e-05/0.3362, allocations: 23.98 kB / 1.17 GB, free: 3.16 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.3363, allocations: 55.41 kB / 1.17 GB, free: 3.094 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001858/0.3365, allocations: 79.33 kB / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3365, allocations: 0 / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002477/0.3368, allocations: 113.4 kB / 1.17 GB, free: 2.887 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.3368, allocations: 5.875 kB / 1.17 GB, free: 2.883 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.3368, allocations: 7.984 kB / 1.17 GB, free: 2.875 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.3368, allocations: 0 / 1.17 GB, free: 2.875 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.3369, allocations: 11.98 kB / 1.17 GB, free: 2.863 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.337, allocations: 4.156 kB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.433e-05/0.337, allocations: 7.938 kB / 1.17 GB, free: 2.852 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.3371, allocations: 12.08 kB / 1.17 GB, free: 2.84 MB / 0.92 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 8.601e-05/0.3372, allocations: 125.7 kB / 1.17 GB, free: 2.707 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.377e-05/0.3372, allocations: 3.906 kB / 1.17 GB, free: 2.703 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/0.3375, allocations: 102 kB / 1.17 GB, free: 2.598 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.3375, allocations: 0 / 1.17 GB, free: 2.598 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.3375, allocations: 0 / 1.17 GB, free: 2.598 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3375, allocations: 0 / 1.17 GB, free: 2.598 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004236/0.3379, allocations: 362.5 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.338, allocations: 0 / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.976e-05/0.338, allocations: 11.98 kB / 1.171 GB, free: 2.176 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.338, allocations: 4 kB / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.338, allocations: 448 / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3381, allocations: 0 / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3381, allocations: 0 / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002757/0.3383, allocations: 203.4 kB / 1.171 GB, free: 1.957 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.194e-05/0.3384, allocations: 92.98 kB / 1.171 GB, free: 1.848 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.3384, allocations: 0 / 1.171 GB, free: 1.848 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.804e-05/0.3385, allocations: 7.984 kB / 1.171 GB, free: 1.84 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.794e-05/0.3386, allocations: 7.938 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.3386, allocations: 0 / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.4e-05/0.3386, allocations: 95.27 kB / 1.171 GB, free: 1.738 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3386, allocations: 0 / 1.171 GB, free: 1.738 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002485/0.3389, allocations: 8 kB / 1.171 GB, free: 1.73 MB / 0.92 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.0005709/0.3395, allocations: 0.7241 MB / 1.172 GB, free: 0.9805 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000243/0.3397, allocations: 63.95 kB / 1.172 GB, free: 0.918 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3397, allocations: 0 / 1.172 GB, free: 0.918 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.3399, allocations: 35.91 kB / 1.172 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/0.3401, allocations: 11.94 kB / 1.172 GB, free: 0.8711 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.3417, allocations: 1.375 MB / 1.173 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002508/0.3419, allocations: 0.6846 MB / 1.174 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.415e-05/0.342, allocations: 7.984 kB / 1.174 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.031e-05/0.342, allocations: 15.44 kB / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.342, allocations: 0 / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01939/0.3614, allocations: 1.764 MB / 1.176 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.809/8.17, allocations: 18.69 kB / 1.176 GB, free: 12.97 MB / 0.9356 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