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.001699/0.001699, allocations: 88.72 kB / 19.44 MB, free: 356 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.002115/0.002115, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.543/1.543, allocations: 177.1 MB / 203.1 MB, free: 5.602 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.201/3.201, allocations: 429.6 MB / 0.673 GB, free: 3.891 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.786e-06/2.786e-06, allocations: 0.7656 kB / 0.8776 GB, free: 6.492 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.275e-05/3.554e-05, allocations: 3.156 kB / 0.8776 GB, free: 6.488 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.003122/0.003158, allocations: 0.6733 MB / 0.8782 GB, free: 5.844 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002653/0.005811, allocations: 1.086 MB / 0.8793 GB, free: 4.746 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.143e-05/0.005872, allocations: 4 kB / 0.8793 GB, free: 4.742 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.465e-05/0.005907, allocations: 0 / 0.8793 GB, free: 4.742 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.904e-05/0.005996, allocations: 3.938 kB / 0.8793 GB, free: 4.738 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004315/0.006427, allocations: 49.86 kB / 0.8793 GB, free: 4.691 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001647/0.006592, allocations: 47.84 kB / 0.8794 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.006692, allocations: 4 kB / 0.8794 GB, free: 4.641 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.006843, allocations: 31.95 kB / 0.8794 GB, free: 4.609 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.066e-05/0.006914, allocations: 15.92 kB / 0.8794 GB, free: 4.594 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.377e-05/0.006938, allocations: 4 kB / 0.8794 GB, free: 4.59 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.007056, allocations: 24.92 kB / 0.8795 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.249e-05/0.007088, allocations: 15.97 kB / 0.8795 GB, free: 4.551 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.706e-05/0.007135, allocations: 9.062 kB / 0.8795 GB, free: 4.543 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002304/0.007366, allocations: 71.77 kB / 0.8796 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.007369, allocations: 0 / 0.8796 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.012e-06/0.00737, allocations: 1.125 kB / 0.8796 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.007374, allocations: 0 / 0.8796 GB, free: 4.473 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.0008657/0.00824, allocations: 287.3 kB / 0.8798 GB, free: 4.16 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.008291, allocations: 15.97 kB / 0.8799 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/0.008446, allocations: 13.94 kB / 0.8799 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.008618, allocations: 109.8 kB / 0.88 GB, free: 4 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.008634, allocations: 384 / 0.88 GB, free: 4 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.99e-05/0.008654, allocations: 6.031 kB / 0.88 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.008966, allocations: 62.22 kB / 0.88 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.008979, allocations: 192 / 0.88 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.008997, allocations: 0.875 kB / 0.88 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.009003, allocations: 384 / 0.88 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003157/0.009319, allocations: 53.67 kB / 0.8801 GB, free: 3.879 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006495/0.009969, allocations: 216.4 kB / 0.8803 GB, free: 3.637 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002849/0.01025, allocations: 55.89 kB / 0.8803 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001704/0.01042, allocations: 28.95 kB / 0.8804 GB, free: 3.543 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.01045, allocations: 0.7188 kB / 0.8804 GB, free: 3.543 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003679/0.01082, allocations: 83.91 kB / 0.8805 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/0.01082, allocations: 1.594 kB / 0.8805 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0006985/0.01152, allocations: 121.6 kB / 0.8806 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.347e-05/0.01159, allocations: 57.56 kB / 0.8806 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.01174, allocations: 106.1 kB / 0.8807 GB, free: 3.145 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.01178, allocations: 25.7 kB / 0.8808 GB, free: 3.113 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.828e-05/0.01187, allocations: 84.14 kB / 0.8808 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.879e-05/0.0119, allocations: 15.91 kB / 0.8809 GB, free: 3.012 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.159e-05/0.01199, allocations: 29.7 kB / 0.8809 GB, free: 2.977 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002356/0.01222, allocations: 313.2 kB / 0.8812 GB, free: 2.664 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.01237, allocations: 24.22 kB / 0.8812 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002147/0.01258, allocations: 55.36 kB / 0.8813 GB, free: 2.574 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003517/0.01294, allocations: 77.45 kB / 0.8813 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-06/0.01294, allocations: 4 kB / 0.8813 GB, free: 2.484 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004966/0.01344, allocations: 113.5 kB / 0.8814 GB, free: 2.367 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.01347, allocations: 11.94 kB / 0.8815 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.01347, allocations: 0 / 0.8815 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.01349, allocations: 0 / 0.8815 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.01366, allocations: 15.98 kB / 0.8815 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.01367, allocations: 0 / 0.8815 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.01379, allocations: 15.98 kB / 0.8815 GB, free: 2.324 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.0138, allocations: 0 / 0.8815 GB, free: 2.324 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.0001514/0.01396, allocations: 121.9 kB / 0.8816 GB, free: 2.195 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.315e-05/0.01399, allocations: 7.938 kB / 0.8816 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005121/0.0145, allocations: 102.1 kB / 0.8817 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.01451, allocations: 0 / 0.8817 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.01451, allocations: 0 / 0.8817 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.01452, allocations: 0 / 0.8817 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007661/0.01528, allocations: 314 kB / 0.882 GB, free: 1.734 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.01528, allocations: 4 kB / 0.882 GB, free: 1.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.721e-05/0.01538, allocations: 7.984 kB / 0.882 GB, free: 1.723 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.091e-05/0.01539, allocations: 7.938 kB / 0.882 GB, free: 1.715 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.0154, allocations: 0 / 0.882 GB, free: 1.715 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.01541, allocations: 0 / 0.882 GB, free: 1.715 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.01541, allocations: 0 / 0.882 GB, free: 1.715 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005441/0.01595, allocations: 199.4 kB / 0.8822 GB, free: 1.504 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.016e-05/0.01597, allocations: 7.953 kB / 0.8822 GB, free: 1.496 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.01599, allocations: 192 / 0.8822 GB, free: 1.496 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.01619, allocations: 15.98 kB / 0.8822 GB, free: 1.48 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.01625, allocations: 4 kB / 0.8822 GB, free: 1.477 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.01626, allocations: 0 / 0.8822 GB, free: 1.477 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.911e-05/0.01635, allocations: 87.27 kB / 0.8823 GB, free: 1.391 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/0.01635, allocations: 0 / 0.8823 GB, free: 1.391 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004812/0.01683, allocations: 16 kB / 0.8823 GB, free: 1.375 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.000217/0.01705, allocations: 99.23 kB / 0.8824 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000416/0.01747, allocations: 63.89 kB / 0.8825 GB, free: 1.207 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.01747, allocations: 0 / 0.8825 GB, free: 1.207 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.01766, allocations: 35.92 kB / 0.8825 GB, free: 1.172 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004803/0.01814, allocations: 11.92 kB / 0.8825 GB, free: 1.16 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005313/0.01867, allocations: 136.5 kB / 0.8827 GB, free: 1 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000108/0.01878, allocations: 67.47 kB / 0.8827 GB, free: 0.9141 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.69e-05/0.01883, allocations: 8 kB / 0.8827 GB, free: 0.9062 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.683e-05/0.01887, allocations: 12.5 kB / 0.8828 GB, free: 0.8945 MB / 0.8386 GB Notification: Performance of SimCode: time 6.51e-07/0.01887, allocations: 0 / 0.8828 GB, free: 0.8945 MB / 0.8386 GB Notification: Performance of Templates: time 0.005692/0.02457, allocations: 0.8433 MB / 0.8836 GB, free: 76 kB / 0.8386 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 800] 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.35053769708611]