Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.SampleTrigger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.001739/0.001739, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002261/0.002261, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.38/1.38, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.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.297/2.297, allocations: 390.3 MB / 0.6644 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.91 kB / 0.8122 GB, free: 14.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5307/0.5319, allocations: 140.4 MB / 0.9493 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001669/0.5336, allocations: 0.8109 MB / 0.95 GB, free: 8.508 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009164/0.5345, allocations: 1.066 MB / 0.9511 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.918e-05/0.5346, allocations: 5.406 kB / 0.9511 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.168e-05/0.5346, allocations: 3.984 kB / 0.9511 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.042e-05/0.5347, allocations: 5.219 kB / 0.9511 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000247/0.5349, allocations: 44.34 kB / 0.9511 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.905e-05/0.535, allocations: 73.48 kB / 0.9512 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.017e-05/0.5351, allocations: 25.09 kB / 0.9512 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.257e-05/0.5352, allocations: 29.39 kB / 0.9513 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.056e-05/0.5353, allocations: 37.44 kB / 0.9513 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.461e-05/0.5353, allocations: 6.156 kB / 0.9513 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.699e-05/0.5353, allocations: 23.88 kB / 0.9513 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.741e-05/0.5354, allocations: 14.3 kB / 0.9513 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.468e-05/0.5354, allocations: 32.3 kB / 0.9514 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001096/0.5355, allocations: 73 kB / 0.9514 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.5355, allocations: 1.438 kB / 0.9514 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5355, allocations: 0 / 0.9514 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.5355, allocations: 0 / 0.9514 GB, free: 7.395 MB / 0.7169 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.0004158/0.536, allocations: 379.4 kB / 0.9518 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.536, allocations: 13.61 kB / 0.9518 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.424e-05/0.536, allocations: 33.5 kB / 0.9519 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.919e-05/0.5361, allocations: 7.594 kB / 0.9519 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.674e-05/0.5361, allocations: 176.3 kB / 0.952 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.5361, allocations: 7.125 kB / 0.952 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.21e-05/0.5362, allocations: 3.125 kB / 0.952 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001686/0.5363, allocations: 73.31 kB / 0.9521 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.5364, allocations: 5.031 kB / 0.9521 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.5364, allocations: 4 kB / 0.9521 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.5364, allocations: 2.062 kB / 0.9521 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001595/0.5365, allocations: 39.89 kB / 0.9522 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005104/0.5371, allocations: 336.6 kB / 0.9525 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.5372, allocations: 56.14 kB / 0.9525 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.5373, allocations: 35.12 kB / 0.9526 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.5374, allocations: 1.281 kB / 0.9526 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001978/0.5376, allocations: 82.66 kB / 0.9526 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.5376, allocations: 0 / 0.9526 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003763/0.538, allocations: 128.7 kB / 0.9528 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.538, allocations: 52.59 kB / 0.9528 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.452e-05/0.5381, allocations: 121.6 kB / 0.9529 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.5381, allocations: 29.7 kB / 0.953 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.081e-05/0.5381, allocations: 95.09 kB / 0.9531 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.628e-05/0.5382, allocations: 18.62 kB / 0.9531 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.19e-05/0.5382, allocations: 27.11 kB / 0.9531 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.263e-05/0.5382, allocations: 324 kB / 0.9534 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.966e-05/0.5384, allocations: 37.19 kB / 0.9534 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.5385, allocations: 73.73 kB / 0.9535 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.5387, allocations: 103.4 kB / 0.9536 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5387, allocations: 0 / 0.9536 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002624/0.5389, allocations: 130 kB / 0.9537 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.539, allocations: 7.844 kB / 0.9537 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.539, allocations: 1.625 kB / 0.9537 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.539, allocations: 6.812 kB / 0.9537 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.5391, allocations: 16.45 kB / 0.9538 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.5391, allocations: 1.531 kB / 0.9538 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.782e-05/0.5392, allocations: 21.7 kB / 0.9538 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.5392, allocations: 4.719 kB / 0.9538 GB, free: 5.156 MB / 0.7169 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 5.756e-05/0.5393, allocations: 123.5 kB / 0.9539 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.296e-05/0.5393, allocations: 10.38 kB / 0.9539 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.333e-05/0.5393, allocations: 21.55 kB / 0.9539 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.5393, allocations: 1.281 kB / 0.9539 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.5393, allocations: 0 / 0.9539 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.5394, allocations: 1.219 kB / 0.9539 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003389/0.5397, allocations: 373.2 kB / 0.9543 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.5397, allocations: 0 / 0.9543 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.824e-05/0.5398, allocations: 4.875 kB / 0.9543 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.5398, allocations: 13.17 kB / 0.9543 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-06/0.5398, allocations: 9.328 kB / 0.9543 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.5398, allocations: 3.938 kB / 0.9543 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.5398, allocations: 0 / 0.9543 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002215/0.54, allocations: 197.6 kB / 0.9545 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.659e-05/0.54, allocations: 82.17 kB / 0.9546 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.5401, allocations: 5.422 kB / 0.9546 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.826e-05/0.5401, allocations: 12.19 kB / 0.9546 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.455e-05/0.5402, allocations: 10.05 kB / 0.9546 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.5402, allocations: 2.438 kB / 0.9546 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.113e-05/0.5402, allocations: 97.8 kB / 0.9547 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5402, allocations: 0 / 0.9547 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002403/0.5405, allocations: 12.06 kB / 0.9547 GB, free: 4.25 MB / 0.7169 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.0003941/0.5409, allocations: 0.7404 MB / 0.9555 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002416/0.5411, allocations: 83.81 kB / 0.9555 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.5411, allocations: 1.562 kB / 0.9555 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.706e-05/0.5412, allocations: 40.67 kB / 0.9556 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002438/0.5415, allocations: 9.375 kB / 0.9556 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/0.5427, allocations: 1.527 MB / 0.9571 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.612e-05/0.5428, allocations: 0.6893 MB / 0.9577 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.213e-05/0.5429, allocations: 7.75 kB / 0.9578 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.963e-05/0.5429, allocations: 27.7 kB / 0.9578 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of SimCode: time 2.9e-07/0.5429, allocations: 0 / 0.9578 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7075/1.25, allocations: 1.928 MB / 0.9597 GB, free: 400 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00013/1.251, allocations: 219.9 kB / 0.9599 GB, free: 140 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.795/3.045, allocations: 0 / 0.9599 GB, free: 140 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches