Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001864/0.001864, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.39/1.39, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.66/2.66, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 70.25 kB / 0.8984 GB, free: 37.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3746, allocations: 157.4 MB / 1.052 GB, free: 8.887 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.003213/0.3779, allocations: 0.944 MB / 1.053 GB, free: 7.941 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002444/0.3804, allocations: 1.205 MB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.042e-05/0.3805, allocations: 0 / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.206e-05/0.3806, allocations: 7.938 kB / 1.054 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.3807, allocations: 19.84 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007286/0.3815, allocations: 123 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002472/0.3817, allocations: 159.6 kB / 1.055 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.3819, allocations: 33.11 kB / 1.055 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.3821, allocations: 59.78 kB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001467/0.3822, allocations: 59.73 kB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.257e-05/0.3823, allocations: 8 kB / 1.055 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.3824, allocations: 23.98 kB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.592e-05/0.3825, allocations: 23.91 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.3826, allocations: 59.7 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003298/0.383, allocations: 163.8 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.383, allocations: 0 / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.114e-06/0.383, allocations: 0 / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.142e-05/0.383, allocations: 0 / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009634/0.384, allocations: 452.8 kB / 1.055 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.3841, allocations: 12.03 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.391e-05/0.3842, allocations: 20.77 kB / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008384/0.385, allocations: 261.1 kB / 1.056 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.385, allocations: 8.375 kB / 1.056 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.7e-05/0.3851, allocations: 12.38 kB / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003681/0.3855, allocations: 90.2 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.3855, allocations: 3.938 kB / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.3856, allocations: 0 / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.427e-06/0.3856, allocations: 3.984 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002703/0.3859, allocations: 43.97 kB / 1.056 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.3869, allocations: 388.5 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.3871, allocations: 46.48 kB / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.3873, allocations: 20.84 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.3873, allocations: 7.984 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004108/0.3877, allocations: 103.4 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.944e-06/0.3877, allocations: 0 / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0006762/0.3884, allocations: 133.5 kB / 1.056 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/0.3885, allocations: 59.34 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001711/0.3887, allocations: 135.2 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.956e-05/0.3887, allocations: 37.69 kB / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.3888, allocations: 112 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.507e-05/0.3889, allocations: 27.61 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.389, allocations: 45.69 kB / 1.057 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3892, allocations: 326.8 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002625/0.3895, allocations: 43.97 kB / 1.057 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003544/0.3899, allocations: 133.9 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004959/0.3904, allocations: 208.6 kB / 1.058 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3904, allocations: 0 / 1.058 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0008208/0.3912, allocations: 243 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.735e-05/0.3913, allocations: 38.02 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.3913, allocations: 0 / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.3913, allocations: 4 kB / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.3915, allocations: 31.91 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.542e-05/0.3915, allocations: 11.88 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003993/0.392, allocations: 44.19 kB / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.35e-05/0.392, allocations: 15.98 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001673/0.3922, allocations: 125.8 kB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.103e-05/0.3922, allocations: 7.906 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.621e-05/0.3923, allocations: 20.7 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3923, allocations: 0 / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.3923, allocations: 3.938 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3923, allocations: 4 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008581/0.3932, allocations: 402.3 kB / 1.058 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.3932, allocations: 0 / 1.058 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.642e-05/0.3933, allocations: 15.92 kB / 1.058 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.3933, allocations: 3.938 kB / 1.058 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.3934, allocations: 7.984 kB / 1.058 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.3934, allocations: 4 kB / 1.058 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.614e-06/0.3934, allocations: 0 / 1.058 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004256/0.3938, allocations: 235.3 kB / 1.059 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.948e-05/0.3939, allocations: 88.98 kB / 1.059 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.3939, allocations: 4 kB / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.487e-05/0.394, allocations: 8 kB / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.551e-05/0.3941, allocations: 11.98 kB / 1.059 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.3941, allocations: 7.984 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.392e-05/0.3941, allocations: 100.8 kB / 1.059 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3941, allocations: 4 kB / 1.059 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002997/0.3944, allocations: 35.91 kB / 1.059 GB, free: 1.441 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000197/0.3947, allocations: 107.2 kB / 1.059 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003996/0.3951, allocations: 187.3 kB / 1.059 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3951, allocations: 7.938 kB / 1.059 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.3952, allocations: 35.97 kB / 1.059 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003104/0.3955, allocations: 17.83 kB / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005536/0.3961, allocations: 302.6 kB / 1.06 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.3964, allocations: 0.7048 MB / 1.06 GB, free: 20 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.291e-05/0.3965, allocations: 16.64 kB / 1.06 GB, free: 0 / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.614e-05/0.3965, allocations: 15.48 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of SimCode: time 5.31e-07/0.3965, allocations: 0 / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of Templates: time 0.004315/0.4008, allocations: 1.534 MB / 1.062 GB, free: 14.48 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches