Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_10_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_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001603, allocations: 105.8 kB / 16.41 MB, free: 6.488 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.001976/0.001977, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.605/1.605, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.839/2.839, allocations: 437 MB / 0.7112 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 67.89 kB / 1.019 GB, free: 9.461 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.09/1.092, allocations: 151.6 MB / 1.167 GB, free: 3.898 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002012/1.094, allocations: 0.7685 MB / 1.168 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001612/1.096, allocations: 1.154 MB / 1.169 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.527e-05/1.096, allocations: 7.875 kB / 1.169 GB, free: 1.953 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.664e-05/1.096, allocations: 7.922 kB / 1.169 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.395e-05/1.096, allocations: 11.88 kB / 1.169 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005716/1.097, allocations: 138.4 kB / 1.169 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002148/1.097, allocations: 135.7 kB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/1.097, allocations: 16.19 kB / 1.169 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.948e-05/1.097, allocations: 55.89 kB / 1.17 GB, free: 1.594 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/1.097, allocations: 47.81 kB / 1.17 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.458e-05/1.097, allocations: 8 kB / 1.17 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.817e-05/1.097, allocations: 27.98 kB / 1.17 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.642e-05/1.097, allocations: 15.92 kB / 1.17 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.202e-05/1.097, allocations: 47.83 kB / 1.17 GB, free: 1.449 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002032/1.098, allocations: 119.2 kB / 1.17 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/1.098, allocations: 3.938 kB / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.673e-06/1.098, allocations: 0 / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.63e-06/1.098, allocations: 4 kB / 1.17 GB, free: 1.328 MB / 0.8887 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.0006478/1.098, allocations: 425.8 kB / 1.17 GB, free: 0.8594 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/1.098, allocations: 8.625 kB / 1.17 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.021e-05/1.098, allocations: 12.83 kB / 1.17 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/1.099, allocations: 168.3 kB / 1.17 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/1.099, allocations: 8.375 kB / 1.17 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/1.099, allocations: 12.36 kB / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002074/1.099, allocations: 78.16 kB / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/1.099, allocations: 3.938 kB / 1.17 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/1.099, allocations: 4 kB / 1.17 GB, free: 0.5273 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/1.099, allocations: 0 / 1.17 GB, free: 0.5273 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/1.099, allocations: 47.95 kB / 1.171 GB, free: 492 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005196/1.1, allocations: 340.6 kB / 1.171 GB, free: 100 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/1.1, allocations: 58.55 kB / 1.171 GB, free: 32 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/1.1, allocations: 36.95 kB / 1.171 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/1.1, allocations: 3.984 kB / 1.171 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002019/1.1, allocations: 87.31 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.543e-06/1.1, allocations: 4 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.0004467/1.101, allocations: 145.7 kB / 1.171 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/1.101, allocations: 55.39 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/1.101, allocations: 125.7 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/1.101, allocations: 29.7 kB / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.792e-05/1.101, allocations: 96.12 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.65e-05/1.101, allocations: 27.78 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.563e-05/1.101, allocations: 37.7 kB / 1.172 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001354/1.101, allocations: 326.7 kB / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/1.101, allocations: 55.95 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/1.101, allocations: 85.11 kB / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/1.102, allocations: 154.7 kB / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/1.102, allocations: 3.938 kB / 1.172 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004519/1.102, allocations: 215.1 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.8e-05/1.102, allocations: 32.2 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/1.102, allocations: 4 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/1.102, allocations: 3.984 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/1.102, allocations: 12 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/1.102, allocations: 7.984 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/1.103, allocations: 40.12 kB / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.16e-05/1.103, allocations: 7.984 kB / 1.172 GB, free: 14.34 MB / 0.9044 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.0001111/1.103, allocations: 129.7 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.75e-05/1.103, allocations: 11.95 kB / 1.173 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003025/1.103, allocations: 126 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/1.103, allocations: 0 / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/1.103, allocations: 0 / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/1.103, allocations: 0 / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004527/1.104, allocations: 378.4 kB / 1.173 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/1.104, allocations: 0 / 1.173 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.06e-05/1.104, allocations: 11.98 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/1.104, allocations: 0 / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/1.104, allocations: 8 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/1.104, allocations: 0 / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/1.104, allocations: 4.406 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003143/1.104, allocations: 219.4 kB / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.357e-05/1.104, allocations: 89.08 kB / 1.173 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/1.104, allocations: 4 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-05/1.104, allocations: 11.98 kB / 1.173 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.359e-05/1.104, allocations: 7.938 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-06/1.104, allocations: 4 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.724e-05/1.104, allocations: 91.27 kB / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.11e-07/1.104, allocations: 0 / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002565/1.105, allocations: 20 kB / 1.174 GB, free: 13.14 MB / 0.9044 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.0001612/1.105, allocations: 107.2 kB / 1.174 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004014/1.105, allocations: 187.2 kB / 1.174 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/1.105, allocations: 0 / 1.174 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001249/1.105, allocations: 43.84 kB / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/1.106, allocations: 11.94 kB / 1.174 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003889/1.106, allocations: 179.2 kB / 1.174 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/1.106, allocations: 0.6924 MB / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.087e-05/1.106, allocations: 4 kB / 1.175 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.841e-05/1.106, allocations: 15.44 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of SimCode: time 2.2e-07/1.106, allocations: 0 / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of Templates: time 0.004279/1.111, allocations: 1.441 MB / 1.176 GB, free: 10.41 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches