Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_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_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",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.008805/0.008805, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.002204/0.002204, allocations: 190.6 kB / 16.67 MB, free: 5.93 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.207/2.207, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 63.91 kB / 0.9504 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7901/0.7915, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001842/0.7933, allocations: 0.7568 MB / 1.088 GB, free: 4.789 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.7947, allocations: 1.065 MB / 1.089 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.843e-05/0.7947, allocations: 1.531 kB / 1.089 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.577e-05/0.7948, allocations: 9.281 kB / 1.089 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.978e-05/0.7948, allocations: 6.734 kB / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002783/0.7951, allocations: 58.89 kB / 1.089 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001172/0.7953, allocations: 74.12 kB / 1.089 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.7954, allocations: 19.48 kB / 1.089 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.428e-05/0.7955, allocations: 30.08 kB / 1.089 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.463e-05/0.7955, allocations: 32.94 kB / 1.089 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.7955, allocations: 5.625 kB / 1.089 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.204e-05/0.7956, allocations: 23.92 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.203e-05/0.7957, allocations: 10.56 kB / 1.09 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.222e-05/0.7957, allocations: 39.14 kB / 1.09 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.7959, allocations: 75.05 kB / 1.09 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.7959, allocations: 0.5625 kB / 1.09 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.352e-06/0.7959, allocations: 0 / 1.09 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.7959, allocations: 1.125 kB / 1.09 GB, free: 3.809 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.0004484/0.7963, allocations: 377.1 kB / 1.09 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.7964, allocations: 9.922 kB / 1.09 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.561e-05/0.7964, allocations: 33.33 kB / 1.09 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.721e-05/0.7965, allocations: 8.844 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.42e-05/0.7965, allocations: 185.8 kB / 1.09 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.7966, allocations: 6.312 kB / 1.09 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.713e-05/0.7966, allocations: 5.844 kB / 1.09 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001831/0.7968, allocations: 67.19 kB / 1.09 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.7968, allocations: 0 / 1.09 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.7968, allocations: 4.938 kB / 1.09 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.7968, allocations: 1.094 kB / 1.09 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001734/0.797, allocations: 48.23 kB / 1.09 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005823/0.7976, allocations: 326.5 kB / 1.091 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001656/0.7978, allocations: 60.06 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.744e-05/0.7979, allocations: 32.34 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.7979, allocations: 5.531 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.7981, allocations: 74.72 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.7981, allocations: 0 / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004128/0.7985, allocations: 131.7 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.7986, allocations: 57.8 kB / 1.091 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.895e-05/0.7987, allocations: 130.6 kB / 1.091 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.7987, allocations: 30.64 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.909e-05/0.7987, allocations: 89.31 kB / 1.091 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.79e-05/0.7988, allocations: 15.16 kB / 1.091 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.487e-05/0.7988, allocations: 30.81 kB / 1.091 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.922e-05/0.7989, allocations: 322.6 kB / 1.092 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.799, allocations: 31.45 kB / 1.092 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.7991, allocations: 74.89 kB / 1.092 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.7993, allocations: 113.6 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.7994, allocations: 1.156 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003023/0.7997, allocations: 131.2 kB / 1.092 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.7997, allocations: 5.969 kB / 1.092 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.7997, allocations: 1.719 kB / 1.092 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.7997, allocations: 1.719 kB / 1.092 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.7999, allocations: 21.53 kB / 1.092 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.7999, allocations: 2.953 kB / 1.092 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.26e-05/0.8, allocations: 16.5 kB / 1.092 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.8, allocations: 5.547 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.772e-05/0.8001, allocations: 124.4 kB / 1.092 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.44e-05/0.8001, allocations: 6.875 kB / 1.092 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.77e-05/0.8001, allocations: 13.88 kB / 1.092 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.8001, allocations: 2.172 kB / 1.092 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.8001, allocations: 0 / 1.092 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.8001, allocations: 1.578 kB / 1.092 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004322/0.8006, allocations: 383.5 kB / 1.092 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.8006, allocations: 0.8125 kB / 1.092 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.611e-05/0.8006, allocations: 8.062 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.8007, allocations: 1.594 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.8007, allocations: 4 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.8007, allocations: 5.703 kB / 1.093 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.8007, allocations: 0 / 1.093 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002672/0.801, allocations: 199.6 kB / 1.093 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.092e-05/0.801, allocations: 83.84 kB / 1.093 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.801, allocations: 5.766 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.276e-05/0.8011, allocations: 10.98 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.274e-05/0.8012, allocations: 3.844 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-06/0.8012, allocations: 6.891 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.046e-05/0.8012, allocations: 91.95 kB / 1.093 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8012, allocations: 0 / 1.093 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002611/0.8015, allocations: 22.03 kB / 1.093 GB, free: 0.9062 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.0005536/0.8021, allocations: 0.7465 MB / 1.094 GB, free: 16.22 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002806/0.8023, allocations: 80.47 kB / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.8024, allocations: 0 / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.8025, allocations: 37.77 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.0002641/0.8027, allocations: 16.2 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.001751/0.8045, allocations: 1.523 MB / 1.095 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.8048, allocations: 0.6887 MB / 1.096 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.56e-05/0.8049, allocations: 10.23 kB / 1.096 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.449e-05/0.8049, allocations: 30.14 kB / 1.096 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/0.8049, allocations: 0 / 1.096 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01895/0.8239, allocations: 2.108 MB / 1.098 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.771/8.595, allocations: 10.34 kB / 1.098 GB, free: 13.71 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches