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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006904/0.006904, allocations: 101.6 kB / 15.73 MB, free: 6.035 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.001552/0.001552, allocations: 196.1 kB / 16.68 MB, free: 5.957 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 15.1 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.209/2.209, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001538, allocations: 63.91 kB / 0.9504 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9222/0.9237, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001716/0.9255, allocations: 0.7638 MB / 1.088 GB, free: 4.781 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001188/0.9267, allocations: 1.157 MB / 1.089 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.411e-05/0.9268, allocations: 1.125 kB / 1.089 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.96e-05/0.9268, allocations: 5.297 kB / 1.089 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.375e-05/0.9269, allocations: 9.641 kB / 1.089 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004517/0.9273, allocations: 135.7 kB / 1.089 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000178/0.9275, allocations: 137.2 kB / 1.09 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.9276, allocations: 23.95 kB / 1.09 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.531e-05/0.9277, allocations: 49.02 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.925e-05/0.9278, allocations: 51.95 kB / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.768e-05/0.9278, allocations: 11.06 kB / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.082e-05/0.9279, allocations: 29.98 kB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.504e-05/0.9279, allocations: 17.47 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.543e-05/0.928, allocations: 48.72 kB / 1.09 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002134/0.9282, allocations: 111.3 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.9283, allocations: 1.219 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.403e-06/0.9283, allocations: 0 / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.111e-06/0.9283, allocations: 0.7969 kB / 1.09 GB, free: 3.652 MB / 0.8575 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.0005281/0.9288, allocations: 419.1 kB / 1.09 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.9288, allocations: 13.81 kB / 1.09 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.797e-05/0.9289, allocations: 37.95 kB / 1.09 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.293e-05/0.9289, allocations: 14.48 kB / 1.09 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.184e-05/0.929, allocations: 174 kB / 1.091 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.929, allocations: 8 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.348e-05/0.9291, allocations: 8.688 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001979/0.9293, allocations: 72.91 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.9293, allocations: 0 / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.9293, allocations: 4.516 kB / 1.091 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.9293, allocations: 9.188 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002053/0.9295, allocations: 54.92 kB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004652/0.93, allocations: 342.2 kB / 1.091 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001629/0.9301, allocations: 60.17 kB / 1.091 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.9303, allocations: 41.7 kB / 1.091 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.9303, allocations: 1.812 kB / 1.091 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.9305, allocations: 83.05 kB / 1.091 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.492e-06/0.9305, allocations: 0.6562 kB / 1.091 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004741/0.931, allocations: 150.5 kB / 1.091 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.184e-05/0.9311, allocations: 58.06 kB / 1.091 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.141e-05/0.9311, allocations: 125.2 kB / 1.092 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.9312, allocations: 32.64 kB / 1.092 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.464e-05/0.9312, allocations: 94.33 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.9312, allocations: 20.08 kB / 1.092 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.419e-05/0.9313, allocations: 38.78 kB / 1.092 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.604e-05/0.9314, allocations: 323.6 kB / 1.092 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.9315, allocations: 53.48 kB / 1.092 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.9317, allocations: 88.56 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.932, allocations: 148.5 kB / 1.092 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.932, allocations: 0 / 1.092 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004777/0.9325, allocations: 211.8 kB / 1.092 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.32e-05/0.9325, allocations: 34.69 kB / 1.093 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.9326, allocations: 2.172 kB / 1.093 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.9326, allocations: 1.688 kB / 1.093 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.9327, allocations: 17.98 kB / 1.093 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.9327, allocations: 3.062 kB / 1.093 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.9329, allocations: 42.06 kB / 1.093 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.933, allocations: 17.05 kB / 1.093 GB, free: 1.414 MB / 0.8575 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 7.21e-05/0.933, allocations: 118.7 kB / 1.093 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.9331, allocations: 11.58 kB / 1.093 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00034/0.9334, allocations: 126.5 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.9334, allocations: 1.625 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.9334, allocations: 0 / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.9334, allocations: 6.156 kB / 1.093 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004726/0.9339, allocations: 375.5 kB / 1.093 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.9339, allocations: 0 / 1.093 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.833e-05/0.934, allocations: 11.47 kB / 1.093 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.934, allocations: 0 / 1.093 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.934, allocations: 10.27 kB / 1.093 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.934, allocations: 3.938 kB / 1.093 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.934, allocations: 0.7969 kB / 1.093 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003427/0.9344, allocations: 225.2 kB / 1.093 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.956e-05/0.9344, allocations: 79.05 kB / 1.094 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.9345, allocations: 2.047 kB / 1.094 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.016e-05/0.9346, allocations: 11.16 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.123e-05/0.9346, allocations: 9.312 kB / 1.094 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.9346, allocations: 7.203 kB / 1.094 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.888e-05/0.9347, allocations: 95.28 kB / 1.094 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9347, allocations: 0 / 1.094 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002697/0.9349, allocations: 25.81 kB / 1.094 GB, free: 0.5195 MB / 0.8575 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.0006052/0.9355, allocations: 0.7452 MB / 1.094 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004122/0.936, allocations: 176.1 kB / 1.095 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.936, allocations: 0.8125 kB / 1.095 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.9361, allocations: 42.94 kB / 1.095 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.9364, allocations: 14.08 kB / 1.095 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002204/0.9386, allocations: 1.72 MB / 1.096 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.9389, allocations: 0.6892 MB / 1.097 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.012e-05/0.9389, allocations: 9.266 kB / 1.097 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.521e-05/0.939, allocations: 24.8 kB / 1.097 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/0.939, allocations: 0 / 1.097 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02317/0.9622, allocations: 2.6 MB / 1.1 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.545/8.507, allocations: 8.844 kB / 1.1 GB, free: 13.08 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > 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