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.001847/0.001846, allocations: 106.8 kB / 15.99 MB, free: 6.352 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.002165/0.002165, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.429/1.429, allocations: 222.9 MB / 240.6 MB, free: 13.73 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.555/2.555, allocations: 437.1 MB / 0.7107 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001935, allocations: 63.78 kB / 0.8694 GB, free: 2.508 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3162, allocations: 151.6 MB / 1.017 GB, free: 10.95 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001979/0.3182, allocations: 0.8204 MB / 1.018 GB, free: 10.12 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001502/0.3198, allocations: 1.163 MB / 1.019 GB, free: 8.945 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.117e-05/0.3198, allocations: 3.938 kB / 1.019 GB, free: 8.941 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.828e-05/0.3199, allocations: 0 / 1.019 GB, free: 8.941 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.173e-05/0.32, allocations: 7.938 kB / 1.019 GB, free: 8.934 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005059/0.3205, allocations: 121 kB / 1.02 GB, free: 8.82 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000185/0.3207, allocations: 135.7 kB / 1.02 GB, free: 8.688 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.3208, allocations: 24.16 kB / 1.02 GB, free: 8.66 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.998e-05/0.3209, allocations: 43.91 kB / 1.02 GB, free: 8.617 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.429e-05/0.321, allocations: 47.81 kB / 1.02 GB, free: 8.57 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.602e-05/0.321, allocations: 15.94 kB / 1.02 GB, free: 8.555 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.26e-05/0.3211, allocations: 27.98 kB / 1.02 GB, free: 8.527 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.557e-05/0.3211, allocations: 15.98 kB / 1.02 GB, free: 8.512 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.607e-05/0.3212, allocations: 43.78 kB / 1.02 GB, free: 8.469 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001497/0.3214, allocations: 83.83 kB / 1.02 GB, free: 8.387 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3214, allocations: 3.984 kB / 1.02 GB, free: 8.383 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.216e-06/0.3214, allocations: 4 kB / 1.02 GB, free: 8.379 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.3214, allocations: 0 / 1.02 GB, free: 8.379 MB / 0.795 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.0006297/0.322, allocations: 419.3 kB / 1.02 GB, free: 7.918 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.3221, allocations: 12.03 kB / 1.02 GB, free: 7.906 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.758e-05/0.3221, allocations: 8.938 kB / 1.02 GB, free: 7.898 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/0.3223, allocations: 172.2 kB / 1.021 GB, free: 7.691 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.3223, allocations: 8.375 kB / 1.021 GB, free: 7.684 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.561e-05/0.3223, allocations: 12.36 kB / 1.021 GB, free: 7.672 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002164/0.3225, allocations: 78.09 kB / 1.021 GB, free: 7.59 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.3226, allocations: 3.938 kB / 1.021 GB, free: 7.586 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.3226, allocations: 4 kB / 1.021 GB, free: 7.582 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.3226, allocations: 0 / 1.021 GB, free: 7.582 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.3228, allocations: 47.95 kB / 1.021 GB, free: 7.535 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005356/0.3233, allocations: 348.5 kB / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001885/0.3235, allocations: 66.55 kB / 1.021 GB, free: 7.07 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.3236, allocations: 24.97 kB / 1.021 GB, free: 7.043 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.3237, allocations: 4 kB / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002206/0.3239, allocations: 87.39 kB / 1.021 GB, free: 6.941 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/0.3239, allocations: 0 / 1.021 GB, free: 6.941 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.0004662/0.3244, allocations: 157.5 kB / 1.021 GB, free: 6.781 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.3244, allocations: 51.41 kB / 1.021 GB, free: 6.719 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.3246, allocations: 117.8 kB / 1.022 GB, free: 6.594 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.3246, allocations: 29.7 kB / 1.022 GB, free: 6.559 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.36e-05/0.3247, allocations: 99.97 kB / 1.022 GB, free: 6.457 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.423e-05/0.3247, allocations: 19.75 kB / 1.022 GB, free: 6.438 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-05/0.3248, allocations: 37.7 kB / 1.022 GB, free: 6.395 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.3249, allocations: 330.8 kB / 1.022 GB, free: 6.062 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.3251, allocations: 47.95 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.3253, allocations: 93.05 kB / 1.022 GB, free: 5.906 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.3256, allocations: 146.8 kB / 1.022 GB, free: 5.738 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3256, allocations: 0 / 1.022 GB, free: 5.738 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004697/0.3261, allocations: 219.1 kB / 1.023 GB, free: 5.512 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.231e-05/0.3262, allocations: 43.88 kB / 1.023 GB, free: 5.465 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.3262, allocations: 4 kB / 1.023 GB, free: 5.461 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.3262, allocations: 0 / 1.023 GB, free: 5.461 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.3263, allocations: 19.92 kB / 1.023 GB, free: 5.441 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.3263, allocations: 0 / 1.023 GB, free: 5.441 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.3266, allocations: 32.58 kB / 1.023 GB, free: 5.41 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.594e-05/0.3266, allocations: 15.98 kB / 1.023 GB, free: 5.395 MB / 0.795 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.0001165/0.3267, allocations: 125.8 kB / 1.023 GB, free: 5.262 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.419e-05/0.3267, allocations: 4 kB / 1.023 GB, free: 5.258 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003248/0.3271, allocations: 125.9 kB / 1.023 GB, free: 5.125 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3271, allocations: 4 kB / 1.023 GB, free: 5.121 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3271, allocations: 0 / 1.023 GB, free: 5.121 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3271, allocations: 7.938 kB / 1.023 GB, free: 5.113 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000476/0.3276, allocations: 378.3 kB / 1.023 GB, free: 4.688 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3276, allocations: 0 / 1.023 GB, free: 4.688 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.542e-05/0.3277, allocations: 11.98 kB / 1.023 GB, free: 4.676 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.3277, allocations: 0 / 1.023 GB, free: 4.676 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.627e-06/0.3277, allocations: 3.938 kB / 1.023 GB, free: 4.672 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.3277, allocations: 3.984 kB / 1.023 GB, free: 4.668 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3277, allocations: 7.938 kB / 1.023 GB, free: 4.66 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003216/0.328, allocations: 212 kB / 1.023 GB, free: 4.438 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.675e-05/0.3281, allocations: 81.02 kB / 1.024 GB, free: 4.34 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.3281, allocations: 0 / 1.024 GB, free: 4.34 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.111e-05/0.3282, allocations: 15.92 kB / 1.024 GB, free: 4.324 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.044e-05/0.3283, allocations: 7.938 kB / 1.024 GB, free: 4.316 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.3283, allocations: 11.98 kB / 1.024 GB, free: 4.305 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.074e-05/0.3283, allocations: 91.22 kB / 1.024 GB, free: 4.215 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3283, allocations: 0 / 1.024 GB, free: 4.215 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002738/0.3286, allocations: 31.98 kB / 1.024 GB, free: 4.184 MB / 0.795 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.0001431/0.3288, allocations: 103.8 kB / 1.024 GB, free: 4.074 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004075/0.3292, allocations: 187.4 kB / 1.024 GB, free: 3.879 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3292, allocations: 0 / 1.024 GB, free: 3.879 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.3293, allocations: 44.03 kB / 1.024 GB, free: 3.836 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.3296, allocations: 14.52 kB / 1.024 GB, free: 3.824 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004138/0.33, allocations: 224.8 kB / 1.024 GB, free: 3.57 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/0.3304, allocations: 0.6906 MB / 1.025 GB, free: 2.855 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.991e-05/0.3304, allocations: 11.44 kB / 1.025 GB, free: 2.844 MB / 0.795 GB Notification: Performance of SimCode: time 2.71e-07/0.3304, allocations: 0 / 1.025 GB, free: 2.844 MB / 0.795 GB Notification: Performance of Templates: time 0.003089/0.3335, allocations: 1.288 MB / 1.026 GB, free: 1.562 MB / 0.795 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=400 -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