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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00521/0.00521, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002104/0.002104, allocations: 201.5 kB / 16.68 MB, free: 5.969 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.583/2.583, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 67.89 kB / 1.083 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2445, allocations: 162.3 MB / 1.242 GB, free: 9.789 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001505/0.2461, allocations: 0.7502 MB / 1.243 GB, free: 9.039 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.2471, allocations: 1.069 MB / 1.244 GB, free: 7.957 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.44e-05/0.2472, allocations: 3.938 kB / 1.244 GB, free: 7.953 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.847e-05/0.2472, allocations: 7.922 kB / 1.244 GB, free: 7.945 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.935e-05/0.2473, allocations: 7.875 kB / 1.244 GB, free: 7.938 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000242/0.2475, allocations: 59.81 kB / 1.244 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.515e-05/0.2476, allocations: 63.84 kB / 1.244 GB, free: 7.816 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.67e-05/0.2477, allocations: 28.14 kB / 1.244 GB, free: 7.785 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.988e-05/0.2478, allocations: 27.86 kB / 1.244 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.079e-05/0.2478, allocations: 35.86 kB / 1.244 GB, free: 7.723 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.2478, allocations: 4 kB / 1.244 GB, free: 7.719 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.402e-05/0.2479, allocations: 19.98 kB / 1.244 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.366e-05/0.2479, allocations: 19.91 kB / 1.244 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.785e-05/0.248, allocations: 31.86 kB / 1.244 GB, free: 7.648 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.2481, allocations: 71.69 kB / 1.244 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.2481, allocations: 4 kB / 1.244 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2481, allocations: 0 / 1.244 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.2481, allocations: 0 / 1.244 GB, free: 7.574 MB / 0.9981 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.0004521/0.2486, allocations: 391.1 kB / 1.244 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.2486, allocations: 12.03 kB / 1.244 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.874e-05/0.2486, allocations: 30.75 kB / 1.244 GB, free: 7.094 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.61e-05/0.2487, allocations: 8.891 kB / 1.244 GB, free: 7.086 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.2488, allocations: 176.2 kB / 1.245 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.2488, allocations: 8.312 kB / 1.245 GB, free: 6.867 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.138e-05/0.2488, allocations: 4.375 kB / 1.245 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001643/0.249, allocations: 69.97 kB / 1.245 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.249, allocations: 4 kB / 1.245 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.249, allocations: 8 kB / 1.245 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.249, allocations: 0 / 1.245 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001562/0.2492, allocations: 39.91 kB / 1.245 GB, free: 6.738 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005119/0.2497, allocations: 324.7 kB / 1.245 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/0.2499, allocations: 58.55 kB / 1.245 GB, free: 6.305 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.937e-05/0.25, allocations: 33 kB / 1.245 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.25, allocations: 0 / 1.245 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001595/0.2501, allocations: 75.38 kB / 1.245 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.2502, allocations: 0 / 1.245 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0003473/0.2505, allocations: 133.6 kB / 1.245 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.2505, allocations: 51.41 kB / 1.245 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.501e-05/0.2506, allocations: 125.8 kB / 1.246 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.2507, allocations: 33.64 kB / 1.246 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.862e-05/0.2507, allocations: 96.06 kB / 1.246 GB, free: 5.715 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.2507, allocations: 15.89 kB / 1.246 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.553e-05/0.2508, allocations: 33.7 kB / 1.246 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.2509, allocations: 318.8 kB / 1.246 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.251, allocations: 31.97 kB / 1.246 GB, free: 5.309 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.2511, allocations: 74.36 kB / 1.246 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002225/0.2514, allocations: 113.9 kB / 1.246 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.2514, allocations: 0 / 1.246 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002728/0.2516, allocations: 133.4 kB / 1.246 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.809e-06/0.2517, allocations: 4 kB / 1.246 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.2517, allocations: 4.312 kB / 1.246 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.316e-06/0.2517, allocations: 0 / 1.246 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.2518, allocations: 24.19 kB / 1.246 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.2518, allocations: 7.938 kB / 1.246 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.179e-05/0.2519, allocations: 11.95 kB / 1.246 GB, free: 4.895 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.2519, allocations: 11.98 kB / 1.246 GB, free: 4.883 MB / 0.9981 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.813e-05/0.252, allocations: 125.7 kB / 1.247 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.101e-05/0.252, allocations: 4 kB / 1.247 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.897e-05/0.252, allocations: 8.375 kB / 1.247 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.252, allocations: 3.938 kB / 1.247 GB, free: 4.734 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.252, allocations: 4 kB / 1.247 GB, free: 4.73 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.252, allocations: 4 kB / 1.247 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004099/0.2525, allocations: 374.4 kB / 1.247 GB, free: 4.305 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2525, allocations: 0 / 1.247 GB, free: 4.305 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.196e-05/0.2525, allocations: 15.98 kB / 1.247 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.2525, allocations: 0 / 1.247 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.2525, allocations: 4 kB / 1.247 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.2525, allocations: 3.938 kB / 1.247 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2526, allocations: 4 kB / 1.247 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002594/0.2528, allocations: 203.4 kB / 1.247 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.713e-05/0.2529, allocations: 81.06 kB / 1.247 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.159e-05/0.2529, allocations: 0 / 1.247 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.651e-05/0.253, allocations: 11.92 kB / 1.247 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.132e-05/0.253, allocations: 12 kB / 1.247 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/0.253, allocations: 0 / 1.247 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.01e-05/0.2531, allocations: 103.4 kB / 1.247 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2531, allocations: 0 / 1.247 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002133/0.2533, allocations: 12 kB / 1.247 GB, free: 3.828 MB / 0.9981 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.0005307/0.2538, allocations: 0.7519 MB / 1.248 GB, free: 3.051 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002334/0.2541, allocations: 71.89 kB / 1.248 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.2541, allocations: 0 / 1.248 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.2542, allocations: 35.97 kB / 1.248 GB, free: 2.945 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002161/0.2544, allocations: 16.38 kB / 1.248 GB, free: 2.93 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/0.2559, allocations: 1.516 MB / 1.25 GB, free: 1.293 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.2561, allocations: 0.6924 MB / 1.25 GB, free: 0.5742 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.685e-05/0.2561, allocations: 7.938 kB / 1.25 GB, free: 0.5664 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.896e-05/0.2562, allocations: 27.42 kB / 1.25 GB, free: 0.5391 MB / 0.9981 GB Notification: Performance of SimCode: time 2.2e-07/0.2562, allocations: 0 / 1.25 GB, free: 0.5391 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.372/2.628, allocations: 2.09 MB / 1.252 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.093/11.72, allocations: 8.531 kB / 1.252 GB, free: 14.25 MB / 0.9981 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=400 --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