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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001264/0.001264, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.194/1.194, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.525/2.525, allocations: 461.9 MB / 0.7346 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 70.42 kB / 0.8992 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2629, allocations: 157.4 MB / 1.053 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001836/0.2647, allocations: 0.7554 MB / 1.054 GB, free: 7.488 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001247/0.266, allocations: 1.166 MB / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.855e-05/0.2661, allocations: 0 / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.764e-05/0.2661, allocations: 7.875 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.163e-05/0.2662, allocations: 11.92 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004342/0.2666, allocations: 139.1 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001471/0.2668, allocations: 135.7 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.833e-05/0.2669, allocations: 24.17 kB / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.958e-05/0.267, allocations: 51.84 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.02e-05/0.2671, allocations: 47.81 kB / 1.055 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.2671, allocations: 8 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.768e-05/0.2672, allocations: 27.98 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.206e-05/0.2672, allocations: 11.98 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.181e-05/0.2673, allocations: 43.8 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.2674, allocations: 119.7 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2674, allocations: 4 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.183e-06/0.2674, allocations: 4 kB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.628e-06/0.2674, allocations: 0 / 1.055 GB, free: 5.684 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005054/0.268, allocations: 413.2 kB / 1.056 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.268, allocations: 16.56 kB / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.786e-05/0.268, allocations: 34.73 kB / 1.056 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.126e-05/0.2681, allocations: 12.84 kB / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000109/0.2682, allocations: 176.3 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.2682, allocations: 4.375 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.148e-05/0.2682, allocations: 8.375 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/0.2684, allocations: 81.95 kB / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.2684, allocations: 0 / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.427e-06/0.2684, allocations: 0 / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.2684, allocations: 0 / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.2686, allocations: 51.89 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004338/0.2691, allocations: 340.6 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00015/0.2692, allocations: 58.55 kB / 1.057 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.98e-05/0.2693, allocations: 36.98 kB / 1.057 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.2694, allocations: 0 / 1.057 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001989/0.2696, allocations: 87.36 kB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.233e-06/0.2696, allocations: 0 / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0004029/0.27, allocations: 153.5 kB / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.27, allocations: 63.33 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.13e-05/0.2701, allocations: 117.8 kB / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.2702, allocations: 33.7 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.985e-05/0.2702, allocations: 96.03 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.2702, allocations: 19.75 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.399e-05/0.2703, allocations: 41.64 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.653e-05/0.2704, allocations: 322.8 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.2706, allocations: 51.97 kB / 1.058 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001736/0.2707, allocations: 97.05 kB / 1.058 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/0.271, allocations: 150.7 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.271, allocations: 0 / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004067/0.2714, allocations: 211.1 kB / 1.058 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.2715, allocations: 38.8 kB / 1.058 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.2715, allocations: 160 / 1.058 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.2715, allocations: 8 kB / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.615e-05/0.2716, allocations: 15.92 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.2716, allocations: 4 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002044/0.2718, allocations: 35.86 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/0.2718, allocations: 19.92 kB / 1.058 GB, free: 2.648 MB / 0.8106 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.993e-05/0.2719, allocations: 119.4 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/0.2719, allocations: 11.94 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002778/0.2722, allocations: 129.9 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2722, allocations: 0 / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.2722, allocations: 0 / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2723, allocations: 0 / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003894/0.2726, allocations: 386.4 kB / 1.059 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2727, allocations: 0 / 1.059 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.86e-05/0.2727, allocations: 11.98 kB / 1.059 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2727, allocations: 0 / 1.059 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.2727, allocations: 4 kB / 1.059 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2728, allocations: 3.938 kB / 1.059 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2728, allocations: 0 / 1.059 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002767/0.273, allocations: 219.4 kB / 1.059 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.123e-05/0.2731, allocations: 81.11 kB / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/0.2731, allocations: 4 kB / 1.059 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-05/0.2732, allocations: 15.92 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.347e-05/0.2732, allocations: 4 kB / 1.059 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-06/0.2732, allocations: 3.938 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.705e-05/0.2733, allocations: 91.27 kB / 1.059 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2733, allocations: 0 / 1.059 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002458/0.2735, allocations: 32 kB / 1.059 GB, free: 1.449 MB / 0.8106 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.0005167/0.2741, allocations: 0.7552 MB / 1.06 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000341/0.2744, allocations: 187.2 kB / 1.06 GB, free: 484 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2744, allocations: 0 / 1.06 GB, free: 484 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.2745, allocations: 39.97 kB / 1.06 GB, free: 444 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.2748, allocations: 16.8 kB / 1.06 GB, free: 428 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.2766, allocations: 1.699 MB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000217/0.2768, allocations: 0.6885 MB / 1.062 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.043e-05/0.2769, allocations: 8 kB / 1.062 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.874e-05/0.2769, allocations: 27.42 kB / 1.062 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2769, allocations: 0 / 1.062 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8215/1.098, allocations: 2.532 MB / 1.065 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.721/10.82, allocations: 10.23 kB / 1.065 GB, free: 11.44 MB / 0.8262 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=50 --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