Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Validation.TriggeredSampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_11_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.0014/0.0014, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 197.1 kB / 16.53 MB, free: 6.391 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.3/1.3, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.456/2.456, allocations: 469.8 MB / 0.7424 GB, free: 7.473 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 64.88 kB / 0.9087 GB, free: 34.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2291, allocations: 159.2 MB / 1.064 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001739/0.2309, allocations: 0.7597 MB / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001248/0.2321, allocations: 1.164 MB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.36e-05/0.2322, allocations: 4 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.794e-05/0.2322, allocations: 7.875 kB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.21e-05/0.2323, allocations: 3.938 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004046/0.2327, allocations: 142.5 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000143/0.2329, allocations: 123.8 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.931e-05/0.233, allocations: 24.11 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.725e-05/0.233, allocations: 51.83 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.22e-05/0.2331, allocations: 39.89 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.478e-05/0.2332, allocations: 19.94 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.058e-05/0.2332, allocations: 23.98 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.058e-05/0.2333, allocations: 12 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.433e-05/0.2333, allocations: 51.77 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.2335, allocations: 115.7 kB / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.2335, allocations: 0 / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2335, allocations: 0 / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.546e-06/0.2335, allocations: 0 / 1.067 GB, free: 11.66 MB / 0.8262 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.0005233/0.234, allocations: 417.2 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.2341, allocations: 12.03 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.761e-05/0.2341, allocations: 54.61 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.88e-05/0.2342, allocations: 8.844 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.2343, allocations: 172.3 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.2343, allocations: 4.375 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.116e-05/0.2343, allocations: 12.38 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001802/0.2345, allocations: 69.97 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-06/0.2345, allocations: 0 / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.2346, allocations: 11.98 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.2346, allocations: 4 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.2347, allocations: 47.89 kB / 1.067 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004379/0.2352, allocations: 336.6 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000157/0.2354, allocations: 66.58 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.604e-05/0.2355, allocations: 32.95 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.438e-05/0.2355, allocations: 4 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.2357, allocations: 91.25 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.323e-06/0.2357, allocations: 4 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0003992/0.2361, allocations: 141.6 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.2361, allocations: 55.34 kB / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.826e-05/0.2362, allocations: 125.7 kB / 1.068 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.2363, allocations: 25.7 kB / 1.068 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.686e-05/0.2363, allocations: 92.14 kB / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.404e-05/0.2364, allocations: 27.62 kB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.455e-05/0.2364, allocations: 41.7 kB / 1.068 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.2365, allocations: 326.8 kB / 1.069 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.2367, allocations: 51.97 kB / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.2369, allocations: 89.11 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002814/0.2372, allocations: 154.7 kB / 1.069 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2372, allocations: 0 / 1.069 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004105/0.2376, allocations: 211.2 kB / 1.069 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.2376, allocations: 33.7 kB / 1.069 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.2376, allocations: 4 kB / 1.069 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.679e-06/0.2377, allocations: 0 / 1.069 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.866e-05/0.2378, allocations: 19.92 kB / 1.069 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.2378, allocations: 0 / 1.069 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.238, allocations: 44.02 kB / 1.069 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-05/0.238, allocations: 15.92 kB / 1.069 GB, free: 8.617 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.683e-05/0.2381, allocations: 125.7 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.575e-05/0.2381, allocations: 7.906 kB / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002729/0.2384, allocations: 122 kB / 1.069 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.2384, allocations: 12 kB / 1.069 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.2384, allocations: 0 / 1.069 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.2384, allocations: 0 / 1.069 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004083/0.2388, allocations: 378.4 kB / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2388, allocations: 48 / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.871e-05/0.2389, allocations: 15.97 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.2389, allocations: 0 / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.2389, allocations: 8 kB / 1.07 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.2389, allocations: 3.938 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2389, allocations: 0 / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002875/0.2392, allocations: 219.9 kB / 1.07 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.131e-05/0.2393, allocations: 81.09 kB / 1.07 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.2393, allocations: 0 / 1.07 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.557e-05/0.2394, allocations: 15.92 kB / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.784e-05/0.2394, allocations: 7.938 kB / 1.07 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.2394, allocations: 8 kB / 1.07 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.034e-05/0.2395, allocations: 91.81 kB / 1.07 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2395, allocations: 0 / 1.07 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000235/0.2397, allocations: 23.91 kB / 1.07 GB, free: 7.414 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.0005635/0.2403, allocations: 0.7554 MB / 1.071 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003505/0.2407, allocations: 179.2 kB / 1.071 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2407, allocations: 0 / 1.071 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.2408, allocations: 40.28 kB / 1.071 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002363/0.241, allocations: 24.25 kB / 1.071 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00187/0.2429, allocations: 1.699 MB / 1.073 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/0.2432, allocations: 0.6924 MB / 1.074 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.58e-05/0.2432, allocations: 7.938 kB / 1.074 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.644e-05/0.2433, allocations: 23.42 kB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.2433, allocations: 0 / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.106/3.349, allocations: 2.524 MB / 1.076 GB, free: 1.398 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/13.38, allocations: 11.38 kB / 1.076 GB, free: 1.391 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches