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.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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 107 kB / 16.37 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 192.9 kB / 17.31 MB, free: 5.816 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.452/1.452, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.67/2.67, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 67.62 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3286, allocations: 153 MB / 1.027 GB, free: 2.082 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002223/0.3309, allocations: 0.6776 MB / 1.027 GB, free: 1.41 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001359/0.3323, allocations: 1.05 MB / 1.028 GB, free: 352 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.677e-05/0.3324, allocations: 0 / 1.028 GB, free: 352 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.585e-05/0.3324, allocations: 3.938 kB / 1.028 GB, free: 348 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.605e-05/0.3325, allocations: 7.922 kB / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003019/0.3328, allocations: 47.83 kB / 1.028 GB, free: 292 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 9.573e-05/0.3329, allocations: 39.92 kB / 1.029 GB, free: 252 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.333, allocations: 15.98 kB / 1.029 GB, free: 236 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.05e-05/0.3331, allocations: 23.91 kB / 1.029 GB, free: 212 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.019e-05/0.3332, allocations: 15.92 kB / 1.029 GB, free: 196 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.524e-05/0.3332, allocations: 8 kB / 1.029 GB, free: 188 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.669e-05/0.3332, allocations: 19.98 kB / 1.029 GB, free: 168 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.985e-05/0.3333, allocations: 7.984 kB / 1.029 GB, free: 160 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.238e-05/0.3333, allocations: 23.88 kB / 1.029 GB, free: 136 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.3335, allocations: 55.78 kB / 1.029 GB, free: 80 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3335, allocations: 4 kB / 1.029 GB, free: 76 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.392e-06/0.3335, allocations: 0 / 1.029 GB, free: 76 kB / 0.795 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.3335, allocations: 0 / 1.029 GB, free: 76 kB / 0.795 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.000644/0.3341, allocations: 363.4 kB / 1.029 GB, free: 15.67 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.3342, allocations: 12.03 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.698e-05/0.3342, allocations: 0.9375 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.3343, allocations: 172.3 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.3344, allocations: 4.375 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.679e-05/0.3344, allocations: 4.375 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002031/0.3346, allocations: 66.2 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.3346, allocations: 4.125 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.3346, allocations: 11.88 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.3346, allocations: 4 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.3348, allocations: 35.95 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000467/0.3353, allocations: 280.8 kB / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.3355, allocations: 62.48 kB / 1.03 GB, free: 14.92 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.3356, allocations: 32.91 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.3356, allocations: 0 / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001694/0.3358, allocations: 75.38 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.193e-06/0.3358, allocations: 0 / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0003988/0.3362, allocations: 121.5 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.935e-05/0.3363, allocations: 51.41 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.338e-05/0.3363, allocations: 109.8 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.3364, allocations: 29.64 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.158e-05/0.3364, allocations: 84.14 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.3364, allocations: 11.81 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.612e-05/0.3365, allocations: 25.7 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.52e-05/0.3366, allocations: 318.8 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.703e-05/0.3367, allocations: 28.05 kB / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.3368, allocations: 51.39 kB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002154/0.337, allocations: 83.27 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.337, allocations: 0 / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002516/0.3373, allocations: 105.5 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.3373, allocations: 4 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3373, allocations: 4 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.3373, allocations: 4.094 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.3375, allocations: 19.92 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.3375, allocations: 4.156 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.6e-05/0.3375, allocations: 8.484 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.3376, allocations: 4 kB / 1.031 GB, free: 13.67 MB / 0.8106 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.612e-05/0.3377, allocations: 125.7 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.041e-05/0.3377, allocations: 0 / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002847/0.338, allocations: 110 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.338, allocations: 3.938 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.338, allocations: 0 / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.338, allocations: 3.984 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004452/0.3384, allocations: 350.4 kB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.3385, allocations: 7.922 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.757e-05/0.3385, allocations: 4 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3385, allocations: 4 kB / 1.031 GB, free: 13 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.3386, allocations: 4 kB / 1.031 GB, free: 13 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/0.3386, allocations: 7.969 kB / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3386, allocations: 3.938 kB / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002626/0.3388, allocations: 187.5 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.222e-05/0.3389, allocations: 85.02 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.3389, allocations: 3.984 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.339, allocations: 15.94 kB / 1.032 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.5e-05/0.3391, allocations: 7.984 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.3391, allocations: 3.938 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.465e-05/0.3391, allocations: 87.28 kB / 1.032 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3391, allocations: 0 / 1.032 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002434/0.3394, allocations: 11.98 kB / 1.032 GB, free: 12.56 MB / 0.8106 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.0001563/0.3396, allocations: 103.2 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002628/0.3398, allocations: 68.27 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3399, allocations: 0 / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.34, allocations: 35.91 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002663/0.3402, allocations: 8.125 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003527/0.3406, allocations: 138.3 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.3409, allocations: 0.6807 MB / 1.033 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.398e-05/0.3409, allocations: 4 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.478e-05/0.341, allocations: 11.42 kB / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of SimCode: time 3.51e-07/0.341, allocations: 0 / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of Templates: time 0.003277/0.3442, allocations: 0.7833 MB / 1.034 GB, free: 10.68 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile (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=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches