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) 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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001179/0.001179, allocations: 193 kB / 16.14 MB, free: 6.711 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.188/1.188, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.297/2.297, allocations: 437 MB / 0.7099 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 67.91 kB / 0.8687 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4812/0.4825, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001735/0.4842, allocations: 0.8168 MB / 1.018 GB, free: 1.973 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.4855, allocations: 1.167 MB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.727e-05/0.4855, allocations: 0 / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.138e-05/0.4856, allocations: 3.938 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.023e-05/0.4856, allocations: 11.92 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003783/0.486, allocations: 127.5 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.4861, allocations: 107.8 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.97e-05/0.4862, allocations: 28.16 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.888e-05/0.4863, allocations: 43.89 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.366e-05/0.4864, allocations: 39.83 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.4864, allocations: 8 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.504e-05/0.4865, allocations: 19.98 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.947e-05/0.4865, allocations: 11.98 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.477e-05/0.4866, allocations: 47.77 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001457/0.4867, allocations: 119.6 kB / 1.019 GB, free: 236 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.4868, allocations: 4 kB / 1.019 GB, free: 232 kB / 0.7637 GB Notification: Performance of FrontEnd: time 6.31e-07/0.4868, allocations: 0 / 1.019 GB, free: 232 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.216e-06/0.4868, allocations: 0 / 1.019 GB, free: 232 kB / 0.7637 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.0005091/0.4873, allocations: 427.2 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.4873, allocations: 8.031 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.73e-05/0.4874, allocations: 30.75 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.259e-05/0.4874, allocations: 12.94 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.144e-05/0.4875, allocations: 180.2 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.4875, allocations: 8.375 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.313e-05/0.4876, allocations: 8.375 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001845/0.4877, allocations: 77.91 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.4878, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.4878, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.4878, allocations: 4 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.4879, allocations: 43.95 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004209/0.4884, allocations: 356.5 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/0.4885, allocations: 62.55 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.872e-05/0.4886, allocations: 24.97 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.4887, allocations: 7.984 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002008/0.4889, allocations: 95.39 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.362e-06/0.4889, allocations: 0 / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0003844/0.4893, allocations: 149.5 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.4893, allocations: 59.41 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.286e-05/0.4894, allocations: 121.8 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.4894, allocations: 29.7 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.024e-05/0.4895, allocations: 96.03 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.915e-05/0.4895, allocations: 19.75 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.795e-05/0.4896, allocations: 45.62 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.056e-05/0.4897, allocations: 318.8 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.4898, allocations: 51.95 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.49, allocations: 101 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002574/0.4902, allocations: 146.8 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4903, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004097/0.4907, allocations: 211.1 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.4907, allocations: 41.84 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.4907, allocations: 4 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.4907, allocations: 4 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.105e-05/0.4908, allocations: 15.98 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.4908, allocations: 3.938 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.4911, allocations: 39.8 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.4911, allocations: 15.94 kB / 1.022 GB, free: 13.17 MB / 0.7794 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 8.27e-05/0.4912, allocations: 123.9 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.289e-05/0.4912, allocations: 3.984 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002698/0.4915, allocations: 122 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.4915, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.4915, allocations: 4 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.4915, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003822/0.4919, allocations: 386.4 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.4919, allocations: 0 / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.809e-05/0.492, allocations: 7.984 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.492, allocations: 4 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.276e-06/0.492, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.492, allocations: 3.938 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.492, allocations: 3.938 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002678/0.4923, allocations: 211.5 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.159e-05/0.4923, allocations: 85.02 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.4923, allocations: 4 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.423e-05/0.4924, allocations: 15.92 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.422e-05/0.4925, allocations: 7.984 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-06/0.4925, allocations: 7.938 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.982e-05/0.4925, allocations: 91.27 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4925, allocations: 4 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002459/0.4928, allocations: 24 kB / 1.023 GB, free: 11.98 MB / 0.7794 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.000493/0.4933, allocations: 0.7552 MB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003252/0.4936, allocations: 179.3 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4936, allocations: 0 / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001164/0.4937, allocations: 43.95 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002517/0.494, allocations: 26.75 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001735/0.4957, allocations: 1.705 MB / 1.026 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001884/0.4959, allocations: 0.6946 MB / 1.026 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.137e-05/0.496, allocations: 7.984 kB / 1.026 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.769e-05/0.496, allocations: 19.44 kB / 1.026 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.496, allocations: 0 / 1.026 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.222/1.718, allocations: 2.312 MB / 1.029 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002179/1.718, allocations: 215.1 kB / 1.029 GB, free: 5.93 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.984/3.701, allocations: 4 kB / 1.029 GB, free: 5.926 MB / 0.7794 GB (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 --timeout=50 --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) 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/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches