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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008224/0.0008224, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006453/0.006453, allocations: 170 kB / 16.26 MB, free: 6.613 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.368/1.368, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.402/2.402, allocations: 390.9 MB / 0.6664 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003688, allocations: 12 kB / 0.8161 GB, free: 13.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8083/0.8087, allocations: 142.4 MB / 0.9552 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.0009142/0.8096, allocations: 479.8 kB / 0.9557 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001218/0.8109, allocations: 1.061 MB / 0.9567 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.588e-05/0.8109, allocations: 1.219 kB / 0.9567 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.182e-05/0.8109, allocations: 3.938 kB / 0.9567 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.694e-05/0.811, allocations: 6.344 kB / 0.9567 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.8113, allocations: 47.7 kB / 0.9567 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.56e-05/0.8114, allocations: 64.06 kB / 0.9568 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.8115, allocations: 23.42 kB / 0.9568 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.75e-05/0.8116, allocations: 26.72 kB / 0.9569 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.9e-05/0.8116, allocations: 28.84 kB / 0.9569 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.8117, allocations: 1.875 kB / 0.9569 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.677e-05/0.8117, allocations: 21.39 kB / 0.9569 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.83e-05/0.8118, allocations: 10.33 kB / 0.9569 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.68e-05/0.8118, allocations: 57.11 kB / 0.957 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.8119, allocations: 74.3 kB / 0.957 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.812, allocations: 0 / 0.957 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.793e-06/0.812, allocations: 4 kB / 0.957 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.812, allocations: 0 / 0.957 GB, free: 6.32 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.0004826/0.8125, allocations: 367.9 kB / 0.9574 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.8125, allocations: 9.406 kB / 0.9574 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.579e-05/0.8126, allocations: 36.72 kB / 0.9574 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.079e-05/0.8126, allocations: 8.844 kB / 0.9575 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.444e-05/0.8127, allocations: 170.3 kB / 0.9576 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.8127, allocations: 11.97 kB / 0.9576 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.8127, allocations: 7.641 kB / 0.9576 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001968/0.8129, allocations: 73.7 kB / 0.9577 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.813, allocations: 0 / 0.9577 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.813, allocations: 1.531 kB / 0.9577 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.813, allocations: 1.438 kB / 0.9577 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.8132, allocations: 57.2 kB / 0.9578 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005865/0.8138, allocations: 340.4 kB / 0.9581 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.8139, allocations: 57.8 kB / 0.9581 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.889e-05/0.8141, allocations: 39.03 kB / 0.9582 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.8141, allocations: 1.812 kB / 0.9582 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.8143, allocations: 86.5 kB / 0.9583 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 3.026e-06/0.8143, allocations: 96 / 0.9583 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004134/0.8147, allocations: 154.3 kB / 0.9584 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/0.8148, allocations: 54.16 kB / 0.9585 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.575e-05/0.8149, allocations: 124.9 kB / 0.9586 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/0.8149, allocations: 25.7 kB / 0.9586 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.72e-05/0.8149, allocations: 96.27 kB / 0.9587 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.652e-05/0.8149, allocations: 9.188 kB / 0.9587 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.583e-05/0.815, allocations: 21.83 kB / 0.9587 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.658e-05/0.815, allocations: 321.5 kB / 0.959 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.8152, allocations: 32.59 kB / 0.9591 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.8153, allocations: 86.67 kB / 0.9591 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002232/0.8155, allocations: 118 kB / 0.9593 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.8155, allocations: 0 / 0.9593 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002974/0.8158, allocations: 139.8 kB / 0.9594 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.8159, allocations: 6.344 kB / 0.9594 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.8159, allocations: 6.109 kB / 0.9594 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.8159, allocations: 9.688 kB / 0.9594 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.816, allocations: 19.55 kB / 0.9594 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.986e-06/0.816, allocations: 2.188 kB / 0.9594 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.376e-05/0.8161, allocations: 19.61 kB / 0.9595 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.8161, allocations: 4.812 kB / 0.9595 GB, free: 4.094 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 7.252e-05/0.8162, allocations: 123.7 kB / 0.9596 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.244e-05/0.8162, allocations: 10.69 kB / 0.9596 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.501e-05/0.8163, allocations: 9.656 kB / 0.9596 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.8163, allocations: 5.359 kB / 0.9596 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.8163, allocations: 0 / 0.9596 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.8163, allocations: 3.938 kB / 0.9596 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004029/0.8167, allocations: 391.4 kB / 0.96 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.8167, allocations: 0 / 0.96 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.402e-05/0.8168, allocations: 11.61 kB / 0.96 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.8168, allocations: 1.062 kB / 0.96 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.8168, allocations: 1 kB / 0.96 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.8168, allocations: 3.938 kB / 0.96 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.8168, allocations: 5.031 kB / 0.96 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002652/0.8171, allocations: 218.3 kB / 0.9602 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.538e-05/0.8171, allocations: 78.98 kB / 0.9603 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.8171, allocations: 1.188 kB / 0.9603 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.378e-05/0.8172, allocations: 21.67 kB / 0.9603 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/0.8173, allocations: 7.391 kB / 0.9603 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.8173, allocations: 1.188 kB / 0.9603 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.4e-05/0.8173, allocations: 100.5 kB / 0.9604 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8173, allocations: 1.031 kB / 0.9604 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002473/0.8176, allocations: 12.94 kB / 0.9604 GB, free: 3.184 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.0005219/0.8181, allocations: 0.7451 MB / 0.9611 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002728/0.8184, allocations: 90.88 kB / 0.9612 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.8184, allocations: 0 / 0.9612 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.8185, allocations: 42.03 kB / 0.9613 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.8188, allocations: 20.48 kB / 0.9613 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/0.8202, allocations: 1.557 MB / 0.9628 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001324/0.8204, allocations: 0.6929 MB / 0.9635 GB, free: 272 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.436e-05/0.8204, allocations: 8.75 kB / 0.9635 GB, free: 268 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.44e-05/0.8205, allocations: 22.66 kB / 0.9635 GB, free: 248 kB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.8205, allocations: 1.031 kB / 0.9635 GB, free: 248 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01306/0.8335, allocations: 1.801 MB / 0.9653 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003171/0.8339, allocations: 219.5 kB / 0.9655 GB, free: 15.17 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/2.64, allocations: 0 / 0.9655 GB, free: 15.17 MB / 0.7325 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