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.001135/0.001135, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.356/1.356, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.32/2.32, allocations: 390.3 MB / 0.6647 GB, free: 260 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 67.89 kB / 0.8127 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6725/0.6738, allocations: 140.4 MB / 0.9497 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001677/0.6755, allocations: 0.7491 MB / 0.9505 GB, free: 8.605 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009186/0.6765, allocations: 1.064 MB / 0.9515 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.872e-05/0.6765, allocations: 1.312 kB / 0.9515 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.806e-05/0.6766, allocations: 7.922 kB / 0.9515 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.442e-05/0.6766, allocations: 9.281 kB / 0.9515 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002682/0.6769, allocations: 52.64 kB / 0.9516 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.992e-05/0.677, allocations: 69.44 kB / 0.9517 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.81e-05/0.6771, allocations: 28.28 kB / 0.9517 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.787e-05/0.6772, allocations: 26.39 kB / 0.9517 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.412e-05/0.6773, allocations: 33.75 kB / 0.9517 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.6773, allocations: 5.125 kB / 0.9517 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.324e-05/0.6773, allocations: 19.97 kB / 0.9518 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.837e-05/0.6774, allocations: 19.52 kB / 0.9518 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.098e-05/0.6774, allocations: 31.33 kB / 0.9518 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001178/0.6775, allocations: 73.03 kB / 0.9519 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.6775, allocations: 1.125 kB / 0.9519 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.122e-06/0.6775, allocations: 4 kB / 0.9519 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.406e-06/0.6776, allocations: 0 / 0.9519 GB, free: 7.484 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.0003932/0.678, allocations: 380 kB / 0.9522 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.678, allocations: 15.16 kB / 0.9523 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.429e-05/0.678, allocations: 34.73 kB / 0.9523 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.026e-05/0.6781, allocations: 8.969 kB / 0.9523 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.699e-05/0.6781, allocations: 171.6 kB / 0.9525 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.6782, allocations: 6.875 kB / 0.9525 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.455e-05/0.6782, allocations: 4 kB / 0.9525 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.6783, allocations: 73.34 kB / 0.9525 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.6784, allocations: 3.938 kB / 0.9526 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.6784, allocations: 5.125 kB / 0.9526 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.197e-06/0.6784, allocations: 1.125 kB / 0.9526 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001564/0.6785, allocations: 40.45 kB / 0.9526 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004768/0.679, allocations: 333.4 kB / 0.9529 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001481/0.6792, allocations: 55.59 kB / 0.953 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.745e-05/0.6793, allocations: 36.52 kB / 0.953 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.6793, allocations: 1.094 kB / 0.953 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001597/0.6795, allocations: 79.09 kB / 0.9531 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.6795, allocations: 0 / 0.9531 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003507/0.6798, allocations: 132.2 kB / 0.9532 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.454e-05/0.6799, allocations: 52.56 kB / 0.9533 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.412e-05/0.6799, allocations: 117.4 kB / 0.9534 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.68, allocations: 34.86 kB / 0.9534 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.137e-05/0.68, allocations: 98.2 kB / 0.9535 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/0.68, allocations: 15 kB / 0.9535 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.956e-05/0.6801, allocations: 26.64 kB / 0.9535 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.97e-05/0.6801, allocations: 325.1 kB / 0.9538 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.8e-05/0.6802, allocations: 27.39 kB / 0.9539 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.6803, allocations: 74.92 kB / 0.9539 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001897/0.6805, allocations: 114.4 kB / 0.954 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.6805, allocations: 1.156 kB / 0.954 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002583/0.6808, allocations: 130 kB / 0.9542 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.6808, allocations: 6.156 kB / 0.9542 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.6808, allocations: 1.531 kB / 0.9542 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.6808, allocations: 1.844 kB / 0.9542 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.6809, allocations: 20.58 kB / 0.9542 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.681, allocations: 1.594 kB / 0.9542 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.771e-05/0.681, allocations: 30.41 kB / 0.9542 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.681, allocations: 4.094 kB / 0.9542 GB, free: 5.238 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.338e-05/0.6811, allocations: 124.7 kB / 0.9544 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.265e-05/0.6811, allocations: 6.625 kB / 0.9544 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.206e-05/0.6811, allocations: 14.06 kB / 0.9544 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.6812, allocations: 3.984 kB / 0.9544 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.6812, allocations: 1.656 kB / 0.9544 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.6812, allocations: 0 / 0.9544 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003556/0.6815, allocations: 376.9 kB / 0.9547 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.6815, allocations: 0 / 0.9547 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.122e-05/0.6816, allocations: 13.58 kB / 0.9548 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.6816, allocations: 1.031 kB / 0.9548 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.6816, allocations: 5.156 kB / 0.9548 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.6816, allocations: 7.875 kB / 0.9548 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.6816, allocations: 1.188 kB / 0.9548 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002426/0.6819, allocations: 199.7 kB / 0.955 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.157e-05/0.6819, allocations: 83.14 kB / 0.955 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.6819, allocations: 4.984 kB / 0.955 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.558e-05/0.682, allocations: 8.062 kB / 0.955 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.043e-05/0.6821, allocations: 7.609 kB / 0.9551 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.024e-06/0.6821, allocations: 5.281 kB / 0.9551 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.167e-05/0.6821, allocations: 93.55 kB / 0.9552 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6821, allocations: 0 / 0.9552 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002483/0.6824, allocations: 16.62 kB / 0.9552 GB, free: 4.34 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.0004411/0.6828, allocations: 0.7429 MB / 0.9559 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002823/0.6831, allocations: 81.94 kB / 0.956 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.6831, allocations: 0 / 0.956 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.6832, allocations: 36.36 kB / 0.956 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002522/0.6835, allocations: 13.38 kB / 0.956 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.6851, allocations: 1.521 MB / 0.9575 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001989/0.6853, allocations: 0.692 MB / 0.9582 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.846e-05/0.6853, allocations: 7.875 kB / 0.9582 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.188e-05/0.6854, allocations: 23.3 kB / 0.9582 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.6854, allocations: 0 / 0.9582 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03651/0.7219, allocations: 2.062 MB / 0.9602 GB, free: 348 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.451/8.173, allocations: 11.66 kB / 0.9602 GB, free: 340 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