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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.004944/0.004944, allocations: 97.58 kB / 15.73 MB, free: 5.988 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.00122/0.00122, allocations: 191.8 kB / 16.67 MB, free: 5.918 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.735/2.735, allocations: 469.4 MB / 0.7422 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 63.91 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2678, allocations: 159.1 MB / 1.22 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00196/0.2698, allocations: 0.7572 MB / 1.22 GB, free: 13.92 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001488/0.2713, allocations: 1.162 MB / 1.222 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.336e-05/0.2714, allocations: 0 / 1.222 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.239e-05/0.2715, allocations: 3.938 kB / 1.222 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.621e-05/0.2716, allocations: 19.86 kB / 1.222 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005313/0.2721, allocations: 138.9 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.2723, allocations: 119.8 kB / 1.222 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.2724, allocations: 28.17 kB / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.2725, allocations: 59.77 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.221e-05/0.2726, allocations: 43.88 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.418e-05/0.2726, allocations: 12 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.923e-05/0.2727, allocations: 23.98 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.187e-05/0.2727, allocations: 15.92 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.245e-05/0.2728, allocations: 47.83 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001803/0.273, allocations: 131.5 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.273, allocations: 0 / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.443e-06/0.273, allocations: 0 / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.273, allocations: 0 / 1.222 GB, free: 12.11 MB / 0.9825 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.0005374/0.2736, allocations: 420.8 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.2736, allocations: 8.031 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.641e-05/0.2736, allocations: 38.73 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.751e-05/0.2737, allocations: 12.89 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.2738, allocations: 172.3 kB / 1.223 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.2738, allocations: 12.31 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.938e-05/0.2739, allocations: 12.36 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/0.2741, allocations: 73.97 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.2741, allocations: 0 / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.2741, allocations: 4 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.2741, allocations: 0 / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/0.2743, allocations: 47.89 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004857/0.2748, allocations: 344.7 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000176/0.275, allocations: 66.58 kB / 1.223 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.2751, allocations: 32.95 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.2751, allocations: 0 / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002459/0.2754, allocations: 95.31 kB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.2754, allocations: 0 / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0004485/0.2759, allocations: 145.5 kB / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.2759, allocations: 59.39 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.858e-05/0.276, allocations: 121.8 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.276, allocations: 29.7 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.912e-05/0.2761, allocations: 104 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.2761, allocations: 15.91 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.962e-05/0.2762, allocations: 41.64 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.935e-05/0.2763, allocations: 322.8 kB / 1.224 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.2765, allocations: 51.95 kB / 1.224 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.2767, allocations: 93.11 kB / 1.224 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002881/0.2769, allocations: 146.8 kB / 1.225 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.277, allocations: 0 / 1.225 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004548/0.2774, allocations: 219.1 kB / 1.225 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.595e-05/0.2775, allocations: 37.7 kB / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.2775, allocations: 0 / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.2775, allocations: 16.17 kB / 1.225 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.77e-05/0.2776, allocations: 12 kB / 1.225 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.2776, allocations: 3.984 kB / 1.225 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.2778, allocations: 31.92 kB / 1.225 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.2779, allocations: 19.92 kB / 1.225 GB, free: 9.062 MB / 0.9825 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 9.671e-05/0.278, allocations: 126.2 kB / 1.225 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.576e-05/0.278, allocations: 8 kB / 1.225 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003121/0.2783, allocations: 118 kB / 1.225 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.2783, allocations: 3.938 kB / 1.225 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.2783, allocations: 4 kB / 1.225 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2783, allocations: 0 / 1.225 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000429/0.2788, allocations: 382.4 kB / 1.226 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2788, allocations: 4 kB / 1.226 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.15e-05/0.2789, allocations: 7.984 kB / 1.226 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.2789, allocations: 4 kB / 1.226 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.2789, allocations: 0 / 1.226 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.2789, allocations: 3.938 kB / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2789, allocations: 0 / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003051/0.2792, allocations: 215.4 kB / 1.226 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.731e-05/0.2793, allocations: 89.05 kB / 1.226 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.2793, allocations: 0 / 1.226 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.309e-05/0.2794, allocations: 15.92 kB / 1.226 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.559e-05/0.2794, allocations: 4 kB / 1.226 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.545e-06/0.2794, allocations: 7.938 kB / 1.226 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.113e-05/0.2795, allocations: 91.27 kB / 1.226 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2795, allocations: 0 / 1.226 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002959/0.2798, allocations: 27.95 kB / 1.226 GB, free: 7.859 MB / 0.9825 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.000593/0.2804, allocations: 0.752 MB / 1.227 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003843/0.2808, allocations: 183.3 kB / 1.227 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2808, allocations: 0 / 1.227 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.2809, allocations: 43.95 kB / 1.227 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.2812, allocations: 17.17 kB / 1.227 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002001/0.2832, allocations: 1.719 MB / 1.229 GB, free: 4.996 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002201/0.2835, allocations: 0.6924 MB / 1.229 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.341e-05/0.2835, allocations: 4 kB / 1.229 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.967e-05/0.2836, allocations: 15.44 kB / 1.229 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of SimCode: time 3.1e-07/0.2836, allocations: 4 kB / 1.229 GB, free: 4.254 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01682/0.3004, allocations: 2.579 MB / 1.232 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.244/7.544, allocations: 9.125 kB / 1.232 GB, free: 1.824 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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