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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007277/0.007277, allocations: 100.5 kB / 15.73 MB, free: 5.98 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.001744/0.001745, allocations: 200.3 kB / 16.68 MB, free: 5.906 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.604/2.604, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001517, allocations: 67.84 kB / 1.054 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.049/1.051, allocations: 157.4 MB / 1.207 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002441/1.053, allocations: 0.8825 MB / 1.208 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002133/1.056, allocations: 1.174 MB / 1.209 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001402/1.056, allocations: 0 / 1.209 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 5.951e-05/1.056, allocations: 7.875 kB / 1.209 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001439/1.056, allocations: 19.8 kB / 1.209 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007802/1.057, allocations: 155 kB / 1.21 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003556/1.057, allocations: 167.7 kB / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/1.057, allocations: 45.08 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/1.058, allocations: 59.83 kB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001763/1.058, allocations: 75.72 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.845e-05/1.058, allocations: 12 kB / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.08e-05/1.058, allocations: 35.98 kB / 1.21 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.374e-05/1.058, allocations: 19.92 kB / 1.21 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 8.794e-05/1.058, allocations: 67.7 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002565/1.058, allocations: 169.8 kB / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/1.058, allocations: 0 / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.813e-06/1.058, allocations: 4 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.662e-06/1.058, allocations: 0 / 1.21 GB, free: 10.77 MB / 0.9356 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.0007383/1.059, allocations: 456.7 kB / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/1.059, allocations: 12.03 kB / 1.211 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.071e-05/1.059, allocations: 42.69 kB / 1.211 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.617e-05/1.059, allocations: 16.75 kB / 1.211 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005457/1.06, allocations: 256.2 kB / 1.211 GB, free: 9.902 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/1.06, allocations: 8.375 kB / 1.211 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.084e-05/1.06, allocations: 12.38 kB / 1.211 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000256/1.06, allocations: 101.9 kB / 1.211 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/1.06, allocations: 0 / 1.211 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/1.06, allocations: 0 / 1.211 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/1.06, allocations: 0 / 1.211 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/1.06, allocations: 47.95 kB / 1.211 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000867/1.061, allocations: 388.4 kB / 1.211 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/1.061, allocations: 38.56 kB / 1.211 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/1.061, allocations: 24.83 kB / 1.211 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/1.062, allocations: 4 kB / 1.211 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003701/1.062, allocations: 103.4 kB / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 2.124e-06/1.062, allocations: 0 / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0004707/1.062, allocations: 133.5 kB / 1.212 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/1.062, allocations: 55.34 kB / 1.212 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/1.063, allocations: 148 kB / 1.212 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.922e-05/1.063, allocations: 33.7 kB / 1.212 GB, free: 8.715 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.592e-05/1.063, allocations: 104 kB / 1.212 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.914e-05/1.063, allocations: 39.55 kB / 1.212 GB, free: 8.57 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.283e-05/1.063, allocations: 41.7 kB / 1.212 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001183/1.063, allocations: 322.8 kB / 1.212 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001654/1.063, allocations: 47.95 kB / 1.212 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/1.063, allocations: 131.1 kB / 1.213 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003487/1.064, allocations: 204.6 kB / 1.213 GB, free: 7.738 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/1.064, allocations: 3.938 kB / 1.213 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005015/1.064, allocations: 243.5 kB / 1.213 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.642e-05/1.064, allocations: 43.94 kB / 1.213 GB, free: 7.438 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/1.064, allocations: 0 / 1.213 GB, free: 7.438 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/1.064, allocations: 4 kB / 1.213 GB, free: 7.434 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/1.064, allocations: 35.8 kB / 1.213 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/1.064, allocations: 4 kB / 1.213 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/1.065, allocations: 35.95 kB / 1.213 GB, free: 7.359 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/1.065, allocations: 12 kB / 1.213 GB, free: 7.348 MB / 0.9356 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.000128/1.065, allocations: 140.4 kB / 1.213 GB, free: 7.203 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/1.065, allocations: 7.906 kB / 1.213 GB, free: 7.195 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.398e-05/1.065, allocations: 12.72 kB / 1.213 GB, free: 7.176 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.257e-06/1.065, allocations: 3.938 kB / 1.213 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.065, allocations: 0 / 1.213 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/1.065, allocations: 4.031 kB / 1.213 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005988/1.066, allocations: 402.3 kB / 1.214 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/1.066, allocations: 4 kB / 1.214 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.553e-05/1.066, allocations: 19.92 kB / 1.214 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/1.066, allocations: 0 / 1.214 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/1.066, allocations: 4 kB / 1.214 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/1.066, allocations: 4 kB / 1.214 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.066, allocations: 3.938 kB / 1.214 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004367/1.066, allocations: 239.3 kB / 1.214 GB, free: 6.434 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.861e-05/1.066, allocations: 92.89 kB / 1.214 GB, free: 6.324 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.072e-05/1.066, allocations: 4 kB / 1.214 GB, free: 6.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.263e-05/1.066, allocations: 8.031 kB / 1.214 GB, free: 6.312 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.59e-05/1.066, allocations: 11.98 kB / 1.214 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/1.066, allocations: 0 / 1.214 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.942e-05/1.066, allocations: 105.5 kB / 1.214 GB, free: 6.199 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/1.066, allocations: 0 / 1.214 GB, free: 6.199 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002994/1.067, allocations: 39.92 kB / 1.214 GB, free: 6.16 MB / 0.9356 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.0007713/1.068, allocations: 0.7904 MB / 1.215 GB, free: 5.344 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004272/1.068, allocations: 183.2 kB / 1.215 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/1.068, allocations: 0 / 1.215 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001319/1.068, allocations: 43.91 kB / 1.215 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/1.069, allocations: 20.67 kB / 1.215 GB, free: 5.09 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002822/1.071, allocations: 1.963 MB / 1.217 GB, free: 2.961 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003595/1.072, allocations: 0.7045 MB / 1.218 GB, free: 2.23 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.497e-05/1.072, allocations: 12.66 kB / 1.218 GB, free: 2.219 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.638e-05/1.072, allocations: 35.42 kB / 1.218 GB, free: 2.188 MB / 0.9356 GB Notification: Performance of SimCode: time 4.31e-07/1.072, allocations: 0 / 1.218 GB, free: 2.188 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02225/1.094, allocations: 3.233 MB / 1.221 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.522/8.616, allocations: 8.375 kB / 1.221 GB, free: 15.1 MB / 0.9512 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > 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/jenkins1/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