Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.208/2.208, allocations: 390.3 MB / 402.8 MB, free: 6.703 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 184.8 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.63/1.63, allocations: 221.3 MB / 0.7915 GB, free: 5.355 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009738/0.0009738, allocations: 99.88 kB / 0.9317 GB, free: 5.668 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.248e-05/4.272e-05, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3493, allocations: 143 MB / 1.219 GB, free: 13.48 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.06/1.41, allocations: 150.5 MB / 1.366 GB, free: 3.5 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/1.41, allocations: 73.89 kB / 1.366 GB, free: 3.461 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006465/1.416, allocations: 2.272 MB / 1.368 GB, free: 1.48 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.393e-06/1.416, allocations: 3.938 kB / 1.368 GB, free: 1.477 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.935e-06/1.416, allocations: 4 kB / 1.368 GB, free: 1.473 MB / 0.823 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.0004882/1.417, allocations: 398.9 kB / 1.368 GB, free: 1.039 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/1.417, allocations: 12.03 kB / 1.368 GB, free: 1.027 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.888e-05/1.417, allocations: 7.906 kB / 1.368 GB, free: 1.02 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/1.417, allocations: 178.1 kB / 1.369 GB, free: 0.8086 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/1.417, allocations: 4 kB / 1.369 GB, free: 0.8047 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.756e-05/1.417, allocations: 11.31 kB / 1.369 GB, free: 0.7969 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/1.417, allocations: 59.25 kB / 1.369 GB, free: 0.7422 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/1.417, allocations: 4 kB / 1.369 GB, free: 0.7383 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/1.417, allocations: 3.984 kB / 1.369 GB, free: 0.7344 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/1.417, allocations: 4 kB / 1.369 GB, free: 0.7305 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.061e-05/1.417, allocations: 18.62 kB / 1.369 GB, free: 0.7188 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005085/1.418, allocations: 344.7 kB / 1.369 GB, free: 372 kB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/1.418, allocations: 52.62 kB / 1.369 GB, free: 320 kB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.97e-05/1.418, allocations: 18.73 kB / 1.369 GB, free: 304 kB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/1.418, allocations: 0 / 1.369 GB, free: 304 kB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001439/1.418, allocations: 81.84 kB / 1.369 GB, free: 220 kB / 0.823 GB Notification: Performance of pre-optimization done (n=8): time 1.452e-06/1.418, allocations: 0 / 1.369 GB, free: 220 kB / 0.823 GB Notification: Performance of matching and sorting (n=8): time 0.0002219/1.419, allocations: 98.84 kB / 1.369 GB, free: 128 kB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/1.419, allocations: 55.41 kB / 1.369 GB, free: 60 kB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/1.419, allocations: 107.8 kB / 1.369 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.997e-05/1.419, allocations: 33.45 kB / 1.369 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.882e-05/1.419, allocations: 94.55 kB / 1.37 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.484e-05/1.419, allocations: 18.67 kB / 1.37 GB, free: 15.81 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.166e-05/1.419, allocations: 6.938 kB / 1.37 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001254/1.419, allocations: 317.4 kB / 1.37 GB, free: 15.49 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.584e-05/1.419, allocations: 44.73 kB / 1.37 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/1.419, allocations: 86.02 kB / 1.37 GB, free: 15.37 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/1.419, allocations: 63.38 kB / 1.37 GB, free: 15.32 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.419, allocations: 0 / 1.37 GB, free: 15.32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002914/1.42, allocations: 194.9 kB / 1.37 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.449e-05/1.42, allocations: 38.2 kB / 1.37 GB, free: 15.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/1.42, allocations: 0 / 1.37 GB, free: 15.1 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/1.42, allocations: 3.953 kB / 1.37 GB, free: 15.1 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/1.42, allocations: 23.98 kB / 1.37 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/1.42, allocations: 3.938 kB / 1.37 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002189/1.42, allocations: 51.8 kB / 1.37 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/1.42, allocations: 8 kB / 1.37 GB, free: 15.02 MB / 0.8386 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 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.366e-05/1.42, allocations: 117.8 kB / 1.37 GB, free: 14.9 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.426e-05/1.42, allocations: 7.906 kB / 1.37 GB, free: 14.89 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001877/1.42, allocations: 110.4 kB / 1.371 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/1.42, allocations: 0 / 1.371 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/1.42, allocations: 3.953 kB / 1.371 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/1.42, allocations: 0 / 1.371 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002974/1.421, allocations: 343 kB / 1.371 GB, free: 14.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/1.421, allocations: 0 / 1.371 GB, free: 14.42 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.283e-05/1.421, allocations: 15.98 kB / 1.371 GB, free: 14.41 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/1.421, allocations: 4 kB / 1.371 GB, free: 14.4 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/1.421, allocations: 7.891 kB / 1.371 GB, free: 14.4 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/1.421, allocations: 3.938 kB / 1.371 GB, free: 14.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/1.421, allocations: 3.984 kB / 1.371 GB, free: 14.39 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001668/1.421, allocations: 183.9 kB / 1.371 GB, free: 14.21 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.441e-05/1.421, allocations: 85 kB / 1.371 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/1.421, allocations: 4 kB / 1.371 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.633e-05/1.421, allocations: 15.94 kB / 1.371 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.568e-05/1.421, allocations: 7.812 kB / 1.371 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/1.421, allocations: 4 kB / 1.371 GB, free: 14.08 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.816e-05/1.421, allocations: 95.52 kB / 1.371 GB, free: 13.99 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.421, allocations: 0 / 1.371 GB, free: 13.99 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002553/1.422, allocations: 27.81 kB / 1.371 GB, free: 13.97 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000183/1.422, allocations: 115.1 kB / 1.371 GB, free: 13.85 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002661/1.422, allocations: 158.1 kB / 1.372 GB, free: 13.71 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/1.422, allocations: 0 / 1.372 GB, free: 13.71 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.618e-05/1.422, allocations: 29.38 kB / 1.372 GB, free: 13.69 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001965/1.422, allocations: 14.69 kB / 1.372 GB, free: 13.68 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002643/1.423, allocations: 106.2 kB / 1.372 GB, free: 13.57 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/1.423, allocations: 0.6928 MB / 1.372 GB, free: 12.85 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.185e-05/1.423, allocations: 11.78 kB / 1.372 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.482e-05/1.423, allocations: 11.44 kB / 1.372 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of SimCode: time 1.663e-06/1.423, allocations: 0 / 1.372 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of Templates: time 0.003628/1.427, allocations: 1.261 MB / 1.374 GB, free: 11.59 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches