Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001578/0.001578, 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.002028/0.002028, allocations: 191.8 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.468/1.468, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.563/2.563, allocations: 390.2 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 63.89 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9138/0.9158, allocations: 140.4 MB / 0.9496 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.00261/0.9185, allocations: 0.7633 MB / 0.9503 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001538/0.9201, allocations: 1.152 MB / 0.9515 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.032e-05/0.9201, allocations: 5.312 kB / 0.9515 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.65e-05/0.9202, allocations: 7.922 kB / 0.9515 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.23e-05/0.9203, allocations: 9.25 kB / 0.9515 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005577/0.9208, allocations: 134.2 kB / 0.9516 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001551/0.921, allocations: 124.3 kB / 0.9517 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.9211, allocations: 28.66 kB / 0.9517 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.992e-05/0.9212, allocations: 45.06 kB / 0.9518 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.097e-05/0.9213, allocations: 41.95 kB / 0.9518 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.924e-05/0.9214, allocations: 12.66 kB / 0.9518 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.854e-05/0.9215, allocations: 29.06 kB / 0.9519 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.397e-05/0.9215, allocations: 18.86 kB / 0.9519 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.136e-05/0.9216, allocations: 45 kB / 0.9519 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.9217, allocations: 113.5 kB / 0.952 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.9217, allocations: 0 / 0.952 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.302e-06/0.9217, allocations: 1.344 kB / 0.952 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.9218, allocations: 4 kB / 0.952 GB, free: 7.211 MB / 0.7169 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.0005561/0.9223, allocations: 417.8 kB / 0.9524 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.9224, allocations: 9.688 kB / 0.9525 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.318e-05/0.9224, allocations: 10.03 kB / 0.9525 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.086e-05/0.9225, allocations: 180.2 kB / 0.9526 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.9225, allocations: 7.438 kB / 0.9526 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.676e-05/0.9226, allocations: 7.688 kB / 0.9526 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000192/0.9228, allocations: 86.31 kB / 0.9527 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.9228, allocations: 3.938 kB / 0.9527 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.9228, allocations: 1.062 kB / 0.9527 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.9228, allocations: 1.594 kB / 0.9527 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001783/0.923, allocations: 49.11 kB / 0.9528 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004554/0.9234, allocations: 340.9 kB / 0.9531 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001802/0.9236, allocations: 64.27 kB / 0.9532 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.648e-05/0.9237, allocations: 31.89 kB / 0.9532 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.9238, allocations: 3.938 kB / 0.9532 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002626/0.924, allocations: 88.48 kB / 0.9533 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.533e-06/0.9241, allocations: 0 / 0.9533 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004932/0.9246, allocations: 152.1 kB / 0.9534 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.509e-05/0.9246, allocations: 61.83 kB / 0.9535 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.746e-05/0.9247, allocations: 119.2 kB / 0.9536 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.9247, allocations: 32.58 kB / 0.9536 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.599e-05/0.9248, allocations: 100.8 kB / 0.9537 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.9248, allocations: 15.03 kB / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-05/0.9249, allocations: 36.7 kB / 0.9538 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.117e-05/0.925, allocations: 324.9 kB / 0.9541 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.9251, allocations: 56.05 kB / 0.9541 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000175/0.9253, allocations: 91.22 kB / 0.9542 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002667/0.9256, allocations: 155.1 kB / 0.9544 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.9256, allocations: 0 / 0.9544 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000407/0.926, allocations: 211.9 kB / 0.9546 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.148e-05/0.926, allocations: 32.27 kB / 0.9546 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.9261, allocations: 1.25 kB / 0.9546 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.9261, allocations: 3.688 kB / 0.9546 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.9262, allocations: 25.17 kB / 0.9546 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.577e-06/0.9262, allocations: 6.797 kB / 0.9547 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.9264, allocations: 31.91 kB / 0.9547 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.9265, allocations: 10.42 kB / 0.9547 GB, free: 4.785 MB / 0.7169 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.215e-05/0.9265, allocations: 129.8 kB / 0.9548 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.9266, allocations: 6.062 kB / 0.9548 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002858/0.9269, allocations: 129.5 kB / 0.9549 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.9269, allocations: 1.25 kB / 0.9549 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.9269, allocations: 0 / 0.9549 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.9269, allocations: 0 / 0.9549 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003589/0.9273, allocations: 391.1 kB / 0.9553 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.9273, allocations: 0 / 0.9553 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.914e-05/0.9273, allocations: 14.83 kB / 0.9553 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.9273, allocations: 1.188 kB / 0.9553 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.355e-06/0.9274, allocations: 0 / 0.9553 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.9274, allocations: 1.219 kB / 0.9553 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.9274, allocations: 3.938 kB / 0.9553 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.9276, allocations: 213.5 kB / 0.9555 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.768e-05/0.9277, allocations: 86.08 kB / 0.9556 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.9277, allocations: 1.188 kB / 0.9556 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.072e-05/0.9278, allocations: 12.33 kB / 0.9556 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.412e-05/0.9278, allocations: 15.5 kB / 0.9557 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.745e-06/0.9278, allocations: 2.5 kB / 0.9557 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.626e-05/0.9279, allocations: 92.16 kB / 0.9557 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9279, allocations: 0 / 0.9557 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002704/0.9282, allocations: 25.16 kB / 0.9558 GB, free: 3.805 MB / 0.7169 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.000139/0.9283, allocations: 106.3 kB / 0.9559 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003832/0.9287, allocations: 177.1 kB / 0.956 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.9287, allocations: 0 / 0.956 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.9288, allocations: 44.72 kB / 0.9561 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.9291, allocations: 18.22 kB / 0.9561 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003506/0.9295, allocations: 172.2 kB / 0.9563 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000125/0.9296, allocations: 0.6962 MB / 0.9569 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.46e-05/0.9297, allocations: 12.53 kB / 0.957 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.11e-05/0.9297, allocations: 10.91 kB / 0.957 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.9297, allocations: 0 / 0.957 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of Templates: time 0.004071/0.9338, allocations: 1.441 MB / 0.9584 GB, free: 1.945 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches