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.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.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.001247/0.001247, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001457/0.001458, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.874/2.874, allocations: 462.6 MB / 0.736 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000427/0.0004271, allocations: 15.16 kB / 0.9021 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3822, allocations: 159.6 MB / 1.058 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001804/0.384, allocations: 0.5781 MB / 1.059 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002397/0.3864, allocations: 1.167 MB / 1.06 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.029e-05/0.3866, allocations: 0 / 1.06 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.304e-05/0.3866, allocations: 7.922 kB / 1.06 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001125/0.3867, allocations: 7.875 kB / 1.06 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007136/0.3874, allocations: 130.9 kB / 1.06 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002493/0.3877, allocations: 143.6 kB / 1.06 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.3879, allocations: 29.09 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002439/0.3881, allocations: 55.83 kB / 1.06 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001352/0.3883, allocations: 47.81 kB / 1.06 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.643e-05/0.3883, allocations: 11.94 kB / 1.06 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.735e-05/0.3884, allocations: 19.98 kB / 1.06 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.97e-05/0.3885, allocations: 23.84 kB / 1.06 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.031e-05/0.3886, allocations: 41.7 kB / 1.06 GB, free: 3 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002205/0.3888, allocations: 112 kB / 1.06 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3888, allocations: 4 kB / 1.06 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3888, allocations: 0 / 1.06 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.807e-06/0.3888, allocations: 0 / 1.06 GB, free: 2.887 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.0008255/0.3897, allocations: 432.6 kB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3897, allocations: 12.03 kB / 1.061 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.807e-05/0.3898, allocations: 19.81 kB / 1.061 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007393/0.3906, allocations: 260.2 kB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.464e-05/0.3906, allocations: 8 kB / 1.061 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.738e-05/0.3907, allocations: 15.94 kB / 1.061 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003294/0.391, allocations: 93.64 kB / 1.061 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.3911, allocations: 0 / 1.061 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.3911, allocations: 7.938 kB / 1.061 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.3911, allocations: 4 kB / 1.061 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002492/0.3914, allocations: 47.95 kB / 1.061 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009915/0.3924, allocations: 400.4 kB / 1.062 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001604/0.3925, allocations: 42.55 kB / 1.062 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/0.3927, allocations: 32.97 kB / 1.062 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.3927, allocations: 0 / 1.062 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003954/0.3931, allocations: 99.28 kB / 1.062 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.813e-06/0.3931, allocations: 4 kB / 1.062 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0005956/0.3937, allocations: 149.3 kB / 1.062 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.3938, allocations: 55.41 kB / 1.062 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.394, allocations: 143.4 kB / 1.062 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.394, allocations: 25.7 kB / 1.062 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.3942, allocations: 116 kB / 1.062 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.3942, allocations: 28.06 kB / 1.062 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.262e-05/0.3942, allocations: 4 kB / 1.062 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.3944, allocations: 322.8 kB / 1.063 GB, free: 404 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002547/0.3947, allocations: 51.95 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003368/0.395, allocations: 138.2 kB / 1.063 GB, free: 176 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/0.3954, allocations: 101.6 kB / 1.063 GB, free: 68 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.3954, allocations: 0 / 1.063 GB, free: 68 kB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0008403/0.3963, allocations: 247.2 kB / 1.063 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.913e-05/0.3963, allocations: 41.66 kB / 1.063 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.3964, allocations: 4 kB / 1.063 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.694e-05/0.3964, allocations: 4 kB / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.3966, allocations: 27.92 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.648e-05/0.3966, allocations: 7.984 kB / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003712/0.397, allocations: 51.88 kB / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-05/0.397, allocations: 23.98 kB / 1.063 GB, free: 15.64 MB / 0.8262 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 ($whenCondition4,$PRE.booleanPulse.y,booleanPulse.y,$whenCondition1,$whenCondition2,$whenCondition3,sampleTrigger.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001421/0.3972, allocations: 128.2 kB / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.51e-05/0.3972, allocations: 7.906 kB / 1.063 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.134e-05/0.3973, allocations: 20.7 kB / 1.063 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.3973, allocations: 4 kB / 1.063 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3973, allocations: 3.938 kB / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.3973, allocations: 3.984 kB / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008751/0.3982, allocations: 402.3 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3982, allocations: 7.953 kB / 1.064 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.752e-05/0.3983, allocations: 15.98 kB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.471e-06/0.3983, allocations: 0 / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.127e-05/0.3984, allocations: 8 kB / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3984, allocations: 0 / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3984, allocations: 0 / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004503/0.3988, allocations: 251.2 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.126e-05/0.3989, allocations: 88.97 kB / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.3989, allocations: 4.047 kB / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.399, allocations: 11.98 kB / 1.064 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.636e-05/0.3991, allocations: 12.17 kB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.3991, allocations: 4 kB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.928e-05/0.3992, allocations: 108.6 kB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.11e-07/0.3992, allocations: 4 kB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003357/0.3996, allocations: 28 kB / 1.064 GB, free: 14.45 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000305/0.3999, allocations: 111.2 kB / 1.064 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004726/0.4004, allocations: 187.2 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4004, allocations: 0 / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001317/0.4005, allocations: 44.67 kB / 1.065 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.4009, allocations: 23.89 kB / 1.065 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009983/0.4019, allocations: 301.7 kB / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000797/0.4027, allocations: 0.7086 MB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.437e-05/0.4028, allocations: 12.66 kB / 1.066 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.676e-05/0.4028, allocations: 15.44 kB / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of SimCode: time 4.41e-07/0.4028, allocations: 0 / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of Templates: time 0.006044/0.4089, allocations: 1.49 MB / 1.067 GB, free: 11.52 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