Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.001794/0.001794, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.00193/0.00193, allocations: 212.7 kB / 22.24 MB, free: 4.855 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.501/1.501, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.232/3.232, allocations: 0.4892 GB / 0.7944 GB, free: 35.52 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",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.002114/0.002114, allocations: 65.97 kB / 1.153 GB, free: 25.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3174, allocations: 176.1 MB / 1.325 GB, free: 2.355 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002259/0.3197, allocations: 0.7376 MB / 1.326 GB, free: 1.625 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001487/0.3212, allocations: 1.093 MB / 1.327 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.166e-05/0.3212, allocations: 0 / 1.327 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.269e-05/0.3212, allocations: 7.875 kB / 1.327 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.712e-05/0.3213, allocations: 11.94 kB / 1.327 GB, free: 0.5 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003345/0.3216, allocations: 55.81 kB / 1.327 GB, free: 456 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001319/0.3218, allocations: 71.72 kB / 1.327 GB, free: 384 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.3219, allocations: 24.16 kB / 1.327 GB, free: 356 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.244e-05/0.322, allocations: 23.92 kB / 1.327 GB, free: 332 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.645e-05/0.322, allocations: 35.78 kB / 1.327 GB, free: 296 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.807e-05/0.322, allocations: 4 kB / 1.327 GB, free: 292 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.85e-05/0.3221, allocations: 19.98 kB / 1.327 GB, free: 272 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.306e-05/0.3222, allocations: 15.98 kB / 1.327 GB, free: 256 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.339e-05/0.3222, allocations: 23.86 kB / 1.327 GB, free: 232 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000176/0.3224, allocations: 87.91 kB / 1.327 GB, free: 144 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3224, allocations: 0 / 1.327 GB, free: 144 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.843e-06/0.3224, allocations: 0 / 1.327 GB, free: 144 kB / 1.014 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.3224, allocations: 0 / 1.327 GB, free: 144 kB / 1.014 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.0006073/0.323, allocations: 302.1 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.323, allocations: 12.02 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.517e-05/0.3231, allocations: 34.69 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.18e-05/0.3231, allocations: 8.891 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.3233, allocations: 118.4 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.3233, allocations: 12.38 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.518e-05/0.3233, allocations: 4.375 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002126/0.3235, allocations: 69.97 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.3235, allocations: 0 / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.3235, allocations: 4 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-06/0.3235, allocations: 4 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.3237, allocations: 43.89 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006294/0.3243, allocations: 291.8 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001847/0.3245, allocations: 58.58 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.3246, allocations: 28.95 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.3246, allocations: 0 / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002374/0.3249, allocations: 75.38 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.3249, allocations: 0 / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.000439/0.3253, allocations: 137.5 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.3254, allocations: 55.39 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.3255, allocations: 117.8 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.3255, allocations: 29.7 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.381e-05/0.3256, allocations: 100.1 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.178e-05/0.3256, allocations: 15.91 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.319e-05/0.3256, allocations: 25.7 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.3258, allocations: 322.8 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.3259, allocations: 31.97 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.326, allocations: 77.92 kB / 1.329 GB, free: 13.99 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/0.3263, allocations: 109.8 kB / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3263, allocations: 4 kB / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003356/0.3266, allocations: 129.4 kB / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.3266, allocations: 8 kB / 1.329 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3266, allocations: 4 kB / 1.329 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.034e-05/0.3267, allocations: 4 kB / 1.329 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.3268, allocations: 28.12 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.3268, allocations: 0 / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.813e-05/0.3269, allocations: 15.94 kB / 1.329 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.3269, allocations: 7.984 kB / 1.329 GB, free: 13.66 MB / 1.029 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 9.944e-05/0.327, allocations: 120.4 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.777e-05/0.327, allocations: 7.953 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.001e-05/0.3271, allocations: 8.375 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.3271, allocations: 4 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.3271, allocations: 0 / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.3271, allocations: 0 / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005065/0.3276, allocations: 349.5 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3276, allocations: 0 / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.692e-05/0.3276, allocations: 7.984 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3276, allocations: 0 / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.585e-06/0.3277, allocations: 4 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.3277, allocations: 3.938 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.3277, allocations: 3.938 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003228/0.328, allocations: 207.5 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.357e-05/0.328, allocations: 7.891 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.328, allocations: 4 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.97e-05/0.3281, allocations: 11.92 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.289e-05/0.3281, allocations: 0 / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.3281, allocations: 8 kB / 1.33 GB, free: 12.85 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.554e-05/0.3282, allocations: 91.27 kB / 1.33 GB, free: 12.76 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3282, allocations: 0 / 1.33 GB, free: 12.76 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002631/0.3285, allocations: 12 kB / 1.33 GB, free: 12.75 MB / 1.029 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.0006923/0.3292, allocations: 0.7571 MB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002795/0.3294, allocations: 71.89 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3294, allocations: 3.938 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.3296, allocations: 31.91 kB / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.3298, allocations: 24.31 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001877/0.3317, allocations: 1.506 MB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.505e-05/0.3318, allocations: 83.27 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.755e-05/0.3318, allocations: 4 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.272e-05/0.3319, allocations: 23.42 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of SimCode: time 5.61e-07/0.3319, allocations: 0 / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02941/0.3613, allocations: 2.691 MB / 1.335 GB, free: 7.566 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.67, allocations: 8.422 kB / 1.335 GB, free: 7.562 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.44437975110486]