Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001667/0.001668, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.556/2.556, allocations: 437.1 MB / 0.7112 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 67.48 kB / 0.8707 GB, free: 1.418 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.3008, allocations: 151.6 MB / 1.019 GB, free: 9.832 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002351/0.3032, allocations: 0.7538 MB / 1.02 GB, free: 9.07 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001573/0.3048, allocations: 1.083 MB / 1.021 GB, free: 7.973 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.477e-05/0.3049, allocations: 0 / 1.021 GB, free: 7.973 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.901e-05/0.305, allocations: 7.875 kB / 1.021 GB, free: 7.965 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.47e-05/0.3051, allocations: 11.88 kB / 1.021 GB, free: 7.953 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003614/0.3054, allocations: 52.38 kB / 1.021 GB, free: 7.902 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001432/0.3056, allocations: 71.78 kB / 1.021 GB, free: 7.832 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.3057, allocations: 20.16 kB / 1.021 GB, free: 7.809 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.619e-05/0.3058, allocations: 31.86 kB / 1.021 GB, free: 7.777 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.671e-05/0.3059, allocations: 31.91 kB / 1.021 GB, free: 7.746 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.3059, allocations: 4 kB / 1.021 GB, free: 7.742 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.448e-05/0.306, allocations: 19.98 kB / 1.021 GB, free: 7.723 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.931e-05/0.306, allocations: 19.92 kB / 1.021 GB, free: 7.703 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.024e-05/0.3061, allocations: 27.86 kB / 1.021 GB, free: 7.676 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.3063, allocations: 83.73 kB / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3063, allocations: 3.938 kB / 1.021 GB, free: 7.59 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3063, allocations: 0 / 1.021 GB, free: 7.59 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.3063, allocations: 0 / 1.021 GB, free: 7.59 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000563/0.3069, allocations: 379.1 kB / 1.021 GB, free: 7.172 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.3069, allocations: 20.81 kB / 1.021 GB, free: 7.152 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.612e-05/0.307, allocations: 8.844 kB / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.3071, allocations: 172.3 kB / 1.022 GB, free: 6.938 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.3071, allocations: 4.375 kB / 1.022 GB, free: 6.934 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.3071, allocations: 4.375 kB / 1.022 GB, free: 6.93 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/0.3074, allocations: 62.23 kB / 1.022 GB, free: 6.863 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.3074, allocations: 3.938 kB / 1.022 GB, free: 6.859 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.3074, allocations: 3.984 kB / 1.022 GB, free: 6.855 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.3074, allocations: 8 kB / 1.022 GB, free: 6.848 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001631/0.3076, allocations: 43.91 kB / 1.022 GB, free: 6.805 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000646/0.3082, allocations: 328.6 kB / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001638/0.3084, allocations: 66.52 kB / 1.022 GB, free: 6.359 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.104e-05/0.3085, allocations: 28.97 kB / 1.022 GB, free: 6.328 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.3085, allocations: 0 / 1.022 GB, free: 6.328 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001817/0.3087, allocations: 75.38 kB / 1.022 GB, free: 6.242 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.3087, allocations: 0 / 1.022 GB, free: 6.242 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0004025/0.3091, allocations: 133.5 kB / 1.022 GB, free: 6.105 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/0.3092, allocations: 55.41 kB / 1.022 GB, free: 6.039 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.3093, allocations: 125.8 kB / 1.022 GB, free: 5.906 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.3093, allocations: 29.7 kB / 1.022 GB, free: 5.871 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.913e-05/0.3094, allocations: 96.03 kB / 1.023 GB, free: 5.773 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.126e-05/0.3094, allocations: 15.73 kB / 1.023 GB, free: 5.758 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.5e-05/0.3095, allocations: 33.7 kB / 1.023 GB, free: 5.719 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.3096, allocations: 322.8 kB / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.999e-05/0.3097, allocations: 31.91 kB / 1.023 GB, free: 5.363 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.3098, allocations: 69.98 kB / 1.023 GB, free: 5.273 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.3101, allocations: 109.8 kB / 1.023 GB, free: 5.145 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3101, allocations: 4 kB / 1.023 GB, free: 5.141 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002904/0.3104, allocations: 133.4 kB / 1.023 GB, free: 5.004 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.3104, allocations: 4 kB / 1.023 GB, free: 5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.3104, allocations: 4 kB / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.3104, allocations: 0 / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.3106, allocations: 19.92 kB / 1.023 GB, free: 4.977 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.3106, allocations: 12.2 kB / 1.023 GB, free: 4.965 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.123e-05/0.3107, allocations: 8 kB / 1.023 GB, free: 4.957 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.3107, allocations: 8 kB / 1.023 GB, free: 4.949 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.495e-05/0.3108, allocations: 126.4 kB / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.396e-05/0.3108, allocations: 3.906 kB / 1.023 GB, free: 4.812 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.959e-05/0.3108, allocations: 12.38 kB / 1.023 GB, free: 4.801 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.3108, allocations: 0 / 1.023 GB, free: 4.801 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3108, allocations: 0 / 1.023 GB, free: 4.801 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.3108, allocations: 4 kB / 1.023 GB, free: 4.797 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004374/0.3113, allocations: 374.7 kB / 1.024 GB, free: 4.375 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.3113, allocations: 0 / 1.024 GB, free: 4.375 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.086e-05/0.3114, allocations: 7.984 kB / 1.024 GB, free: 4.367 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3114, allocations: 4 kB / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.537e-06/0.3114, allocations: 0 / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.3114, allocations: 3.938 kB / 1.024 GB, free: 4.359 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3114, allocations: 4.016 kB / 1.024 GB, free: 4.355 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002813/0.3117, allocations: 207.4 kB / 1.024 GB, free: 4.137 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.965e-05/0.3117, allocations: 88.95 kB / 1.024 GB, free: 4.031 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.729e-05/0.3118, allocations: 0 / 1.024 GB, free: 4.031 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.382e-05/0.3119, allocations: 11.92 kB / 1.024 GB, free: 4.02 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.273e-05/0.3119, allocations: 7.938 kB / 1.024 GB, free: 4.012 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.3119, allocations: 3.938 kB / 1.024 GB, free: 4.008 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.665e-05/0.312, allocations: 103.3 kB / 1.024 GB, free: 3.906 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.312, allocations: 0 / 1.024 GB, free: 3.906 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002697/0.3123, allocations: 12 kB / 1.024 GB, free: 3.895 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001638/0.3124, allocations: 103.2 kB / 1.024 GB, free: 3.785 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002677/0.3127, allocations: 80.2 kB / 1.024 GB, free: 3.707 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3127, allocations: 4.062 kB / 1.024 GB, free: 3.703 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.3128, allocations: 35.97 kB / 1.024 GB, free: 3.668 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.3131, allocations: 15.98 kB / 1.024 GB, free: 3.652 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000347/0.3134, allocations: 154.2 kB / 1.025 GB, free: 3.473 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.3137, allocations: 0.6846 MB / 1.025 GB, free: 2.762 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.555e-05/0.3138, allocations: 15.92 kB / 1.025 GB, free: 2.746 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.075e-05/0.3138, allocations: 15.44 kB / 1.025 GB, free: 2.73 MB / 0.795 GB Notification: Performance of SimCode: time 4.21e-07/0.3138, allocations: 0 / 1.025 GB, free: 2.73 MB / 0.795 GB Notification: Performance of Templates: time 0.003319/0.3171, allocations: 0.9671 MB / 1.026 GB, free: 1.773 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp.duration,ramp.height,ramp.offset,ramp.startTime,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start