Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",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.001721/0.001721, 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.001672/0.001672, allocations: 194.3 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.236/1.236, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.46/2.46, allocations: 469.8 MB / 0.7424 GB, free: 7.453 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001722, allocations: 66.88 kB / 0.9087 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2348, allocations: 159.2 MB / 1.064 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001727/0.2365, allocations: 0.6639 MB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001172/0.2377, allocations: 1.051 MB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.408e-05/0.2378, allocations: 4 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.628e-05/0.2378, allocations: 7.938 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.478e-05/0.2379, allocations: 7.875 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.2381, allocations: 43.83 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.271e-05/0.2382, allocations: 43.91 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.214e-05/0.2382, allocations: 11.98 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.71e-05/0.2383, allocations: 19.92 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.964e-05/0.2384, allocations: 23.92 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.438e-05/0.2384, allocations: 8 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.519e-05/0.2384, allocations: 15.98 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.835e-05/0.2385, allocations: 11.98 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.381e-05/0.2385, allocations: 19.86 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001092/0.2386, allocations: 55.8 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2386, allocations: 3.984 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.42e-07/0.2386, allocations: 0 / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.636e-06/0.2386, allocations: 0 / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005151/0.2392, allocations: 367.7 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.2392, allocations: 8.031 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.663e-05/0.2392, allocations: 30.75 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.6e-05/0.2393, allocations: 4.938 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.2394, allocations: 176.2 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.2394, allocations: 8.375 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.325e-05/0.2394, allocations: 8.375 kB / 1.067 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.2396, allocations: 58.23 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2396, allocations: 11.86 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.2396, allocations: 8 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.2396, allocations: 0 / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001701/0.2398, allocations: 39.91 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003747/0.2402, allocations: 272.8 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001542/0.2404, allocations: 58.55 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.727e-05/0.2405, allocations: 36.95 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.2405, allocations: 0 / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001708/0.2407, allocations: 71.33 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 2.885e-06/0.2407, allocations: 0 / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0003715/0.2411, allocations: 129.5 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.2411, allocations: 51.41 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.483e-05/0.2412, allocations: 105.8 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.2412, allocations: 29.7 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.252e-05/0.2413, allocations: 84.12 kB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.2413, allocations: 19.88 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.127e-05/0.2413, allocations: 21.72 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2415, allocations: 326.7 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.134e-05/0.2416, allocations: 19.98 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.2417, allocations: 51.41 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.2419, allocations: 87.31 kB / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.2419, allocations: 0 / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002443/0.2421, allocations: 105.5 kB / 1.068 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.2421, allocations: 5.25 kB / 1.068 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.2422, allocations: 4.094 kB / 1.068 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.2422, allocations: 4 kB / 1.068 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.598e-05/0.2423, allocations: 11.98 kB / 1.068 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.2423, allocations: 3.938 kB / 1.068 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.228e-05/0.2423, allocations: 15.94 kB / 1.068 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.2424, allocations: 3.984 kB / 1.068 GB, free: 9.793 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 8.062e-05/0.2424, allocations: 117.8 kB / 1.068 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.159e-05/0.2425, allocations: 4 kB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002514/0.2427, allocations: 102.5 kB / 1.068 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2427, allocations: 4 kB / 1.068 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.2427, allocations: 4.062 kB / 1.068 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.2427, allocations: 0 / 1.068 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004065/0.2431, allocations: 354.3 kB / 1.069 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2432, allocations: 0 / 1.069 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.429e-05/0.2432, allocations: 15.98 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.2432, allocations: 0 / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.2432, allocations: 0 / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.2432, allocations: 4 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2433, allocations: 3.938 kB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002724/0.2435, allocations: 195.4 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.88e-05/0.2436, allocations: 85.02 kB / 1.069 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.2436, allocations: 4 kB / 1.069 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.894e-05/0.2437, allocations: 11.92 kB / 1.069 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.907e-05/0.2437, allocations: 11.94 kB / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-06/0.2437, allocations: 3.984 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.126e-05/0.2438, allocations: 79.28 kB / 1.069 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2438, allocations: 0 / 1.069 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002168/0.244, allocations: 16 kB / 1.069 GB, free: 8.691 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0005538/0.2446, allocations: 0.7297 MB / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002244/0.2448, allocations: 68.25 kB / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2448, allocations: 4.188 kB / 1.07 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.888e-05/0.2449, allocations: 27.98 kB / 1.07 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000222/0.2452, allocations: 20.05 kB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.2466, allocations: 1.374 MB / 1.071 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.2468, allocations: 0.6807 MB / 1.072 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.267e-05/0.2469, allocations: 4 kB / 1.072 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.633e-05/0.2469, allocations: 19.42 kB / 1.072 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of SimCode: time 2.01e-07/0.2469, allocations: 0 / 1.072 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.333/0.58, allocations: 1.719 MB / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9/9.58, allocations: 10.75 kB / 1.074 GB, free: 3.969 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches