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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001962/0.001962, allocations: 192.2 kB / 16.25 MB, free: 6.637 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.52/1.52, allocations: 222.9 MB / 239.9 MB, free: 4.512 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 3.066/3.066, allocations: 469.8 MB / 0.742 GB, free: 7.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 69.41 kB / 0.908 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4065/0.4085, allocations: 159.1 MB / 1.063 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002528/0.4111, allocations: 0.8199 MB / 1.064 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002181/0.4133, allocations: 1.159 MB / 1.065 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.778e-05/0.4134, allocations: 4 kB / 1.065 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.583e-05/0.4134, allocations: 7.922 kB / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.242e-05/0.4135, allocations: 3.938 kB / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005675/0.4141, allocations: 127 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.4143, allocations: 127.8 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.4144, allocations: 24.17 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.4146, allocations: 51.89 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.769e-05/0.4147, allocations: 43.83 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.4147, allocations: 12 kB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.167e-05/0.4148, allocations: 27.98 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.521e-05/0.4148, allocations: 11.94 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.738e-05/0.4149, allocations: 59.77 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002657/0.4152, allocations: 107.7 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.4152, allocations: 4 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.184e-06/0.4152, allocations: 0 / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.4152, allocations: 0 / 1.066 GB, free: 12.05 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.0007459/0.416, allocations: 425.1 kB / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.416, allocations: 12.03 kB / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.64e-05/0.4161, allocations: 8.844 kB / 1.066 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002051/0.4163, allocations: 172.3 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.4164, allocations: 8.375 kB / 1.067 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.779e-05/0.4164, allocations: 8.375 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002456/0.4166, allocations: 78.09 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.4167, allocations: 3.938 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.4167, allocations: 4 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.4167, allocations: 4 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001937/0.4169, allocations: 43.95 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008772/0.4178, allocations: 344.6 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.418, allocations: 62.55 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.4181, allocations: 32.97 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.4181, allocations: 0 / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003852/0.4185, allocations: 91.42 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.293e-06/0.4185, allocations: 3.938 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0004689/0.419, allocations: 153.5 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.4191, allocations: 51.41 kB / 1.067 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.4192, allocations: 125.8 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.38e-05/0.4192, allocations: 29.7 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.382e-05/0.4193, allocations: 92.05 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.08e-05/0.4193, allocations: 23.73 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.136e-05/0.4194, allocations: 45.69 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001597/0.4196, allocations: 322.8 kB / 1.068 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/0.4198, allocations: 47.95 kB / 1.068 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.42, allocations: 96.98 kB / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003578/0.4203, allocations: 146.8 kB / 1.068 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.4204, allocations: 4 kB / 1.068 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000516/0.4209, allocations: 211.1 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.218e-05/0.4209, allocations: 38.94 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.421, allocations: 4 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.421, allocations: 0 / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.4211, allocations: 19.98 kB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.4211, allocations: 3.938 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/0.4214, allocations: 40.02 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.4214, allocations: 12.31 kB / 1.069 GB, free: 9.055 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 0.0001945/0.4216, allocations: 126.3 kB / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.801e-05/0.4216, allocations: 11.89 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003437/0.422, allocations: 121.9 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.422, allocations: 8 kB / 1.069 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.422, allocations: 0 / 1.069 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.422, allocations: 0 / 1.069 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005652/0.4226, allocations: 378.4 kB / 1.069 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4226, allocations: 0 / 1.069 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.124e-05/0.4227, allocations: 15.98 kB / 1.069 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.4227, allocations: 3.938 kB / 1.069 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.4228, allocations: 4 kB / 1.069 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4228, allocations: 0 / 1.069 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4228, allocations: 3.938 kB / 1.069 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003331/0.4231, allocations: 215.3 kB / 1.069 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.414e-05/0.4232, allocations: 77.11 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.139e-05/0.4232, allocations: 0 / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.542e-05/0.4233, allocations: 11.98 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.343e-05/0.4234, allocations: 15.92 kB / 1.07 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/0.4234, allocations: 4 kB / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.772e-05/0.4235, allocations: 91.27 kB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4235, allocations: 0 / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003616/0.4238, allocations: 23.91 kB / 1.07 GB, free: 7.859 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.0002104/0.424, allocations: 111.2 kB / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004499/0.4245, allocations: 187.2 kB / 1.07 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4245, allocations: 0 / 1.07 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.4246, allocations: 39.97 kB / 1.07 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.425, allocations: 11.98 kB / 1.07 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005435/0.4255, allocations: 197 kB / 1.07 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.4259, allocations: 0.6885 MB / 1.071 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.96e-05/0.426, allocations: 7.984 kB / 1.071 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.327e-05/0.426, allocations: 11.44 kB / 1.071 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of SimCode: time 5.21e-07/0.426, allocations: 4 kB / 1.071 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of Templates: time 0.005163/0.4312, allocations: 1.372 MB / 1.072 GB, free: 5.184 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile (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 & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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/jenkins/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