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.009419/0.009419, allocations: 95.91 kB / 15.73 MB, free: 6.047 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.001906/0.001905, allocations: 198.8 kB / 16.68 MB, free: 5.957 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.265/2.265, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 63.89 kB / 0.9504 GB, free: 8.125 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9967/0.9982, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.00168/1, allocations: 0.7508 MB / 1.088 GB, free: 4.797 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001084/1.001, allocations: 1.071 MB / 1.089 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.693e-05/1.001, allocations: 1 kB / 1.089 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.721e-05/1.001, allocations: 4.594 kB / 1.089 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.68e-05/1.001, allocations: 11.48 kB / 1.089 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002852/1.002, allocations: 58 kB / 1.089 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001159/1.002, allocations: 68.91 kB / 1.089 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/1.002, allocations: 22.58 kB / 1.089 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.193e-05/1.002, allocations: 34.8 kB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.346e-05/1.002, allocations: 33.47 kB / 1.089 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.649e-05/1.002, allocations: 5.406 kB / 1.089 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.746e-05/1.002, allocations: 16.47 kB / 1.09 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.108e-05/1.002, allocations: 17.38 kB / 1.09 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.247e-05/1.002, allocations: 34.78 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001544/1.002, allocations: 79.48 kB / 1.09 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/1.002, allocations: 0.6562 kB / 1.09 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.034e-06/1.002, allocations: 1.062 kB / 1.09 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.063e-05/1.002, allocations: 0 / 1.09 GB, free: 3.816 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.0004856/1.003, allocations: 382.5 kB / 1.09 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/1.003, allocations: 8.969 kB / 1.09 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.866e-05/1.003, allocations: 33.08 kB / 1.09 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.56e-05/1.003, allocations: 9.422 kB / 1.09 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.508e-05/1.003, allocations: 173.1 kB / 1.09 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/1.003, allocations: 7.125 kB / 1.09 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/1.003, allocations: 4.656 kB / 1.09 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/1.003, allocations: 72.58 kB / 1.09 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/1.003, allocations: 4 kB / 1.09 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/1.003, allocations: 4 kB / 1.09 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/1.003, allocations: 2.625 kB / 1.09 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/1.003, allocations: 39.16 kB / 1.09 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005625/1.004, allocations: 327.4 kB / 1.091 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001572/1.004, allocations: 63.38 kB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.684e-05/1.004, allocations: 28.3 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/1.004, allocations: 2 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/1.005, allocations: 77.94 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.654e-06/1.005, allocations: 4 kB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004243/1.005, allocations: 131.5 kB / 1.091 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/1.005, allocations: 54.3 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.776e-05/1.005, allocations: 126.7 kB / 1.091 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/1.005, allocations: 30.8 kB / 1.091 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.669e-05/1.005, allocations: 89.06 kB / 1.091 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.122e-05/1.005, allocations: 19.25 kB / 1.091 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-05/1.005, allocations: 34.33 kB / 1.091 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.998e-05/1.005, allocations: 323.5 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/1.005, allocations: 30.16 kB / 1.092 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/1.006, allocations: 74.62 kB / 1.092 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/1.006, allocations: 110.6 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/1.006, allocations: 0.9375 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003215/1.006, allocations: 127.1 kB / 1.092 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/1.006, allocations: 5.25 kB / 1.092 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/1.006, allocations: 2.984 kB / 1.092 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/1.006, allocations: 6.5 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/1.006, allocations: 21.47 kB / 1.092 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/1.006, allocations: 2.594 kB / 1.092 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.557e-05/1.006, allocations: 15.69 kB / 1.092 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/1.006, allocations: 13.23 kB / 1.092 GB, free: 1.754 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 7.161e-05/1.007, allocations: 127.9 kB / 1.092 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.542e-05/1.007, allocations: 7.766 kB / 1.092 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.024e-05/1.007, allocations: 11.25 kB / 1.092 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/1.007, allocations: 8.609 kB / 1.092 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/1.007, allocations: 0.7812 kB / 1.092 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/1.007, allocations: 0.7969 kB / 1.092 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000438/1.007, allocations: 372.3 kB / 1.092 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/1.007, allocations: 0.7969 kB / 1.092 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-05/1.007, allocations: 7.562 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/1.007, allocations: 0.75 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/1.007, allocations: 5.406 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/1.007, allocations: 4.5 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/1.007, allocations: 0.7188 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002761/1.007, allocations: 200.5 kB / 1.093 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.638e-05/1.008, allocations: 82.64 kB / 1.093 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/1.008, allocations: 1.641 kB / 1.093 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.669e-05/1.008, allocations: 14.8 kB / 1.093 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.683e-05/1.008, allocations: 9.156 kB / 1.093 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/1.008, allocations: 9.922 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.004e-05/1.008, allocations: 92.75 kB / 1.093 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/1.008, allocations: 0 / 1.093 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002657/1.008, allocations: 17.31 kB / 1.093 GB, free: 0.9141 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.0005976/1.009, allocations: 0.7416 MB / 1.094 GB, free: 16.23 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002909/1.009, allocations: 83.08 kB / 1.094 GB, free: 16.21 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/1.009, allocations: 0.8125 kB / 1.094 GB, free: 16.21 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001202/1.009, allocations: 35.55 kB / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/1.009, allocations: 15.77 kB / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/1.011, allocations: 1.527 MB / 1.095 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/1.011, allocations: 0.6889 MB / 1.096 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.912e-05/1.011, allocations: 5.594 kB / 1.096 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.316e-05/1.011, allocations: 21.78 kB / 1.096 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of SimCode: time 2.6e-07/1.011, allocations: 0 / 1.096 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02004/1.031, allocations: 2.149 MB / 1.098 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.072/9.103, allocations: 5.922 kB / 1.098 GB, free: 13.72 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