Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 209.7 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.525/1.525, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.8/2.8, allocations: 476 MB / 0.7699 GB, free: 4.715 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002097/0.002097, allocations: 65.8 kB / 1.117 GB, free: 41.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3291, allocations: 170 MB / 1.283 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002037/0.3312, allocations: 0.7407 MB / 1.283 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.3326, allocations: 1.09 MB / 1.284 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.104e-05/0.3326, allocations: 0 / 1.284 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.833e-05/0.3327, allocations: 3.938 kB / 1.284 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.733e-05/0.3327, allocations: 23.84 kB / 1.284 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003045/0.3331, allocations: 47.84 kB / 1.284 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001274/0.3332, allocations: 75.77 kB / 1.285 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.3333, allocations: 13.86 kB / 1.285 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.178e-05/0.3334, allocations: 31.86 kB / 1.285 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.39e-05/0.3334, allocations: 35.83 kB / 1.285 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.713e-05/0.3335, allocations: 4 kB / 1.285 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.234e-05/0.3335, allocations: 19.98 kB / 1.285 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.072e-05/0.3335, allocations: 8 kB / 1.285 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.857e-05/0.3336, allocations: 27.86 kB / 1.285 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001455/0.3337, allocations: 79.27 kB / 1.285 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3337, allocations: 0 / 1.285 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3337, allocations: 4 kB / 1.285 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.126e-06/0.3337, allocations: 0 / 1.285 GB, free: 10.22 MB / 0.9825 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.0005192/0.3343, allocations: 306 kB / 1.285 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.3343, allocations: 8.031 kB / 1.285 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.976e-05/0.3343, allocations: 34.75 kB / 1.285 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.569e-05/0.3344, allocations: 8.891 kB / 1.285 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.3345, allocations: 126.3 kB / 1.285 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.3345, allocations: 8.375 kB / 1.285 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.836e-05/0.3345, allocations: 4.375 kB / 1.285 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002006/0.3347, allocations: 73.92 kB / 1.285 GB, free: 9.598 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.3348, allocations: 0 / 1.285 GB, free: 9.598 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.3348, allocations: 3.984 kB / 1.285 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.3348, allocations: 0 / 1.285 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.335, allocations: 47.91 kB / 1.285 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006321/0.3356, allocations: 287.8 kB / 1.286 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.3358, allocations: 54.56 kB / 1.286 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.847e-05/0.3359, allocations: 29.05 kB / 1.286 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.3359, allocations: 3.938 kB / 1.286 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002266/0.3361, allocations: 75.38 kB / 1.286 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/0.3361, allocations: 0 / 1.286 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004502/0.3366, allocations: 141.5 kB / 1.286 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.3366, allocations: 51.41 kB / 1.286 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.3367, allocations: 121.8 kB / 1.286 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.3368, allocations: 25.7 kB / 1.286 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.255e-05/0.3368, allocations: 104 kB / 1.286 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.96e-05/0.3369, allocations: 11.91 kB / 1.286 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-05/0.3369, allocations: 29.7 kB / 1.286 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001767/0.3371, allocations: 326.8 kB / 1.287 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.3372, allocations: 23.98 kB / 1.287 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.3374, allocations: 77.97 kB / 1.287 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.3376, allocations: 101.9 kB / 1.287 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3376, allocations: 0 / 1.287 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003319/0.3379, allocations: 145.3 kB / 1.287 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.3379, allocations: 4 kB / 1.287 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.338, allocations: 4 kB / 1.287 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.338, allocations: 0 / 1.287 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.3381, allocations: 19.98 kB / 1.287 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.3381, allocations: 3.938 kB / 1.287 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.499e-05/0.3382, allocations: 24.14 kB / 1.287 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.3382, allocations: 4 kB / 1.287 GB, free: 7.742 MB / 0.9825 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 0.000108/0.3383, allocations: 117.8 kB / 1.287 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.729e-05/0.3383, allocations: 7.953 kB / 1.287 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.093e-05/0.3384, allocations: 12.36 kB / 1.287 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3384, allocations: 0 / 1.287 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3384, allocations: 4 kB / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.3384, allocations: 0 / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000492/0.3389, allocations: 349.4 kB / 1.287 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3389, allocations: 0 / 1.287 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.477e-05/0.3389, allocations: 7.984 kB / 1.287 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.3389, allocations: 0 / 1.287 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.3389, allocations: 4 kB / 1.287 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3389, allocations: 3.938 kB / 1.287 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3389, allocations: 0 / 1.287 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003053/0.3392, allocations: 203.4 kB / 1.288 GB, free: 6.969 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.216e-06/0.3392, allocations: 0 / 1.288 GB, free: 6.969 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.3393, allocations: 12 kB / 1.288 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.455e-05/0.3393, allocations: 11.92 kB / 1.288 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.811e-05/0.3394, allocations: 3.984 kB / 1.288 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.3394, allocations: 8 kB / 1.288 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.119e-05/0.3395, allocations: 91.27 kB / 1.288 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3395, allocations: 0 / 1.288 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002531/0.3397, allocations: 23.89 kB / 1.288 GB, free: 6.82 MB / 0.9825 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.0006364/0.3403, allocations: 0.7412 MB / 1.288 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002663/0.3406, allocations: 79.94 kB / 1.289 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3406, allocations: 3.938 kB / 1.289 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.3407, allocations: 27.98 kB / 1.289 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.341, allocations: 16.36 kB / 1.289 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001844/0.3428, allocations: 1.525 MB / 1.29 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.808e-05/0.3429, allocations: 71.33 kB / 1.29 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.502e-05/0.3429, allocations: 12 kB / 1.29 GB, free: 4.184 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.272e-05/0.343, allocations: 23.42 kB / 1.29 GB, free: 4.16 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/0.343, allocations: 0 / 1.29 GB, free: 4.16 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03144/0.3744, allocations: 2.673 MB / 1.293 GB, free: 1.633 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.73, allocations: 8 kB / 1.293 GB, free: 1.625 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.543024967890233]