Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001603/0.001604, allocations: 109.9 kB / 16.41 MB, free: 6.496 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 191.7 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.565/1.565, allocations: 222.9 MB / 245.1 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.647/2.647, allocations: 437.1 MB / 0.7171 GB, free: 4.078 MB / 0.5762 GB " [Timeout remaining time 177] 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.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00216/0.002161, allocations: 71.88 kB / 1.027 GB, free: 12 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.922/0.9242, allocations: 151.6 MB / 1.175 GB, free: 17.46 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001963/0.9262, allocations: 0.7666 MB / 1.175 GB, free: 16.96 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001512/0.9277, allocations: 1.159 MB / 1.177 GB, free: 16.11 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.039e-05/0.9278, allocations: 1.406 kB / 1.177 GB, free: 16.11 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.578e-05/0.9278, allocations: 4.547 kB / 1.177 GB, free: 16.11 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.181e-05/0.9279, allocations: 18.36 kB / 1.177 GB, free: 16.09 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005221/0.9284, allocations: 138.8 kB / 1.177 GB, free: 16.02 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002035/0.9287, allocations: 123.4 kB / 1.177 GB, free: 15.98 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.9288, allocations: 26.52 kB / 1.177 GB, free: 15.96 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.911e-05/0.9289, allocations: 49.44 kB / 1.177 GB, free: 15.94 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.929, allocations: 48.61 kB / 1.177 GB, free: 15.92 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.227e-05/0.929, allocations: 10.28 kB / 1.177 GB, free: 15.92 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.002e-05/0.9291, allocations: 25.12 kB / 1.177 GB, free: 15.91 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.759e-05/0.9292, allocations: 18.44 kB / 1.177 GB, free: 15.9 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.336e-05/0.9292, allocations: 48.48 kB / 1.177 GB, free: 15.88 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002417/0.9295, allocations: 126.4 kB / 1.177 GB, free: 15.83 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.9295, allocations: 3.938 kB / 1.177 GB, free: 15.82 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.527e-06/0.9295, allocations: 0 / 1.177 GB, free: 15.82 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.9295, allocations: 3.938 kB / 1.177 GB, free: 15.82 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005696/0.9301, allocations: 421.3 kB / 1.178 GB, free: 15.41 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.9301, allocations: 10.38 kB / 1.178 GB, free: 15.41 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.248e-05/0.9302, allocations: 34.19 kB / 1.178 GB, free: 15.37 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.791e-05/0.9302, allocations: 11.03 kB / 1.178 GB, free: 15.36 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.515e-05/0.9303, allocations: 178.3 kB / 1.178 GB, free: 15.16 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.9303, allocations: 11.88 kB / 1.178 GB, free: 15.15 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.231e-05/0.9304, allocations: 8.062 kB / 1.178 GB, free: 15.15 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002264/0.9306, allocations: 76.19 kB / 1.178 GB, free: 15.1 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.9306, allocations: 1.094 kB / 1.178 GB, free: 15.1 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.9306, allocations: 0.7031 kB / 1.178 GB, free: 15.1 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.9307, allocations: 5.25 kB / 1.178 GB, free: 15.1 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001985/0.9309, allocations: 47.12 kB / 1.178 GB, free: 15.09 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004925/0.9314, allocations: 345.7 kB / 1.178 GB, free: 14.78 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001675/0.9315, allocations: 60.02 kB / 1.178 GB, free: 14.75 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.9317, allocations: 30.67 kB / 1.178 GB, free: 14.73 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.9317, allocations: 0 / 1.178 GB, free: 14.73 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.9319, allocations: 97.02 kB / 1.178 GB, free: 14.67 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.9319, allocations: 0 / 1.178 GB, free: 14.67 MB / 0.92 GB Notification: Performance of matching and sorting (n=8): time 0.0004313/0.9324, allocations: 146.4 kB / 1.179 GB, free: 14.61 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.9324, allocations: 54.77 kB / 1.179 GB, free: 14.55 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.166e-05/0.9325, allocations: 124.4 kB / 1.179 GB, free: 14.43 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.9325, allocations: 32.36 kB / 1.179 GB, free: 14.4 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.061e-05/0.9326, allocations: 94.69 kB / 1.179 GB, free: 14.31 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.9326, allocations: 20.11 kB / 1.179 GB, free: 14.29 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.912e-05/0.9327, allocations: 43.34 kB / 1.179 GB, free: 14.27 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 4.55e-05/0.9327, allocations: 322.8 kB / 1.179 GB, free: 13.95 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.9329, allocations: 54.31 kB / 1.179 GB, free: 13.93 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.933, allocations: 91.56 kB / 1.179 GB, free: 13.86 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002554/0.9333, allocations: 148.5 kB / 1.18 GB, free: 13.75 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.9333, allocations: 0 / 1.18 GB, free: 13.75 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004213/0.9337, allocations: 212 kB / 1.18 GB, free: 13.64 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/0.9338, allocations: 35.89 kB / 1.18 GB, free: 13.61 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.9338, allocations: 6.172 kB / 1.18 GB, free: 13.61 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.9338, allocations: 5.25 kB / 1.18 GB, free: 13.61 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.9339, allocations: 22.2 kB / 1.18 GB, free: 13.6 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.9339, allocations: 2.062 kB / 1.18 GB, free: 13.6 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.9342, allocations: 30.78 kB / 1.18 GB, free: 13.6 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.299e-05/0.9342, allocations: 13.36 kB / 1.18 GB, free: 13.59 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.086e-05/0.9343, allocations: 130.7 kB / 1.18 GB, free: 13.46 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.9343, allocations: 7.094 kB / 1.18 GB, free: 13.46 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003225/0.9346, allocations: 127.6 kB / 1.18 GB, free: 13.4 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.9346, allocations: 1.312 kB / 1.18 GB, free: 13.4 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.9346, allocations: 0.6094 kB / 1.18 GB, free: 13.4 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.9346, allocations: 0.6094 kB / 1.18 GB, free: 13.4 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003954/0.935, allocations: 383.2 kB / 1.18 GB, free: 13.06 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.9351, allocations: 0.7969 kB / 1.18 GB, free: 13.06 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.375e-05/0.9351, allocations: 18.17 kB / 1.18 GB, free: 13.05 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.9351, allocations: 0 / 1.18 GB, free: 13.05 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.9351, allocations: 2 kB / 1.18 GB, free: 13.05 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.9352, allocations: 5.781 kB / 1.18 GB, free: 13.05 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.9352, allocations: 0 / 1.18 GB, free: 13.05 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003192/0.9355, allocations: 209.7 kB / 1.181 GB, free: 12.89 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.285e-05/0.9355, allocations: 83.67 kB / 1.181 GB, free: 12.8 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.955e-05/0.9356, allocations: 1.672 kB / 1.181 GB, free: 12.8 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.946e-05/0.9356, allocations: 12.48 kB / 1.181 GB, free: 12.79 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.258e-05/0.9357, allocations: 7.625 kB / 1.181 GB, free: 12.79 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.9357, allocations: 7.953 kB / 1.181 GB, free: 12.79 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.66e-05/0.9358, allocations: 98.94 kB / 1.181 GB, free: 12.7 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.01e-07/0.9358, allocations: 0 / 1.181 GB, free: 12.7 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002821/0.9361, allocations: 25.64 kB / 1.181 GB, free: 12.7 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005472/0.9366, allocations: 0.7573 MB / 1.182 GB, free: 12 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004096/0.937, allocations: 184.1 kB / 1.182 GB, free: 11.9 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.937, allocations: 1.031 kB / 1.182 GB, free: 11.9 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.9372, allocations: 41.94 kB / 1.182 GB, free: 11.89 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.9375, allocations: 25.39 kB / 1.182 GB, free: 11.88 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002083/0.9396, allocations: 1.703 MB / 1.184 GB, free: 10.43 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001886/0.9398, allocations: 0.6895 MB / 1.184 GB, free: 9.738 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 4.816e-05/0.9399, allocations: 5.688 kB / 1.184 GB, free: 9.738 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.603e-05/0.9399, allocations: 21.48 kB / 1.184 GB, free: 9.723 MB / 0.92 GB Notification: Performance of SimCode: time 7.21e-07/0.9399, allocations: 0 / 1.184 GB, free: 9.723 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02491/0.9648, allocations: 2.568 MB / 1.187 GB, free: 9.27 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.178/9.143, allocations: 15 kB / 1.187 GB, free: 9.258 MB / 0.92 GB " [Timeout remaining time 291] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.108125765109435]