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.001887/0.001887, allocations: 80.41 kB / 20.23 MB, free: 4.199 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.002256/0.002256, allocations: 161.6 kB / 23.55 MB, free: 0.8906 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.557/1.557, allocations: 177.1 MB / 203.9 MB, free: 5.594 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 2.875/2.875, allocations: 377.8 MB / 0.6232 GB, free: 8.543 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.735e-06/2.735e-06, allocations: 0 / 0.8108 GB, free: 2.141 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.016e-05/4.289e-05, allocations: 11.19 kB / 0.8108 GB, free: 2.129 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00223/0.002272, allocations: 0.663 MB / 0.8114 GB, free: 1.484 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001768/0.00404, allocations: 1.081 MB / 0.8125 GB, free: 400 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.334e-05/0.004093, allocations: 1.219 kB / 0.8125 GB, free: 400 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.334e-05/0.004127, allocations: 3.938 kB / 0.8125 GB, free: 396 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 8.145e-05/0.004208, allocations: 11.92 kB / 0.8125 GB, free: 384 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.000362/0.00457, allocations: 44.39 kB / 0.8126 GB, free: 340 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001195/0.00469, allocations: 45.27 kB / 0.8126 GB, free: 296 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.00479, allocations: 7.984 kB / 0.8126 GB, free: 288 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.004899, allocations: 31.91 kB / 0.8126 GB, free: 256 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 6.048e-05/0.004959, allocations: 19.91 kB / 0.8127 GB, free: 236 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/0.004981, allocations: 4.938 kB / 0.8127 GB, free: 232 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 8.239e-05/0.005064, allocations: 16 kB / 0.8127 GB, free: 216 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 3.047e-05/0.005094, allocations: 16.66 kB / 0.8127 GB, free: 200 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 4.089e-05/0.005135, allocations: 8 kB / 0.8127 GB, free: 192 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.005325, allocations: 68.67 kB / 0.8128 GB, free: 124 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.00533, allocations: 0 / 0.8128 GB, free: 124 kB / 0.7605 GB Notification: Performance of FrontEnd: time 1.082e-06/0.005331, allocations: 4.656 kB / 0.8128 GB, free: 120 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 5.189e-06/0.005336, allocations: 0 / 0.8128 GB, free: 120 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.0007036/0.00604, allocations: 292.3 kB / 0.813 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.006078, allocations: 8.031 kB / 0.8131 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001444/0.006222, allocations: 16.83 kB / 0.8131 GB, free: 15.78 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.006345, allocations: 107.5 kB / 0.8132 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.006363, allocations: 4.375 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.006378, allocations: 4.359 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002257/0.006604, allocations: 66.22 kB / 0.8132 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.006613, allocations: 5.375 kB / 0.8133 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.006625, allocations: 384 / 0.8133 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.00663, allocations: 384 / 0.8133 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002064/0.006836, allocations: 48.73 kB / 0.8133 GB, free: 15.52 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004873/0.007323, allocations: 213.4 kB / 0.8135 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.007511, allocations: 55.7 kB / 0.8136 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.007617, allocations: 28.97 kB / 0.8136 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.007644, allocations: 0.5938 kB / 0.8136 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002588/0.007903, allocations: 80.39 kB / 0.8137 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.007904, allocations: 4 kB / 0.8137 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0004938/0.008398, allocations: 123 kB / 0.8138 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.535e-05/0.008453, allocations: 55.41 kB / 0.8138 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.008561, allocations: 106.9 kB / 0.8139 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.008584, allocations: 25.7 kB / 0.814 GB, free: 14.76 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.00874, allocations: 88.09 kB / 0.814 GB, free: 14.67 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.58e-05/0.008765, allocations: 17.66 kB / 0.8141 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.328e-05/0.008819, allocations: 25.7 kB / 0.8141 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001678/0.008987, allocations: 314.8 kB / 0.8144 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.009106, allocations: 24.47 kB / 0.8144 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.009235, allocations: 52.95 kB / 0.8145 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000225/0.00946, allocations: 76.91 kB / 0.8145 GB, free: 14.13 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.009462, allocations: 0 / 0.8145 GB, free: 14.13 MB / 0.7761 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003004/0.009762, allocations: 110.9 kB / 0.8146 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.009782, allocations: 12.5 kB / 0.8147 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.009788, allocations: 0.6562 kB / 0.8147 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.009809, allocations: 0 / 0.8147 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.009924, allocations: 17.92 kB / 0.8147 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.00993, allocations: 0 / 0.8147 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.008e-05/0.01002, allocations: 11.98 kB / 0.8147 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.01003, allocations: 4.156 kB / 0.8147 GB, free: 13.98 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.000106/0.01014, allocations: 118.4 kB / 0.8148 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.651e-05/0.01017, allocations: 16.59 kB / 0.8148 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/0.01048, allocations: 102.9 kB / 0.8149 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.01048, allocations: 0 / 0.8149 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.01048, allocations: 0.9375 kB / 0.8149 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.01049, allocations: 0 / 0.8149 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004989/0.01099, allocations: 307.5 kB / 0.8152 GB, free: 13.39 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.01099, allocations: 0 / 0.8152 GB, free: 13.39 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.547e-05/0.01105, allocations: 8.859 kB / 0.8152 GB, free: 13.39 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.01106, allocations: 0 / 0.8152 GB, free: 13.39 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.01107, allocations: 6.156 kB / 0.8152 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.01107, allocations: 0 / 0.8152 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.01108, allocations: 3.984 kB / 0.8152 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003637/0.01144, allocations: 211.4 kB / 0.8154 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.225e-05/0.01145, allocations: 4.5 kB / 0.8154 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.01147, allocations: 4 kB / 0.8154 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.01158, allocations: 11.61 kB / 0.8154 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.9e-05/0.01163, allocations: 3.984 kB / 0.8154 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.01165, allocations: 12 kB / 0.8155 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.492e-05/0.0117, allocations: 79.28 kB / 0.8155 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.0117, allocations: 0 / 0.8155 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002716/0.01197, allocations: 16 kB / 0.8156 GB, free: 13.03 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.0001725/0.01215, allocations: 99.23 kB / 0.8156 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002734/0.01242, allocations: 61.98 kB / 0.8157 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01242, allocations: 0 / 0.8157 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.01255, allocations: 36.47 kB / 0.8157 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/0.01284, allocations: 12.11 kB / 0.8158 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004147/0.01326, allocations: 137.9 kB / 0.8159 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.838e-05/0.01333, allocations: 67.28 kB / 0.8159 GB, free: 12.58 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.505e-05/0.01337, allocations: 4.781 kB / 0.816 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.969e-05/0.01341, allocations: 21.05 kB / 0.816 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of SimCode: time 8.61e-07/0.01341, allocations: 1.094 kB / 0.816 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of Templates: time 0.004019/0.01743, allocations: 0.8225 MB / 0.8168 GB, free: 11.77 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 400] 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: 7.893843789934181]