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.001529/0.001528, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002377/0.002378, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.555/1.555, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.894/2.894, allocations: 461.9 MB / 0.7343 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 66.78 kB / 0.8986 GB, free: 37.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4175/0.4189, allocations: 157.4 MB / 1.052 GB, free: 8.738 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002309/0.4212, allocations: 0.9401 MB / 1.053 GB, free: 7.797 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001607/0.4229, allocations: 1.19 MB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.089e-05/0.4229, allocations: 8 kB / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.486e-05/0.423, allocations: 7.875 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.773e-05/0.4231, allocations: 11.88 kB / 1.054 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005525/0.4237, allocations: 131 kB / 1.055 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002143/0.4239, allocations: 167.6 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.4241, allocations: 41.05 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.4242, allocations: 71.81 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.724e-05/0.4243, allocations: 55.75 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.168e-05/0.4243, allocations: 16 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.867e-05/0.4244, allocations: 31.98 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.422e-05/0.4245, allocations: 27.91 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.492e-05/0.4245, allocations: 63.7 kB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.4248, allocations: 171.8 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.4248, allocations: 0 / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.333e-06/0.4248, allocations: 0 / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.4248, allocations: 0 / 1.055 GB, free: 5.809 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.0007561/0.4256, allocations: 456.7 kB / 1.056 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.4256, allocations: 12.62 kB / 1.056 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.284e-05/0.4257, allocations: 12.84 kB / 1.056 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005658/0.4263, allocations: 261.6 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.4263, allocations: 8.375 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.4263, allocations: 8.375 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/0.4266, allocations: 90.2 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.4266, allocations: 7.875 kB / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.4266, allocations: 4 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.535e-06/0.4266, allocations: 4 kB / 1.056 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.4268, allocations: 47.95 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008003/0.4276, allocations: 388.5 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.4277, allocations: 42.5 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.4278, allocations: 28.95 kB / 1.056 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.4279, allocations: 0 / 1.056 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.4281, allocations: 95.27 kB / 1.057 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 3.076e-06/0.4282, allocations: 3.984 kB / 1.057 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0004256/0.4286, allocations: 137.4 kB / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.4286, allocations: 55.34 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001365/0.4288, allocations: 147.4 kB / 1.057 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/0.4288, allocations: 25.7 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.403e-05/0.4289, allocations: 116 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.987e-05/0.4289, allocations: 31.59 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.909e-05/0.429, allocations: 49.7 kB / 1.057 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.4292, allocations: 322.8 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.4293, allocations: 51.95 kB / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001994/0.4295, allocations: 135 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003144/0.4298, allocations: 196.6 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.4299, allocations: 4 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004741/0.4303, allocations: 238.9 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.261e-05/0.4304, allocations: 37.7 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.4304, allocations: 4.375 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.4304, allocations: 8 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.4305, allocations: 23.92 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.4306, allocations: 7.938 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/0.4308, allocations: 39.8 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-05/0.4308, allocations: 20 kB / 1.058 GB, free: 2.426 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.000105/0.4309, allocations: 129.8 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.706e-05/0.431, allocations: 11.91 kB / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.917e-05/0.431, allocations: 12.72 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.431, allocations: 0 / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/0.431, allocations: 3.938 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.431, allocations: 4 kB / 1.058 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005736/0.4316, allocations: 402.2 kB / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4316, allocations: 4 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.229e-05/0.4317, allocations: 15.92 kB / 1.059 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.4317, allocations: 3.938 kB / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.4318, allocations: 8 kB / 1.059 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.4318, allocations: 480 / 1.059 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.4318, allocations: 0 / 1.059 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004075/0.4322, allocations: 243.2 kB / 1.059 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.534e-05/0.4322, allocations: 88.95 kB / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.181e-05/0.4323, allocations: 0 / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.193e-05/0.4324, allocations: 12.03 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.545e-05/0.4324, allocations: 7.984 kB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.4324, allocations: 4 kB / 1.059 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.728e-05/0.4325, allocations: 109.3 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of sort global known variables: time 9e-08/0.4325, allocations: 0 / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002968/0.4328, allocations: 35.91 kB / 1.059 GB, free: 1.25 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.0002103/0.433, allocations: 111.2 kB / 1.059 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004132/0.4335, allocations: 191.1 kB / 1.059 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4335, allocations: 0 / 1.059 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.4336, allocations: 36.67 kB / 1.059 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.4339, allocations: 19.98 kB / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005831/0.4345, allocations: 293 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.4348, allocations: 0.7084 MB / 1.06 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.64e-05/0.4349, allocations: 16.64 kB / 1.061 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.099e-05/0.4349, allocations: 15.44 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.4349, allocations: 0 / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of Templates: time 0.00455/0.4395, allocations: 1.599 MB / 1.062 GB, free: 14.22 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