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.01081/0.01081, 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.002045/0.002045, allocations: 194.7 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 1.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 15.18 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 2.248/2.248, allocations: 390.2 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001303, allocations: 64.09 kB / 0.9504 GB, free: 8.137 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8147/0.816, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001762/0.8178, allocations: 0.7476 MB / 1.088 GB, free: 4.793 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00113/0.819, allocations: 1.075 MB / 1.089 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.956e-05/0.819, allocations: 1.094 kB / 1.089 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.461e-05/0.8191, allocations: 8.672 kB / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.402e-05/0.8192, allocations: 11.36 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002909/0.8195, allocations: 50.81 kB / 1.089 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001129/0.8196, allocations: 74.09 kB / 1.089 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.8197, allocations: 17.8 kB / 1.089 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.611e-05/0.8198, allocations: 35.89 kB / 1.089 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.182e-05/0.8199, allocations: 37.06 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.8199, allocations: 4.844 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.799e-05/0.82, allocations: 20.58 kB / 1.09 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.508e-05/0.82, allocations: 13.03 kB / 1.09 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.584e-05/0.82, allocations: 31.34 kB / 1.09 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001703/0.8202, allocations: 83.59 kB / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.8202, allocations: 0.6094 kB / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8202, allocations: 0 / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.8202, allocations: 0.75 kB / 1.09 GB, free: 3.801 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.0004746/0.8207, allocations: 378.1 kB / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.8208, allocations: 9.688 kB / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.654e-05/0.8208, allocations: 36.84 kB / 1.09 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.294e-05/0.8208, allocations: 8.938 kB / 1.09 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.699e-05/0.8209, allocations: 177.7 kB / 1.09 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.821, allocations: 6.25 kB / 1.09 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.821, allocations: 8.703 kB / 1.09 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.8212, allocations: 68.31 kB / 1.09 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.8212, allocations: 4.656 kB / 1.09 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.8212, allocations: 1.312 kB / 1.09 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.8212, allocations: 0.9688 kB / 1.09 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001631/0.8214, allocations: 47.14 kB / 1.09 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005682/0.822, allocations: 319.2 kB / 1.091 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.8221, allocations: 59.58 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.803e-05/0.8222, allocations: 32.97 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.026e-05/0.8222, allocations: 5.703 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001806/0.8224, allocations: 74.44 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.8224, allocations: 4 kB / 1.091 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003829/0.8228, allocations: 130.9 kB / 1.091 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.8229, allocations: 59.12 kB / 1.091 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.799e-05/0.823, allocations: 121.9 kB / 1.091 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.823, allocations: 27.02 kB / 1.091 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.733e-05/0.823, allocations: 93.31 kB / 1.091 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/0.823, allocations: 10.89 kB / 1.091 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-05/0.8231, allocations: 38.06 kB / 1.091 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.625e-05/0.8231, allocations: 323.4 kB / 1.092 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.8232, allocations: 28.12 kB / 1.092 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.8234, allocations: 70.39 kB / 1.092 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001994/0.8236, allocations: 113 kB / 1.092 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.8236, allocations: 1.688 kB / 1.092 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002878/0.8239, allocations: 130.1 kB / 1.092 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.8239, allocations: 8.922 kB / 1.092 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.8239, allocations: 1.594 kB / 1.092 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.8239, allocations: 7.391 kB / 1.092 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.8241, allocations: 16.77 kB / 1.092 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.8241, allocations: 7.406 kB / 1.092 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.181e-05/0.8242, allocations: 12.14 kB / 1.092 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.8242, allocations: 12.97 kB / 1.092 GB, free: 1.746 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 6.941e-05/0.8243, allocations: 119.8 kB / 1.092 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.344e-05/0.8243, allocations: 7.219 kB / 1.092 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.845e-05/0.8243, allocations: 15.08 kB / 1.092 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.8243, allocations: 12.59 kB / 1.092 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.8243, allocations: 0.8125 kB / 1.092 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.8243, allocations: 0.6094 kB / 1.092 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003862/0.8247, allocations: 376 kB / 1.092 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.8247, allocations: 0 / 1.092 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.027e-05/0.8248, allocations: 9 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.8248, allocations: 0.8438 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-06/0.8248, allocations: 5.438 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.8248, allocations: 4.688 kB / 1.093 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.8248, allocations: 4.547 kB / 1.093 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002385/0.8251, allocations: 199.5 kB / 1.093 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.962e-05/0.8251, allocations: 83.92 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.8251, allocations: 5.391 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.848e-05/0.8252, allocations: 14.81 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.684e-05/0.8252, allocations: 4.688 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.814e-06/0.8253, allocations: 2.453 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.254e-05/0.8253, allocations: 91.91 kB / 1.093 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8253, allocations: 0.7812 kB / 1.093 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002624/0.8256, allocations: 20.75 kB / 1.093 GB, free: 0.9023 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.0006055/0.8262, allocations: 0.7441 MB / 1.094 GB, free: 16.22 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002822/0.8265, allocations: 75 kB / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.8265, allocations: 0 / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.8266, allocations: 39.95 kB / 1.094 GB, free: 16.19 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.8269, allocations: 14.64 kB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.8286, allocations: 1.531 MB / 1.095 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.8289, allocations: 0.6887 MB / 1.096 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.524e-05/0.8289, allocations: 6.438 kB / 1.096 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.652e-05/0.829, allocations: 21.81 kB / 1.096 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of SimCode: time 3.546e-06/0.829, allocations: 0 / 1.096 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0197/0.8487, allocations: 2.12 MB / 1.098 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.577/8.426, allocations: 8.469 kB / 1.098 GB, free: 13.71 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