Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.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 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.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_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.005303/0.005303, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001368/0.001368, allocations: 192.8 kB / 16.67 MB, free: 5.875 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.285/1.285, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.56/2.56, allocations: 482.6 MB / 0.7551 GB, free: 6.602 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 68.58 kB / 1.083 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2541, allocations: 162.3 MB / 1.242 GB, free: 8.895 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00163/0.2558, allocations: 0.7479 MB / 1.243 GB, free: 8.145 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001287/0.2571, allocations: 1.156 MB / 1.244 GB, free: 6.977 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.064e-05/0.2571, allocations: 0 / 1.244 GB, free: 6.977 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.402e-05/0.2572, allocations: 7.938 kB / 1.244 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.12e-05/0.2572, allocations: 19.84 kB / 1.244 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004028/0.2577, allocations: 134.5 kB / 1.244 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001634/0.2578, allocations: 127.8 kB / 1.244 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.06e-05/0.2579, allocations: 24.14 kB / 1.244 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.002e-05/0.258, allocations: 47.91 kB / 1.244 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.089e-05/0.2581, allocations: 47.81 kB / 1.244 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.2581, allocations: 12 kB / 1.244 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.325e-05/0.2582, allocations: 31.97 kB / 1.244 GB, free: 6.531 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.626e-05/0.2582, allocations: 19.92 kB / 1.244 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.132e-05/0.2583, allocations: 39.84 kB / 1.244 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001683/0.2585, allocations: 123.8 kB / 1.244 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.2585, allocations: 3.938 kB / 1.244 GB, free: 6.348 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2585, allocations: 0 / 1.244 GB, free: 6.348 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.958e-06/0.2585, allocations: 0 / 1.244 GB, free: 6.348 MB / 0.9669 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.0005238/0.259, allocations: 422.7 kB / 1.245 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.2591, allocations: 12.02 kB / 1.245 GB, free: 5.871 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.217e-05/0.2591, allocations: 42.75 kB / 1.245 GB, free: 5.82 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.508e-05/0.2592, allocations: 4.938 kB / 1.245 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.2593, allocations: 180.2 kB / 1.245 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.2593, allocations: 8.359 kB / 1.245 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.21e-05/0.2593, allocations: 12.38 kB / 1.245 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.2595, allocations: 77.91 kB / 1.245 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.2595, allocations: 0 / 1.245 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.789e-06/0.2595, allocations: 3.984 kB / 1.245 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.2595, allocations: 0 / 1.245 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000169/0.2597, allocations: 51.95 kB / 1.245 GB, free: 5.445 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004377/0.2602, allocations: 344.5 kB / 1.245 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001546/0.2603, allocations: 62.55 kB / 1.245 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.373e-05/0.2604, allocations: 36.97 kB / 1.246 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.2604, allocations: 0 / 1.246 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001983/0.2607, allocations: 91.39 kB / 1.246 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.222e-06/0.2607, allocations: 0 / 1.246 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0004015/0.2611, allocations: 157.5 kB / 1.246 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.2611, allocations: 51.41 kB / 1.246 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.548e-05/0.2612, allocations: 129.7 kB / 1.246 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.2612, allocations: 25.7 kB / 1.246 GB, free: 4.457 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.356e-05/0.2613, allocations: 92.12 kB / 1.246 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.2613, allocations: 19.86 kB / 1.246 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.467e-05/0.2614, allocations: 37.7 kB / 1.246 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.2615, allocations: 326.8 kB / 1.246 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/0.2617, allocations: 55.95 kB / 1.246 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.2618, allocations: 89.05 kB / 1.247 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000266/0.2621, allocations: 150.8 kB / 1.247 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2621, allocations: 4 kB / 1.247 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004084/0.2625, allocations: 207.3 kB / 1.247 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/0.2626, allocations: 45.62 kB / 1.247 GB, free: 3.371 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.2626, allocations: 4 kB / 1.247 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.788e-06/0.2626, allocations: 3.938 kB / 1.247 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.641e-05/0.2627, allocations: 19.92 kB / 1.247 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.2627, allocations: 0 / 1.247 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.2629, allocations: 39.91 kB / 1.247 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.177e-05/0.2629, allocations: 11.95 kB / 1.247 GB, free: 3.293 MB / 0.9669 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.474e-05/0.263, allocations: 127.7 kB / 1.247 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.337e-05/0.263, allocations: 7.953 kB / 1.247 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002786/0.2633, allocations: 129.9 kB / 1.247 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.2633, allocations: 0 / 1.247 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.2633, allocations: 0 / 1.247 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.2634, allocations: 0 / 1.247 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004066/0.2638, allocations: 378.5 kB / 1.248 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2638, allocations: 0 / 1.248 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.529e-05/0.2638, allocations: 11.98 kB / 1.248 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.2638, allocations: 0 / 1.248 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.882e-06/0.2639, allocations: 3.938 kB / 1.248 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.022e-06/0.2639, allocations: 7.938 kB / 1.248 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.2639, allocations: 0 / 1.248 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002874/0.2642, allocations: 219.4 kB / 1.248 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.928e-05/0.2642, allocations: 81.06 kB / 1.248 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.2642, allocations: 8 kB / 1.248 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.799e-05/0.2643, allocations: 7.922 kB / 1.248 GB, free: 2.23 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.756e-05/0.2643, allocations: 4 kB / 1.248 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.2644, allocations: 4 kB / 1.248 GB, free: 2.223 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.441e-05/0.2644, allocations: 95.27 kB / 1.248 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.2644, allocations: 0 / 1.248 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002355/0.2647, allocations: 27.94 kB / 1.248 GB, free: 2.102 MB / 0.9669 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.0006084/0.2653, allocations: 0.7564 MB / 1.249 GB, free: 1.32 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003548/0.2656, allocations: 175.3 kB / 1.249 GB, free: 1.137 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2657, allocations: 0 / 1.249 GB, free: 1.137 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.2658, allocations: 47.84 kB / 1.249 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.266, allocations: 29.95 kB / 1.249 GB, free: 1.062 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.2679, allocations: 1.709 MB / 1.251 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.2682, allocations: 0.6885 MB / 1.251 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.838e-05/0.2683, allocations: 4 kB / 1.251 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.245e-05/0.2683, allocations: 31.36 kB / 1.251 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of SimCode: time 2.71e-07/0.2683, allocations: 4 kB / 1.251 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.742/2.01, allocations: 2.566 MB / 1.254 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/15.99, allocations: 5.188 kB / 1.254 GB, free: 12.06 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches