Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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.Validation.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_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.007845/0.007845, allocations: 95.42 kB / 15.73 MB, free: 6.039 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.001837/0.001837, allocations: 201.4 kB / 16.68 MB, free: 5.969 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.7/2.7, allocations: 469.4 MB / 0.7421 GB, free: 7.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 67.84 kB / 1.064 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2656, allocations: 159.1 MB / 1.22 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001658/0.2673, allocations: 0.658 MB / 1.22 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001208/0.2685, allocations: 1.055 MB / 1.221 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.148e-05/0.2686, allocations: 0 / 1.221 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.504e-05/0.2686, allocations: 7.938 kB / 1.221 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.766e-05/0.2687, allocations: 7.922 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002586/0.2689, allocations: 39.84 kB / 1.221 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.992e-05/0.269, allocations: 51.83 kB / 1.222 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.424e-05/0.2691, allocations: 11.98 kB / 1.222 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.583e-05/0.2692, allocations: 23.86 kB / 1.222 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.775e-05/0.2692, allocations: 23.91 kB / 1.222 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.357e-05/0.2693, allocations: 4 kB / 1.222 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.963e-05/0.2693, allocations: 16 kB / 1.222 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.867e-05/0.2693, allocations: 15.97 kB / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.06e-05/0.2694, allocations: 23.86 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001308/0.2695, allocations: 55.78 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2695, allocations: 0 / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.273e-06/0.2695, allocations: 0 / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.648e-06/0.2696, allocations: 0 / 1.222 GB, free: 12.7 MB / 0.9825 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.000563/0.2701, allocations: 363.3 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.2702, allocations: 12.03 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.599e-05/0.2702, allocations: 38.73 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.966e-05/0.2702, allocations: 4.875 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.2704, allocations: 180.2 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-06/0.2704, allocations: 384 / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.58e-05/0.2704, allocations: 4.375 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001923/0.2706, allocations: 66.22 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.2706, allocations: 3.938 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.2706, allocations: 4 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.2706, allocations: 4 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.2708, allocations: 43.95 kB / 1.222 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004046/0.2712, allocations: 268.8 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.2714, allocations: 58.55 kB / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.2715, allocations: 36.89 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.2716, allocations: 0 / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001963/0.2718, allocations: 79.44 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.423e-06/0.2718, allocations: 0 / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0004134/0.2722, allocations: 125.5 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.2722, allocations: 51.41 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.396e-05/0.2723, allocations: 105.9 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.2724, allocations: 29.69 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.269e-05/0.2724, allocations: 84.14 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.967e-05/0.2724, allocations: 11.91 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.4e-05/0.2725, allocations: 25.7 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.2726, allocations: 318.8 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.2727, allocations: 31.97 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/0.2728, allocations: 43.42 kB / 1.224 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002098/0.2731, allocations: 79.33 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.2731, allocations: 0 / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002673/0.2733, allocations: 113.5 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.2734, allocations: 4 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.2734, allocations: 4 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.2734, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.2735, allocations: 16.08 kB / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.2735, allocations: 4 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.822e-05/0.2736, allocations: 11.92 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.768e-06/0.2736, allocations: 4 kB / 1.224 GB, free: 10.26 MB / 0.9825 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.273e-05/0.2737, allocations: 120.9 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.403e-05/0.2737, allocations: 3.953 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000276/0.274, allocations: 106.5 kB / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.274, allocations: 4 kB / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.274, allocations: 0 / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.274, allocations: 112 / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004309/0.2745, allocations: 362.4 kB / 1.224 GB, free: 9.598 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.2745, allocations: 3.938 kB / 1.224 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.034e-05/0.2745, allocations: 7.984 kB / 1.224 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.2745, allocations: 4 kB / 1.224 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.2746, allocations: 4 kB / 1.224 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.2746, allocations: 0 / 1.224 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2746, allocations: 3.938 kB / 1.224 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002828/0.2749, allocations: 195.4 kB / 1.225 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.308e-05/0.2749, allocations: 81.11 kB / 1.225 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.2749, allocations: 0 / 1.225 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.275, allocations: 19.92 kB / 1.225 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/0.2751, allocations: 11.92 kB / 1.225 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.2751, allocations: 0 / 1.225 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.235e-05/0.2751, allocations: 87.28 kB / 1.225 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2752, allocations: 0 / 1.225 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002473/0.2754, allocations: 8 kB / 1.225 GB, free: 9.145 MB / 0.9825 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.0005607/0.276, allocations: 0.7358 MB / 1.226 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000236/0.2762, allocations: 63.89 kB / 1.226 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2762, allocations: 0 / 1.226 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.2764, allocations: 32.28 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/0.2766, allocations: 21.78 kB / 1.226 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.2781, allocations: 1.379 MB / 1.227 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.2783, allocations: 0.6826 MB / 1.228 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.114e-05/0.2784, allocations: 4 kB / 1.228 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/0.2784, allocations: 11.44 kB / 1.228 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of SimCode: time 2.6e-07/0.2784, allocations: 0 / 1.228 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.016/0.2944, allocations: 1.759 MB / 1.229 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.153/7.448, allocations: 6.734 kB / 1.229 GB, free: 4.41 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.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_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches