Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",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.0008682/0.0008721, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.005386/0.005386, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.365/1.365, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.514/2.514, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003161/0.0003161, allocations: 10.38 kB / 0.9029 GB, free: 36.28 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2726, allocations: 159.6 MB / 1.059 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.0008553/0.2735, allocations: 490.7 kB / 1.059 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001205/0.2747, allocations: 1.178 MB / 1.06 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.507e-05/0.2748, allocations: 0 / 1.06 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.924e-05/0.2748, allocations: 3.938 kB / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.388e-05/0.2749, allocations: 7.938 kB / 1.06 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000395/0.2753, allocations: 124.8 kB / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001106/0.2754, allocations: 115.7 kB / 1.061 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.62e-05/0.2755, allocations: 20.19 kB / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.562e-05/0.2756, allocations: 43.89 kB / 1.061 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.645e-05/0.2756, allocations: 39.83 kB / 1.061 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.916e-05/0.2757, allocations: 4 kB / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.699e-05/0.2757, allocations: 19.98 kB / 1.061 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.783e-05/0.2757, allocations: 7.984 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.604e-05/0.2758, allocations: 69.48 kB / 1.061 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.276, allocations: 111.7 kB / 1.061 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.276, allocations: 7.938 kB / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.383e-06/0.276, allocations: 0 / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.276, allocations: 0 / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004588/0.2765, allocations: 401.3 kB / 1.061 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.2765, allocations: 11.97 kB / 1.061 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.143e-05/0.2765, allocations: 38.73 kB / 1.061 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.467e-05/0.2766, allocations: 12.78 kB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.166e-05/0.2767, allocations: 176.2 kB / 1.062 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.2767, allocations: 8.375 kB / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.2767, allocations: 8.375 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001808/0.2769, allocations: 85.95 kB / 1.062 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.69e-06/0.2769, allocations: 0 / 1.062 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.2769, allocations: 0 / 1.062 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.2769, allocations: 0 / 1.062 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001842/0.2771, allocations: 63.89 kB / 1.062 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004066/0.2775, allocations: 340.6 kB / 1.062 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.2777, allocations: 66.58 kB / 1.062 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.981e-05/0.2778, allocations: 40.95 kB / 1.062 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.632e-05/0.2778, allocations: 0 / 1.062 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002058/0.2781, allocations: 103.3 kB / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.2781, allocations: 0 / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0004059/0.2785, allocations: 165.5 kB / 1.062 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.2785, allocations: 59.39 kB / 1.062 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.962e-05/0.2786, allocations: 113.8 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.2786, allocations: 33.7 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.65e-05/0.2787, allocations: 96.03 kB / 1.063 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/0.2787, allocations: 23.73 kB / 1.063 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.415e-05/0.2787, allocations: 25.7 kB / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.957e-05/0.2788, allocations: 318.8 kB / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.279, allocations: 59.95 kB / 1.063 GB, free: 168 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.2791, allocations: 101 kB / 1.063 GB, free: 48 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002734/0.2794, allocations: 158.7 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2794, allocations: 0 / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004047/0.2799, allocations: 227.1 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.2799, allocations: 33.69 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.2799, allocations: 7.984 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.296e-06/0.2799, allocations: 3.938 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-05/0.28, allocations: 23.98 kB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.608e-06/0.28, allocations: 0 / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/0.2803, allocations: 48.11 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.2803, allocations: 11.94 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.448e-05/0.2804, allocations: 132.3 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.248e-05/0.2804, allocations: 7.906 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002782/0.2807, allocations: 130 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.2807, allocations: 0 / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2807, allocations: 0 / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.2807, allocations: 4 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003818/0.2811, allocations: 394.3 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2811, allocations: 4 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.67e-05/0.2812, allocations: 8 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2812, allocations: 4 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.2812, allocations: 3.984 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.2812, allocations: 3.938 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.2812, allocations: 4 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000275/0.2815, allocations: 223.8 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.254e-05/0.2815, allocations: 85.02 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.2815, allocations: 0 / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.72e-05/0.2816, allocations: 19.92 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.227e-05/0.2817, allocations: 11.98 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.2817, allocations: 0 / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.036e-05/0.2817, allocations: 95.75 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2817, allocations: 4 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002382/0.282, allocations: 24 kB / 1.065 GB, free: 14.26 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005134/0.2825, allocations: 0.7709 MB / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003336/0.2828, allocations: 183.3 kB / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2828, allocations: 320 / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.283, allocations: 47.97 kB / 1.066 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.2832, allocations: 19.92 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001721/0.285, allocations: 1.753 MB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001842/0.2852, allocations: 0.6905 MB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.724e-05/0.2852, allocations: 7.984 kB / 1.068 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.537e-05/0.2852, allocations: 19.44 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of SimCode: time 2.364e-06/0.2852, allocations: 0 / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.501/1.787, allocations: 2.247 MB / 1.07 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001798/1.787, allocations: 224.9 kB / 1.071 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.046/3.833, allocations: 0.875 kB / 1.071 GB, free: 8.27 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches