Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.002361/0.002361, allocations: 93.47 kB / 19.44 MB, free: 340 kB / 13.93 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.002758/0.002758, allocations: 173.6 kB / 22.76 MB, free: 1.664 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.621/1.621, allocations: 177.1 MB / 203.1 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.341/3.341, allocations: 429.5 MB / 0.6729 GB, free: 4.008 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.965e-06/2.965e-06, allocations: 0.9844 kB / 0.8774 GB, free: 6.684 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.22e-05/3.516e-05, allocations: 4.703 kB / 0.8774 GB, free: 6.68 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002064/0.002099, allocations: 0.6718 MB / 0.8781 GB, free: 6.031 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001666/0.003765, allocations: 1.085 MB / 0.8792 GB, free: 4.938 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.998e-05/0.003805, allocations: 0 / 0.8792 GB, free: 4.938 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.907e-05/0.003834, allocations: 7.922 kB / 0.8792 GB, free: 4.93 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.225e-05/0.003907, allocations: 4.969 kB / 0.8792 GB, free: 4.926 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003123/0.004219, allocations: 48.52 kB / 0.8792 GB, free: 4.879 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.004338, allocations: 43.86 kB / 0.8793 GB, free: 4.836 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.004442, allocations: 17.08 kB / 0.8793 GB, free: 4.82 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.004547, allocations: 23.92 kB / 0.8793 GB, free: 4.797 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.061e-05/0.004607, allocations: 24.61 kB / 0.8793 GB, free: 4.773 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.455e-05/0.004632, allocations: 4 kB / 0.8793 GB, free: 4.77 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.677e-05/0.004709, allocations: 25.14 kB / 0.8793 GB, free: 4.746 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.739e-05/0.004736, allocations: 7.938 kB / 0.8793 GB, free: 4.738 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.251e-05/0.004779, allocations: 19.97 kB / 0.8794 GB, free: 4.719 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001719/0.00495, allocations: 64.69 kB / 0.8794 GB, free: 4.656 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.004956, allocations: 4 kB / 0.8794 GB, free: 4.652 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.172e-06/0.004957, allocations: 0 / 0.8794 GB, free: 4.652 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.389e-06/0.004962, allocations: 1.031 kB / 0.8794 GB, free: 4.652 MB / 0.8386 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.0006887/0.00565, allocations: 385.3 kB / 0.8798 GB, free: 4.238 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.005697, allocations: 12.03 kB / 0.8798 GB, free: 4.227 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.005817, allocations: 12.89 kB / 0.8798 GB, free: 4.215 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.005952, allocations: 117.9 kB / 0.8799 GB, free: 4.074 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.005967, allocations: 384 / 0.8799 GB, free: 4.074 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.42e-05/0.005982, allocations: 4.375 kB / 0.8799 GB, free: 4.07 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001944/0.006176, allocations: 61.67 kB / 0.88 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.006186, allocations: 192 / 0.88 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.006197, allocations: 384 / 0.88 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.006204, allocations: 8.297 kB / 0.88 GB, free: 4 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001414/0.006345, allocations: 35.92 kB / 0.88 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004955/0.006841, allocations: 271.7 kB / 0.8803 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.007007, allocations: 59.03 kB / 0.8804 GB, free: 3.594 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.807e-05/0.007095, allocations: 24.91 kB / 0.8804 GB, free: 3.566 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.007122, allocations: 0 / 0.8804 GB, free: 3.566 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001743/0.007296, allocations: 80.92 kB / 0.8805 GB, free: 3.473 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.007297, allocations: 1.531 kB / 0.8805 GB, free: 3.473 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0003693/0.007667, allocations: 105.6 kB / 0.8806 GB, free: 3.363 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.286e-05/0.007729, allocations: 60.55 kB / 0.8806 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001438/0.007873, allocations: 170.2 kB / 0.8808 GB, free: 3.109 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.007895, allocations: 25.7 kB / 0.8808 GB, free: 3.078 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.055e-05/0.007985, allocations: 142.8 kB / 0.8809 GB, free: 2.934 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.414e-05/0.008019, allocations: 15.91 kB / 0.881 GB, free: 2.918 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.232e-05/0.008072, allocations: 27.38 kB / 0.881 GB, free: 2.883 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002561/0.008328, allocations: 0.4961 MB / 0.8815 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.236e-05/0.0084, allocations: 19.98 kB / 0.8815 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.008503, allocations: 50.73 kB / 0.8815 GB, free: 2.289 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.00867, allocations: 78.67 kB / 0.8816 GB, free: 2.195 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.008672, allocations: 4 kB / 0.8816 GB, free: 2.191 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002257/0.008898, allocations: 97.55 kB / 0.8817 GB, free: 2.09 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.008914, allocations: 7.938 kB / 0.8817 GB, free: 2.082 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.008921, allocations: 4 kB / 0.8817 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.008937, allocations: 0 / 0.8817 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.009047, allocations: 15.94 kB / 0.8817 GB, free: 2.062 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.009058, allocations: 7.984 kB / 0.8817 GB, free: 2.055 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.578e-05/0.009104, allocations: 0 / 0.8817 GB, free: 2.055 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.009117, allocations: 4 kB / 0.8817 GB, free: 2.051 MB / 0.8386 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.0001303/0.009248, allocations: 164.7 kB / 0.8819 GB, free: 1.879 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.729e-05/0.009265, allocations: 7.938 kB / 0.8819 GB, free: 1.871 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002543/0.009519, allocations: 98.03 kB / 0.882 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.009521, allocations: 0 / 0.882 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.009525, allocations: 0 / 0.882 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.009528, allocations: 0 / 0.882 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004446/0.009973, allocations: 349.3 kB / 0.8823 GB, free: 1.383 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.009975, allocations: 0 / 0.8823 GB, free: 1.383 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.766e-05/0.01002, allocations: 7.984 kB / 0.8823 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.01002, allocations: 4 kB / 0.8823 GB, free: 1.371 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.01004, allocations: 4 kB / 0.8824 GB, free: 1.367 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.01004, allocations: 3.938 kB / 0.8824 GB, free: 1.363 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.01004, allocations: 0 / 0.8824 GB, free: 1.363 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002941/0.01034, allocations: 236.2 kB / 0.8826 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.252e-05/0.01035, allocations: 4.016 kB / 0.8826 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.218e-05/0.01037, allocations: 11.98 kB / 0.8826 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.912e-05/0.01045, allocations: 4 kB / 0.8826 GB, free: 1.094 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.041e-05/0.0105, allocations: 3.984 kB / 0.8826 GB, free: 1.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.01052, allocations: 8 kB / 0.8826 GB, free: 1.082 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.898e-05/0.01059, allocations: 127.2 kB / 0.8827 GB, free: 0.957 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.01059, allocations: 0 / 0.8827 GB, free: 0.957 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002394/0.01083, allocations: 12 kB / 0.8827 GB, free: 0.9453 MB / 0.8386 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.0001873/0.01102, allocations: 119.2 kB / 0.8829 GB, free: 0.8203 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002233/0.01124, allocations: 55.66 kB / 0.8829 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.01125, allocations: 0 / 0.8829 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.01135, allocations: 39.8 kB / 0.883 GB, free: 0.7188 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.01163, allocations: 15.92 kB / 0.883 GB, free: 0.7031 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004087/0.01203, allocations: 138.2 kB / 0.8831 GB, free: 0.5391 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.632e-05/0.01211, allocations: 67.28 kB / 0.8832 GB, free: 464 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.614e-05/0.01215, allocations: 7.984 kB / 0.8832 GB, free: 456 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.086e-05/0.01218, allocations: 8.5 kB / 0.8832 GB, free: 448 kB / 0.8386 GB Notification: Performance of SimCode: time 5.11e-07/0.01218, allocations: 4 kB / 0.8832 GB, free: 444 kB / 0.8386 GB Notification: Performance of Templates: time 0.004163/0.01634, allocations: 0.8524 MB / 0.884 GB, free: 15.61 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.617773879901506]