Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0009472/0.0009472, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005941/0.005941, allocations: 170.2 kB / 16.27 MB, free: 6.652 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.386/1.386, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.718/2.718, allocations: 462.7 MB / 0.7364 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003377/0.0003378, allocations: 9.688 kB / 0.9029 GB, free: 36.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2446, allocations: 159.6 MB / 1.059 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.000887/0.2455, allocations: 494.7 kB / 1.059 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001275/0.2468, allocations: 1.073 MB / 1.06 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.613e-05/0.2468, allocations: 0 / 1.06 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.734e-05/0.2469, allocations: 7.938 kB / 1.06 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.665e-05/0.2469, allocations: 7.922 kB / 1.06 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.2472, allocations: 39.97 kB / 1.06 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.758e-05/0.2473, allocations: 71.77 kB / 1.06 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.707e-05/0.2474, allocations: 20.19 kB / 1.06 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.489e-05/0.2475, allocations: 27.8 kB / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.148e-05/0.2475, allocations: 31.89 kB / 1.061 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.357e-05/0.2476, allocations: 0 / 1.061 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.599e-05/0.2476, allocations: 19.98 kB / 1.061 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.813e-05/0.2477, allocations: 7.922 kB / 1.061 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.812e-05/0.2477, allocations: 49.58 kB / 1.061 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001242/0.2478, allocations: 71.73 kB / 1.061 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2479, allocations: 3.984 kB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2479, allocations: 0 / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.084e-06/0.2479, allocations: 4 kB / 1.061 GB, free: 2.977 MB / 0.8106 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.0005164/0.2484, allocations: 363.7 kB / 1.061 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.2484, allocations: 15.97 kB / 1.061 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.884e-05/0.2485, allocations: 42.67 kB / 1.061 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.389e-05/0.2485, allocations: 8.844 kB / 1.061 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.2487, allocations: 176.2 kB / 1.061 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.2487, allocations: 4.375 kB / 1.061 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.2487, allocations: 12.36 kB / 1.061 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.2489, allocations: 73.97 kB / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.2489, allocations: 0 / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-06/0.249, allocations: 4 kB / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.249, allocations: 0 / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.2492, allocations: 59.89 kB / 1.061 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006411/0.2498, allocations: 336.7 kB / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.25, allocations: 58.59 kB / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.2501, allocations: 40.95 kB / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.2501, allocations: 0 / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000216/0.2504, allocations: 83.38 kB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.2504, allocations: 0 / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004396/0.2508, allocations: 153.5 kB / 1.062 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.2509, allocations: 55.41 kB / 1.062 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.63e-05/0.251, allocations: 113.8 kB / 1.062 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.251, allocations: 33.69 kB / 1.062 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.421e-05/0.2511, allocations: 92.05 kB / 1.062 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.2511, allocations: 15.84 kB / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.029e-05/0.2511, allocations: 21.7 kB / 1.062 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.2513, allocations: 322.8 kB / 1.063 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.2514, allocations: 35.91 kB / 1.063 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.2516, allocations: 81.98 kB / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.2518, allocations: 125.8 kB / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2518, allocations: 0 / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003369/0.2522, allocations: 141.4 kB / 1.063 GB, free: 288 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.2522, allocations: 4 kB / 1.063 GB, free: 284 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.2522, allocations: 0 / 1.063 GB, free: 284 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.2522, allocations: 4 kB / 1.063 GB, free: 280 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.2524, allocations: 32.12 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.2524, allocations: 0 / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.768e-05/0.2525, allocations: 15.91 kB / 1.063 GB, free: 232 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.2525, allocations: 7.984 kB / 1.063 GB, free: 224 kB / 0.8106 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 9.786e-05/0.2526, allocations: 123.8 kB / 1.063 GB, free: 92 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.253e-05/0.2526, allocations: 4 kB / 1.063 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.867e-05/0.2527, allocations: 12.38 kB / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.2527, allocations: 0 / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.2527, allocations: 0 / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.2527, allocations: 0 / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004829/0.2532, allocations: 394.2 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2532, allocations: 4 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.669e-05/0.2533, allocations: 11.98 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2533, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.2533, allocations: 4 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.2533, allocations: 3.938 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2533, allocations: 0 / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003009/0.2536, allocations: 219.3 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.615e-05/0.2537, allocations: 81.02 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.2537, allocations: 4 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.466e-05/0.2538, allocations: 11.92 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.351e-05/0.2538, allocations: 8 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.433e-06/0.2538, allocations: 3.984 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.564e-05/0.2539, allocations: 95.94 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2539, allocations: 0 / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002525/0.2541, allocations: 15.98 kB / 1.064 GB, free: 15.14 MB / 0.8262 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.0006446/0.2548, allocations: 0.7676 MB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002995/0.2551, allocations: 87.95 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2551, allocations: 0 / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.2552, allocations: 39.91 kB / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.2555, allocations: 23.86 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.2572, allocations: 1.542 MB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.2574, allocations: 0.6965 MB / 1.067 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.339e-05/0.2575, allocations: 7.938 kB / 1.067 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.496e-05/0.2575, allocations: 23.42 kB / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.2575, allocations: 0 / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0108/0.2683, allocations: 1.802 MB / 1.069 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002406/0.2686, allocations: 223.5 kB / 1.069 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.842/2.11, allocations: 0 / 1.069 GB, free: 9.91 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches