Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.001139/0.001139, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001031/0.001031, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8947/0.8947, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.732/1.732, allocations: 377.8 MB / 0.6221 GB, free: 8.676 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 0.981 GB, free: 1.43 MB / 0.8855 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.485e-05/1.632e-05, allocations: 2.281 kB / 0.981 GB, free: 1.426 MB / 0.8855 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001206/0.001222, allocations: 0.7359 MB / 0.9817 GB, free: 0.6914 MB / 0.8855 GB Notification: Performance of NFInst.instExpressions: time 0.0009976/0.002219, allocations: 1.085 MB / 0.9828 GB, free: 15.59 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.668e-05/0.002266, allocations: 0 / 0.9828 GB, free: 15.59 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 3.108e-05/0.002297, allocations: 11.92 kB / 0.9828 GB, free: 15.58 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.911e-05/0.002366, allocations: 11.88 kB / 0.9828 GB, free: 15.57 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002833/0.00265, allocations: 51.7 kB / 0.9828 GB, free: 15.52 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 9.505e-05/0.002745, allocations: 79.75 kB / 0.9829 GB, free: 15.44 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.529e-05/0.00284, allocations: 16.19 kB / 0.9829 GB, free: 15.42 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 7.117e-05/0.002911, allocations: 35.91 kB / 0.983 GB, free: 15.39 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.422e-05/0.002955, allocations: 23.95 kB / 0.983 GB, free: 15.36 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.002969, allocations: 11.94 kB / 0.983 GB, free: 15.35 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 4.742e-05/0.003017, allocations: 19.98 kB / 0.983 GB, free: 15.33 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.043e-05/0.003037, allocations: 15.97 kB / 0.983 GB, free: 15.32 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.78e-05/0.003065, allocations: 27.92 kB / 0.9831 GB, free: 15.29 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.003185, allocations: 87.72 kB / 0.9831 GB, free: 15.2 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.003187, allocations: 0 / 0.9831 GB, free: 15.2 MB / 0.9011 GB Notification: Performance of FrontEnd: time 7.41e-07/0.003188, allocations: 0 / 0.9831 GB, free: 15.2 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.848e-06/0.003192, allocations: 0 / 0.9831 GB, free: 15.2 MB / 0.9011 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.0003695/0.003561, allocations: 306 kB / 0.9834 GB, free: 14.88 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.003598, allocations: 8.031 kB / 0.9834 GB, free: 14.87 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.774e-05/0.003626, allocations: 38.75 kB / 0.9835 GB, free: 14.82 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.684e-05/0.003652, allocations: 8.891 kB / 0.9835 GB, free: 14.81 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.178e-05/0.003724, allocations: 121.7 kB / 0.9836 GB, free: 14.67 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.003734, allocations: 8.375 kB / 0.9836 GB, free: 14.66 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.223e-05/0.003746, allocations: 8.375 kB / 0.9836 GB, free: 14.65 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/0.003871, allocations: 66.22 kB / 0.9837 GB, free: 14.58 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.003878, allocations: 4.125 kB / 0.9837 GB, free: 14.58 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.003886, allocations: 4.312 kB / 0.9837 GB, free: 14.57 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.003891, allocations: 3.938 kB / 0.9837 GB, free: 14.57 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.799e-05/0.003979, allocations: 43.95 kB / 0.9837 GB, free: 14.53 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000387/0.004366, allocations: 272 kB / 0.984 GB, free: 14.22 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/0.004476, allocations: 62.52 kB / 0.9841 GB, free: 14.15 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.792e-05/0.004524, allocations: 28.97 kB / 0.9841 GB, free: 14.12 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.004541, allocations: 0 / 0.9841 GB, free: 14.12 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001162/0.004657, allocations: 79.33 kB / 0.9842 GB, free: 14.03 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=7): time 9.01e-07/0.004658, allocations: 0 / 0.9842 GB, free: 14.03 MB / 0.9011 GB Notification: Performance of matching and sorting (n=7): time 0.0002477/0.004905, allocations: 137.5 kB / 0.9843 GB, free: 13.89 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/0.004936, allocations: 51.41 kB / 0.9843 GB, free: 13.82 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.591e-05/0.005002, allocations: 133.7 kB / 0.9845 GB, free: 13.68 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.005014, allocations: 25.7 kB / 0.9845 GB, free: 13.65 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 3.646e-05/0.00505, allocations: 88.14 kB / 0.9846 GB, free: 13.56 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.005065, allocations: 19.84 kB / 0.9846 GB, free: 13.54 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-05/0.005099, allocations: 29.7 kB / 0.9846 GB, free: 13.51 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 7.068e-05/0.00517, allocations: 322.8 kB / 0.9849 GB, free: 13.18 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.698e-05/0.005227, allocations: 31.97 kB / 0.985 GB, free: 13.15 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.273e-05/0.0053, allocations: 70.42 kB / 0.985 GB, free: 13.06 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.00543, allocations: 113.8 kB / 0.9851 GB, free: 12.93 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.005432, allocations: 0 / 0.9851 GB, free: 12.93 MB / 0.9011 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001685/0.0056, allocations: 133.5 kB / 0.9853 GB, free: 12.79 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.005612, allocations: 6.188 kB / 0.9853 GB, free: 12.79 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.005618, allocations: 4 kB / 0.9853 GB, free: 12.79 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.005628, allocations: 224 / 0.9853 GB, free: 12.79 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.388e-05/0.005702, allocations: 23.92 kB / 0.9853 GB, free: 12.76 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.005706, allocations: 4 kB / 0.9853 GB, free: 12.76 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.894e-05/0.005745, allocations: 11.94 kB / 0.9853 GB, free: 12.75 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.005755, allocations: 8.312 kB / 0.9853 GB, free: 12.74 MB / 0.9011 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 6.421e-05/0.005819, allocations: 125.7 kB / 0.9854 GB, free: 12.61 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-06/0.005827, allocations: 7.953 kB / 0.9854 GB, free: 12.6 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.145e-05/0.005848, allocations: 8.422 kB / 0.9855 GB, free: 12.59 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.005851, allocations: 0 / 0.9855 GB, free: 12.59 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.005855, allocations: 4 kB / 0.9855 GB, free: 12.59 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.005859, allocations: 4 kB / 0.9855 GB, free: 12.58 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002747/0.006133, allocations: 341.5 kB / 0.9858 GB, free: 12.2 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.006134, allocations: 0 / 0.9858 GB, free: 12.2 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.404e-05/0.006158, allocations: 15.92 kB / 0.9858 GB, free: 12.18 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.006159, allocations: 0 / 0.9858 GB, free: 12.18 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.006168, allocations: 11.94 kB / 0.9858 GB, free: 12.17 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.006169, allocations: 0 / 0.9858 GB, free: 12.17 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.006169, allocations: 3.938 kB / 0.9858 GB, free: 12.17 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.006454, allocations: 211.4 kB / 0.986 GB, free: 11.95 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 6.101e-06/0.00646, allocations: 3.953 kB / 0.986 GB, free: 11.94 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.057e-05/0.006471, allocations: 4 kB / 0.986 GB, free: 11.94 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.101e-05/0.006512, allocations: 7.984 kB / 0.986 GB, free: 11.93 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.213e-05/0.006544, allocations: 11.97 kB / 0.986 GB, free: 11.92 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.662e-06/0.00655, allocations: 7.938 kB / 0.9861 GB, free: 11.91 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 3.458e-05/0.006585, allocations: 95.42 kB / 0.9861 GB, free: 11.82 MB / 0.9011 GB Notification: Performance of sort global known variables: time 6e-08/0.006585, allocations: 0 / 0.9861 GB, free: 11.82 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0001679/0.006753, allocations: 12 kB / 0.9862 GB, free: 11.8 MB / 0.9011 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.000343/0.007096, allocations: 0.748 MB / 0.9869 GB, free: 11.03 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0001596/0.007255, allocations: 71.88 kB / 0.987 GB, free: 10.96 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.007257, allocations: 4 kB / 0.987 GB, free: 10.96 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 5.612e-05/0.007313, allocations: 28.36 kB / 0.987 GB, free: 10.93 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000189/0.007502, allocations: 27.86 kB / 0.987 GB, free: 10.9 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.008607, allocations: 1.518 MB / 0.9885 GB, free: 9.262 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.364e-05/0.00865, allocations: 75.34 kB / 0.9886 GB, free: 9.168 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 2.754e-05/0.008678, allocations: 7.984 kB / 0.9886 GB, free: 9.16 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.736e-05/0.008715, allocations: 20.5 kB / 0.9886 GB, free: 9.141 MB / 0.9011 GB Notification: Performance of SimCode: time 2.8e-07/0.008716, allocations: 0 / 0.9886 GB, free: 9.141 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01511/0.02383, allocations: 2.837 MB / 0.9914 GB, free: 6.512 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.815/6.839, allocations: 0 / 0.9914 GB, free: 6.512 MB / 0.9011 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime_fmu --startTime=-2 --stopTime=3 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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: 10.76871483772993]