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.004945/0.004945, allocations: 104.7 kB / 15.74 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.001096/0.001097, allocations: 197.5 kB / 16.67 MB, free: 6.375 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.681/1.681, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.66/2.66, allocations: 390.3 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 59.28 kB / 0.9504 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2936, allocations: 140.4 MB / 1.087 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002044/0.2957, allocations: 0.7406 MB / 1.088 GB, free: 1.234 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001458/0.2971, allocations: 1.165 MB / 1.089 GB, free: 56 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.22e-05/0.2972, allocations: 3.938 kB / 1.089 GB, free: 52 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.998e-05/0.2973, allocations: 3.938 kB / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.677e-05/0.2973, allocations: 19.78 kB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000501/0.2978, allocations: 140.7 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001708/0.298, allocations: 127.8 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.2981, allocations: 24.16 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.617e-05/0.2982, allocations: 47.91 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.244e-05/0.2983, allocations: 47.81 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.494e-05/0.2984, allocations: 12 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.088e-05/0.2984, allocations: 31.97 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.316e-05/0.2985, allocations: 11.98 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.927e-05/0.2986, allocations: 51.78 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000178/0.2987, allocations: 111.7 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.2988, allocations: 0 / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2988, allocations: 3.938 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.551e-06/0.2988, allocations: 8 kB / 1.09 GB, free: 15.42 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.0005956/0.2994, allocations: 412.6 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.2994, allocations: 12.03 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.335e-05/0.2995, allocations: 38.73 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.594e-05/0.2995, allocations: 12.84 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.2996, allocations: 168.3 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.2997, allocations: 4.375 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.159e-05/0.2997, allocations: 16.36 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002061/0.2999, allocations: 81.91 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.2999, allocations: 3.984 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.2999, allocations: 4 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.3, allocations: 0 / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002219/0.3002, allocations: 47.95 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000492/0.3007, allocations: 344.6 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/0.3009, allocations: 54.55 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.301, allocations: 36.95 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.301, allocations: 0 / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002542/0.3013, allocations: 91.36 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.483e-06/0.3013, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004641/0.3018, allocations: 157.5 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.3018, allocations: 51.41 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.804e-05/0.3019, allocations: 126 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.3019, allocations: 29.7 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.263e-05/0.302, allocations: 100.1 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.028e-05/0.302, allocations: 19.66 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.852e-05/0.3021, allocations: 37.7 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3022, allocations: 326.8 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.3024, allocations: 55.95 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.3026, allocations: 93.11 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002825/0.3029, allocations: 150.7 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3029, allocations: 4 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004527/0.3034, allocations: 207.2 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.972e-05/0.3034, allocations: 33.7 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.3034, allocations: 3.984 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.3035, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.3036, allocations: 15.98 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.3036, allocations: 8.156 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002154/0.3038, allocations: 39.81 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.3038, allocations: 11.92 kB / 1.093 GB, free: 12.39 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 9.423e-05/0.3039, allocations: 117.8 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.676e-05/0.304, allocations: 7.906 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003398/0.3043, allocations: 134 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.3043, allocations: 3.938 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3043, allocations: 0 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.3043, allocations: 0 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004585/0.3048, allocations: 374.4 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3048, allocations: 0 / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.364e-05/0.3049, allocations: 11.98 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3049, allocations: 4 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.3049, allocations: 0 / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.3049, allocations: 7.938 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.3049, allocations: 4 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003096/0.3052, allocations: 223.7 kB / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.09e-05/0.3053, allocations: 77.11 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.3053, allocations: 4 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.85e-05/0.3054, allocations: 15.92 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.707e-05/0.3055, allocations: 0 / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.3055, allocations: 8 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.909e-05/0.3055, allocations: 95.42 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3055, allocations: 0 / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002733/0.3058, allocations: 23.91 kB / 1.094 GB, free: 11.2 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.000679/0.3065, allocations: 0.7632 MB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003959/0.3069, allocations: 175.3 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3069, allocations: 0 / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.3071, allocations: 44.28 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.3074, allocations: 17.64 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/0.3095, allocations: 1.699 MB / 1.096 GB, free: 8.348 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002607/0.3097, allocations: 0.6938 MB / 1.097 GB, free: 7.629 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.617e-05/0.3098, allocations: 7.984 kB / 1.097 GB, free: 7.621 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.304e-05/0.3098, allocations: 19.44 kB / 1.097 GB, free: 7.602 MB / 0.8575 GB Notification: Performance of SimCode: time 2.515e-06/0.3098, allocations: 0 / 1.097 GB, free: 7.602 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.367/2.677, allocations: 2.561 MB / 1.1 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/15.71, allocations: 10.75 kB / 1.1 GB, free: 5.156 MB / 0.8575 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