Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.009486/0.009486, allocations: 100.9 kB / 15.73 MB, free: 6 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.001986/0.001986, allocations: 189.2 kB / 16.67 MB, free: 5.934 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.756/2.756, allocations: 437.1 MB / 0.7105 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 67.88 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3118, allocations: 151.6 MB / 1.166 GB, free: 7.324 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002279/0.3142, allocations: 0.7543 MB / 1.167 GB, free: 6.566 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001873/0.3161, allocations: 1.07 MB / 1.168 GB, free: 5.48 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.621e-05/0.3162, allocations: 4 kB / 1.168 GB, free: 5.477 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.33e-05/0.3162, allocations: 7.938 kB / 1.168 GB, free: 5.469 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.3164, allocations: 11.86 kB / 1.168 GB, free: 5.457 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004326/0.3169, allocations: 55.81 kB / 1.168 GB, free: 5.402 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001609/0.317, allocations: 71.78 kB / 1.168 GB, free: 5.332 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.3172, allocations: 24.16 kB / 1.168 GB, free: 5.305 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.3173, allocations: 31.84 kB / 1.168 GB, free: 5.273 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.54e-05/0.3174, allocations: 39.84 kB / 1.168 GB, free: 5.234 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.132e-05/0.3174, allocations: 4 kB / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.555e-05/0.3175, allocations: 19.98 kB / 1.168 GB, free: 5.211 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.165e-05/0.3176, allocations: 23.86 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.334e-05/0.3176, allocations: 27.86 kB / 1.168 GB, free: 5.16 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001956/0.3178, allocations: 79.95 kB / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3178, allocations: 0 / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.495e-06/0.3179, allocations: 4 kB / 1.168 GB, free: 5.078 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.3179, allocations: 0 / 1.168 GB, free: 5.078 MB / 0.92 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.0006755/0.3185, allocations: 379.2 kB / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.3186, allocations: 12.03 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.021e-05/0.3186, allocations: 38.73 kB / 1.169 GB, free: 4.602 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.3187, allocations: 12.89 kB / 1.169 GB, free: 4.59 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.3189, allocations: 172.3 kB / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.3189, allocations: 4.375 kB / 1.169 GB, free: 4.379 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.858e-05/0.319, allocations: 12.25 kB / 1.169 GB, free: 4.367 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000217/0.3192, allocations: 69.97 kB / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.3192, allocations: 0 / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.3192, allocations: 0 / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.3192, allocations: 4 kB / 1.169 GB, free: 4.289 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.3194, allocations: 47.95 kB / 1.169 GB, free: 4.242 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006328/0.3201, allocations: 324.6 kB / 1.169 GB, free: 3.875 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.3202, allocations: 50.56 kB / 1.169 GB, free: 3.816 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.694e-05/0.3203, allocations: 36.95 kB / 1.169 GB, free: 3.777 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.3204, allocations: 0 / 1.169 GB, free: 3.777 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.3206, allocations: 87.34 kB / 1.17 GB, free: 3.68 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.3207, allocations: 0 / 1.17 GB, free: 3.68 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.000444/0.3211, allocations: 129.6 kB / 1.17 GB, free: 3.547 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.3212, allocations: 51.41 kB / 1.17 GB, free: 3.484 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.3213, allocations: 125.7 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.3213, allocations: 29.7 kB / 1.17 GB, free: 3.316 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.001e-05/0.3214, allocations: 92.12 kB / 1.17 GB, free: 3.223 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.004e-05/0.3214, allocations: 7.906 kB / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.208e-05/0.3215, allocations: 33.7 kB / 1.17 GB, free: 3.176 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3216, allocations: 322.8 kB / 1.17 GB, free: 2.852 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.3217, allocations: 31.92 kB / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.3219, allocations: 73.92 kB / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/0.3221, allocations: 109.9 kB / 1.171 GB, free: 2.598 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3222, allocations: 0 / 1.171 GB, free: 2.598 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003249/0.3225, allocations: 141.4 kB / 1.171 GB, free: 2.453 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.3225, allocations: 4 kB / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3225, allocations: 7.938 kB / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.3225, allocations: 0 / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.3227, allocations: 15.98 kB / 1.171 GB, free: 2.426 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.3227, allocations: 4 kB / 1.171 GB, free: 2.422 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.787e-05/0.3228, allocations: 24.09 kB / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.3228, allocations: 8 kB / 1.171 GB, free: 2.391 MB / 0.92 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 9.137e-05/0.3229, allocations: 123.4 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.696e-05/0.3229, allocations: 7.953 kB / 1.171 GB, free: 2.254 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.721e-05/0.3229, allocations: 8.375 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.323, allocations: 3.984 kB / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.323, allocations: 0 / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.323, allocations: 0 / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005493/0.3235, allocations: 374.4 kB / 1.171 GB, free: 1.82 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.3235, allocations: 0 / 1.171 GB, free: 1.82 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.184e-05/0.3236, allocations: 11.98 kB / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/0.3236, allocations: 0 / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-06/0.3237, allocations: 0 / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.444e-06/0.3237, allocations: 7.938 kB / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3237, allocations: 0 / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003777/0.3241, allocations: 219.4 kB / 1.171 GB, free: 1.57 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.129e-05/0.3241, allocations: 81.06 kB / 1.172 GB, free: 1.473 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.3242, allocations: 0 / 1.172 GB, free: 1.473 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.3243, allocations: 11.92 kB / 1.172 GB, free: 1.461 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.965e-05/0.3243, allocations: 7.984 kB / 1.172 GB, free: 1.453 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-06/0.3244, allocations: 0 / 1.172 GB, free: 1.453 MB / 0.92 GB Notification: Performance of sorting global known variables: time 7.189e-05/0.3244, allocations: 103.3 kB / 1.172 GB, free: 1.352 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3244, allocations: 0 / 1.172 GB, free: 1.352 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003232/0.3248, allocations: 15.94 kB / 1.172 GB, free: 1.336 MB / 0.92 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.0006141/0.3254, allocations: 0.7324 MB / 1.172 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002724/0.3257, allocations: 87.89 kB / 1.172 GB, free: 0.4922 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3257, allocations: 0 / 1.172 GB, free: 0.4922 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.3258, allocations: 35.95 kB / 1.172 GB, free: 468 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.3261, allocations: 23.8 kB / 1.173 GB, free: 444 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.3279, allocations: 1.513 MB / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.3282, allocations: 0.6885 MB / 1.175 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.533e-05/0.3283, allocations: 11.98 kB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.91e-05/0.3283, allocations: 19.44 kB / 1.175 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of SimCode: time 8.22e-07/0.3283, allocations: 0 / 1.175 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01936/0.3477, allocations: 2.119 MB / 1.177 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.813/8.161, allocations: 15.08 kB / 1.177 GB, free: 12.11 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv --start-time 1 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches