Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00237/0.00237, allocations: 83.69 kB / 20.24 MB, free: 4.184 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002922/0.002922, allocations: 161.3 kB / 23.55 MB, free: 0.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.628/1.628, allocations: 177.1 MB / 203.9 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.094/3.094, allocations: 377.8 MB / 0.6232 GB, free: 8.512 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 0.8108 GB, free: 2.094 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.772e-05/3.992e-05, allocations: 5.469 kB / 0.8108 GB, free: 2.09 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00212/0.00216, allocations: 0.676 MB / 0.8114 GB, free: 1.441 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001812/0.003972, allocations: 1.094 MB / 0.8125 GB, free: 344 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.814e-05/0.00401, allocations: 0 / 0.8125 GB, free: 344 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.516e-05/0.004035, allocations: 3.938 kB / 0.8125 GB, free: 340 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 7.182e-05/0.004107, allocations: 11.88 kB / 0.8125 GB, free: 328 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002783/0.004385, allocations: 41.34 kB / 0.8126 GB, free: 288 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.004498, allocations: 51.8 kB / 0.8126 GB, free: 236 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 8.32e-05/0.004581, allocations: 7.984 kB / 0.8126 GB, free: 228 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.004683, allocations: 29.03 kB / 0.8126 GB, free: 200 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 5.179e-05/0.004735, allocations: 15.92 kB / 0.8127 GB, free: 184 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 2.007e-05/0.004755, allocations: 4 kB / 0.8127 GB, free: 180 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 7.182e-05/0.004827, allocations: 25.52 kB / 0.8127 GB, free: 156 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 3.027e-05/0.004857, allocations: 15.97 kB / 0.8127 GB, free: 140 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 3.739e-05/0.004895, allocations: 11.94 kB / 0.8127 GB, free: 128 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.005056, allocations: 63.83 kB / 0.8128 GB, free: 64 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.005058, allocations: 2.594 kB / 0.8128 GB, free: 64 kB / 0.7605 GB Notification: Performance of FrontEnd: time 1.493e-06/0.00506, allocations: 0 / 0.8128 GB, free: 64 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.005064, allocations: 3.938 kB / 0.8128 GB, free: 60 kB / 0.7605 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.0006948/0.005759, allocations: 392.2 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.005798, allocations: 8.031 kB / 0.8132 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.005909, allocations: 8.891 kB / 0.8132 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001261/0.006036, allocations: 113.1 kB / 0.8133 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.006051, allocations: 5.078 kB / 0.8133 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.292e-05/0.006064, allocations: 8.375 kB / 0.8133 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.00624, allocations: 54.77 kB / 0.8133 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.00625, allocations: 1.844 kB / 0.8134 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.858e-06/0.00626, allocations: 384 / 0.8134 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.006264, allocations: 384 / 0.8134 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001433/0.006407, allocations: 35.92 kB / 0.8134 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004914/0.006899, allocations: 284.2 kB / 0.8137 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.007055, allocations: 51.83 kB / 0.8137 GB, free: 15 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.519e-05/0.00714, allocations: 32.95 kB / 0.8137 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.007166, allocations: 4 kB / 0.8137 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001648/0.007331, allocations: 70.36 kB / 0.8138 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/0.007332, allocations: 4 kB / 0.8138 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0003818/0.007714, allocations: 109.6 kB / 0.8139 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/0.007766, allocations: 53.16 kB / 0.814 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.007922, allocations: 165.9 kB / 0.8141 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.511e-05/0.007948, allocations: 29.7 kB / 0.8142 GB, free: 14.49 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.932e-05/0.008037, allocations: 134.8 kB / 0.8143 GB, free: 14.35 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.967e-05/0.008067, allocations: 20.73 kB / 0.8143 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-05/0.008121, allocations: 23.38 kB / 0.8143 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000265/0.008386, allocations: 0.4923 MB / 0.8148 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.448e-05/0.008461, allocations: 18.22 kB / 0.8148 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.008581, allocations: 58.72 kB / 0.8149 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.008753, allocations: 77.39 kB / 0.815 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.008755, allocations: 0 / 0.815 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002404/0.008995, allocations: 97.55 kB / 0.815 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.009015, allocations: 11.94 kB / 0.8151 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.009023, allocations: 4.484 kB / 0.8151 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.00904, allocations: 5.562 kB / 0.8151 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.122e-05/0.009131, allocations: 11.94 kB / 0.8151 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.00914, allocations: 4 kB / 0.8151 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.745e-05/0.009198, allocations: 12.48 kB / 0.8151 GB, free: 13.47 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.417e-06/0.009207, allocations: 0 / 0.8151 GB, free: 13.47 MB / 0.7761 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 0.0001386/0.009346, allocations: 166 kB / 0.8153 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.165e-05/0.009367, allocations: 11.89 kB / 0.8153 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002753/0.009643, allocations: 94.09 kB / 0.8154 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.009645, allocations: 0.5 kB / 0.8154 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.009649, allocations: 1.062 kB / 0.8154 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.009653, allocations: 0 / 0.8154 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004751/0.01013, allocations: 354.2 kB / 0.8157 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.01013, allocations: 0 / 0.8157 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.703e-05/0.01018, allocations: 7.688 kB / 0.8157 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-06/0.01018, allocations: 4 kB / 0.8157 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.01019, allocations: 3.984 kB / 0.8157 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.01019, allocations: 0 / 0.8157 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.0102, allocations: 0 / 0.8157 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003314/0.01053, allocations: 243.8 kB / 0.8159 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.027e-05/0.01054, allocations: 4 kB / 0.8159 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.01055, allocations: 0 / 0.8159 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.661e-05/0.01064, allocations: 7.984 kB / 0.816 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.695e-05/0.01069, allocations: 5.688 kB / 0.816 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.0107, allocations: 7.984 kB / 0.816 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.275e-05/0.0108, allocations: 127.4 kB / 0.8161 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.0108, allocations: 0 / 0.8161 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002444/0.01104, allocations: 16 kB / 0.8161 GB, free: 12.37 MB / 0.7761 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.0001765/0.01122, allocations: 104.1 kB / 0.8162 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002439/0.01146, allocations: 64.69 kB / 0.8163 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01146, allocations: 1.125 kB / 0.8163 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.01157, allocations: 35.67 kB / 0.8163 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.01185, allocations: 11.84 kB / 0.8163 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004019/0.01225, allocations: 150.1 kB / 0.8165 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.302e-05/0.01234, allocations: 68 kB / 0.8165 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.328e-05/0.01238, allocations: 9.594 kB / 0.8165 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.636e-05/0.01241, allocations: 16.48 kB / 0.8165 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of SimCode: time 4.41e-07/0.01241, allocations: 0 / 0.8165 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of Templates: time 0.004184/0.0166, allocations: 0.8304 MB / 0.8174 GB, free: 11.05 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.378992655081674]