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.001152/0.001152, allocations: 104.1 kB / 16.27 MB, free: 6.418 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.001178/0.001178, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.37/1.37, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.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.286/2.286, allocations: 390.3 MB / 0.6653 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 62.73 kB / 0.8132 GB, free: 32.98 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3193, allocations: 140.4 MB / 0.9503 GB, free: 8.844 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002429/0.3218, allocations: 0.7561 MB / 0.951 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001753/0.3236, allocations: 1.161 MB / 0.9522 GB, free: 6.902 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.932e-05/0.3237, allocations: 3.938 kB / 0.9522 GB, free: 6.898 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.325e-05/0.3237, allocations: 11.88 kB / 0.9522 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.719e-05/0.3239, allocations: 7.875 kB / 0.9522 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006164/0.3245, allocations: 127.6 kB / 0.9523 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002095/0.3247, allocations: 131.8 kB / 0.9524 GB, free: 6.629 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.3249, allocations: 24.16 kB / 0.9524 GB, free: 6.602 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.325, allocations: 47.84 kB / 0.9525 GB, free: 6.555 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.3251, allocations: 47.83 kB / 0.9525 GB, free: 6.508 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.3251, allocations: 8 kB / 0.9525 GB, free: 6.5 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.073e-05/0.3252, allocations: 31.97 kB / 0.9526 GB, free: 6.469 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.644e-05/0.3253, allocations: 15.92 kB / 0.9526 GB, free: 6.453 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.562e-05/0.3254, allocations: 43.84 kB / 0.9526 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002241/0.3256, allocations: 119.7 kB / 0.9527 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3256, allocations: 0 / 0.9527 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3256, allocations: 0 / 0.9527 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.197e-06/0.3256, allocations: 0 / 0.9527 GB, free: 6.293 MB / 0.7325 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.0006682/0.3263, allocations: 421.2 kB / 0.9531 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.3264, allocations: 12.03 kB / 0.9532 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.965e-05/0.3264, allocations: 8.844 kB / 0.9532 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.3266, allocations: 172.3 kB / 0.9533 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.3266, allocations: 12.31 kB / 0.9533 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.933e-05/0.3266, allocations: 12.36 kB / 0.9534 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002141/0.3269, allocations: 66.22 kB / 0.9534 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.3269, allocations: 3.938 kB / 0.9534 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.3269, allocations: 8 kB / 0.9534 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.3269, allocations: 7.938 kB / 0.9534 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.3271, allocations: 43.95 kB / 0.9535 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005382/0.3277, allocations: 344.5 kB / 0.9538 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.3279, allocations: 62.55 kB / 0.9539 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.328, allocations: 36.95 kB / 0.9539 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.328, allocations: 96 / 0.9539 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.3283, allocations: 87.3 kB / 0.954 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/0.3283, allocations: 0 / 0.954 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0004485/0.3288, allocations: 153.5 kB / 0.9541 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.3288, allocations: 55.39 kB / 0.9542 GB, free: 4.629 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.3289, allocations: 117.8 kB / 0.9543 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.329, allocations: 29.7 kB / 0.9543 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.758e-05/0.3291, allocations: 99.97 kB / 0.9544 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.375e-05/0.3291, allocations: 23.69 kB / 0.9544 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.651e-05/0.3292, allocations: 41.7 kB / 0.9545 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.3293, allocations: 322.8 kB / 0.9548 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.3295, allocations: 59.95 kB / 0.9548 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.3297, allocations: 85.11 kB / 0.9549 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003011/0.33, allocations: 154.8 kB / 0.9551 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/0.33, allocations: 4 kB / 0.9551 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004716/0.3305, allocations: 211.1 kB / 0.9553 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.3305, allocations: 33.7 kB / 0.9553 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.3305, allocations: 7.984 kB / 0.9553 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.3306, allocations: 0 / 0.9553 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.3307, allocations: 15.94 kB / 0.9553 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.3307, allocations: 3.984 kB / 0.9553 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.3309, allocations: 44.03 kB / 0.9554 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.266e-05/0.331, allocations: 7.984 kB / 0.9554 GB, free: 3.297 MB / 0.7325 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.0001474/0.3311, allocations: 121.8 kB / 0.9555 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.3311, allocations: 11.94 kB / 0.9555 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003255/0.3315, allocations: 126.2 kB / 0.9556 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3315, allocations: 8 kB / 0.9556 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3315, allocations: 0 / 0.9556 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.3315, allocations: 4.031 kB / 0.9556 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004654/0.332, allocations: 378.5 kB / 0.956 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.332, allocations: 3.938 kB / 0.956 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.413e-05/0.3321, allocations: 11.98 kB / 0.956 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3321, allocations: 0 / 0.956 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.3321, allocations: 4 kB / 0.956 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.3321, allocations: 4 kB / 0.956 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.378e-05/0.3321, allocations: 7.922 kB / 0.956 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003063/0.3324, allocations: 207.5 kB / 0.9562 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.952e-05/0.3325, allocations: 84.95 kB / 0.9563 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.3325, allocations: 4 kB / 0.9563 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.784e-05/0.3326, allocations: 11.98 kB / 0.9563 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.793e-05/0.3327, allocations: 11.94 kB / 0.9563 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.3327, allocations: 7.984 kB / 0.9564 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.002e-05/0.3328, allocations: 87.83 kB / 0.9564 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.733e-06/0.3328, allocations: 0 / 0.9564 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002897/0.3331, allocations: 27.92 kB / 0.9565 GB, free: 2.09 MB / 0.7325 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.0001665/0.3332, allocations: 103.2 kB / 0.9566 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004323/0.3337, allocations: 187.2 kB / 0.9567 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3337, allocations: 0 / 0.9567 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.3338, allocations: 43.91 kB / 0.9568 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.3341, allocations: 12.31 kB / 0.9568 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004605/0.3346, allocations: 204.5 kB / 0.957 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.3349, allocations: 0.6922 MB / 0.9577 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.317e-05/0.335, allocations: 11.44 kB / 0.9577 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of SimCode: time 2.695e-06/0.335, allocations: 0 / 0.9577 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of Templates: time 0.003499/0.3385, allocations: 1.283 MB / 0.9589 GB, free: 15.48 MB / 0.7481 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/jenkins1/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