Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_9_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_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",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.01437/0.01437, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.002596/0.002596, allocations: 195.3 kB / 16.67 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.111/2.111, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 3.441/3.441, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0027/0.0027, allocations: 63.91 kB / 0.9504 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.636/1.639, allocations: 140.4 MB / 1.087 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.004386/1.643, allocations: 0.7458 MB / 1.088 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002756/1.646, allocations: 1.066 MB / 1.089 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/1.646, allocations: 1.094 kB / 1.089 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 6.564e-05/1.646, allocations: 4.5 kB / 1.089 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001501/1.646, allocations: 18.41 kB / 1.089 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005554/1.647, allocations: 50.59 kB / 1.089 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002016/1.647, allocations: 73.75 kB / 1.089 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/1.647, allocations: 19.95 kB / 1.089 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/1.648, allocations: 26.58 kB / 1.089 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/1.648, allocations: 32.73 kB / 1.089 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.898e-05/1.648, allocations: 5.156 kB / 1.089 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/1.648, allocations: 28.61 kB / 1.09 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.461e-05/1.648, allocations: 13.42 kB / 1.09 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.485e-05/1.648, allocations: 35.17 kB / 1.09 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000256/1.648, allocations: 79.39 kB / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/1.648, allocations: 0 / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.354e-06/1.648, allocations: 1.156 kB / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.854e-06/1.648, allocations: 0 / 1.09 GB, free: 4.066 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0008298/1.649, allocations: 374.5 kB / 1.09 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.077e-05/1.649, allocations: 9.656 kB / 1.09 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.696e-05/1.649, allocations: 41.34 kB / 1.09 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.691e-05/1.649, allocations: 7.875 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001463/1.65, allocations: 178.6 kB / 1.09 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/1.65, allocations: 5.938 kB / 1.09 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.815e-05/1.65, allocations: 5.344 kB / 1.09 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003607/1.65, allocations: 76.05 kB / 1.09 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/1.65, allocations: 0 / 1.09 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/1.65, allocations: 5.922 kB / 1.09 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/1.65, allocations: 1.312 kB / 1.09 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003784/1.651, allocations: 46.91 kB / 1.09 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/1.652, allocations: 319.5 kB / 1.091 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/1.652, allocations: 55.52 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/1.652, allocations: 31.94 kB / 1.091 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.334e-05/1.652, allocations: 5.969 kB / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004508/1.653, allocations: 86.5 kB / 1.091 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 2.826e-06/1.653, allocations: 0 / 1.091 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0007387/1.654, allocations: 130.5 kB / 1.091 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.671e-05/1.654, allocations: 54.72 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/1.654, allocations: 130.8 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/1.654, allocations: 27.64 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.803e-05/1.654, allocations: 92 kB / 1.091 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/1.654, allocations: 15.84 kB / 1.091 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.416e-05/1.654, allocations: 33.83 kB / 1.091 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.543e-05/1.654, allocations: 319.2 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/1.654, allocations: 39.56 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002284/1.655, allocations: 70.81 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000421/1.655, allocations: 106 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/1.655, allocations: 1.281 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0006197/1.656, allocations: 134.8 kB / 1.092 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/1.656, allocations: 5 kB / 1.092 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/1.656, allocations: 2.375 kB / 1.092 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.766e-05/1.656, allocations: 3.016 kB / 1.092 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002455/1.656, allocations: 20.23 kB / 1.092 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.519e-05/1.656, allocations: 3.484 kB / 1.092 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/1.656, allocations: 16.33 kB / 1.092 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.73e-05/1.656, allocations: 4.797 kB / 1.092 GB, free: 2.004 MB / 0.8575 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.0001462/1.656, allocations: 128.1 kB / 1.092 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.127e-05/1.657, allocations: 7.609 kB / 1.092 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.534e-05/1.657, allocations: 6.578 kB / 1.092 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/1.657, allocations: 1.547 kB / 1.092 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/1.657, allocations: 3.938 kB / 1.092 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/1.657, allocations: 5.469 kB / 1.092 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008135/1.657, allocations: 383.1 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/1.657, allocations: 1.625 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.96e-05/1.658, allocations: 7.875 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/1.658, allocations: 1.094 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/1.658, allocations: 0.5156 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/1.658, allocations: 5.094 kB / 1.093 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/1.658, allocations: 0.7031 kB / 1.093 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005072/1.658, allocations: 199.2 kB / 1.093 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.856e-05/1.658, allocations: 83.42 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.963e-05/1.658, allocations: 5.797 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/1.658, allocations: 10.75 kB / 1.093 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.316e-05/1.659, allocations: 8.875 kB / 1.093 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/1.659, allocations: 2.188 kB / 1.093 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.874e-05/1.659, allocations: 96.5 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.3e-07/1.659, allocations: 0.8438 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005511/1.659, allocations: 20.53 kB / 1.093 GB, free: 1.16 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 (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.0008781/1.66, allocations: 0.7396 MB / 1.094 GB, free: 492 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005578/1.661, allocations: 78.31 kB / 1.094 GB, free: 472 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/1.661, allocations: 0.9375 kB / 1.094 GB, free: 472 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002067/1.661, allocations: 35.16 kB / 1.094 GB, free: 464 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005286/1.662, allocations: 14.72 kB / 1.094 GB, free: 456 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003345/1.665, allocations: 1.524 MB / 1.095 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004533/1.665, allocations: 0.6884 MB / 1.096 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.207e-05/1.666, allocations: 10.12 kB / 1.096 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/1.666, allocations: 22.31 kB / 1.096 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of SimCode: time 1.884e-06/1.666, allocations: 0 / 1.096 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07512/1.741, allocations: 2.12 MB / 1.098 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/14.84, allocations: 8.609 kB / 1.098 GB, free: 13.98 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime_fmu --startTime=-2 --stopTime=3 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches