Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_10_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.001227/0.001227, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001242/0.001242, allocations: 194.2 kB / 16.25 MB, free: 6.621 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.216/1.216, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.258/2.258, allocations: 437.1 MB / 0.7101 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 71.89 kB / 0.8689 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4997/0.5008, allocations: 151.6 MB / 1.017 GB, free: 2.676 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001828/0.5027, allocations: 0.9426 MB / 1.018 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001131/0.5039, allocations: 1.179 MB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.101e-05/0.5039, allocations: 0 / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.514e-05/0.504, allocations: 3.938 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.488e-05/0.504, allocations: 15.86 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004008/0.5044, allocations: 135.4 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.5046, allocations: 175.7 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.5047, allocations: 41.02 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.621e-05/0.5048, allocations: 67.83 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.482e-05/0.5049, allocations: 63.73 kB / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.345e-05/0.5049, allocations: 16 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.565e-05/0.505, allocations: 35.97 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.375e-05/0.505, allocations: 23.88 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.251e-05/0.5051, allocations: 63.7 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.5053, allocations: 169.8 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.5053, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.292e-06/0.5053, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.5053, allocations: 4 kB / 1.02 GB, free: 15.74 MB / 0.7794 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.0005483/0.5058, allocations: 456.6 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 2.973e-05/0.5059, allocations: 12.03 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.423e-05/0.5059, allocations: 38.75 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.588e-05/0.506, allocations: 24.77 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004568/0.5064, allocations: 245.8 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.5065, allocations: 4.375 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.111e-05/0.5065, allocations: 16.31 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.5067, allocations: 101.9 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.52e-06/0.5067, allocations: 3.938 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.5067, allocations: 7.984 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.5067, allocations: 0 / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001603/0.5069, allocations: 43.95 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005888/0.5075, allocations: 384.5 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001048/0.5076, allocations: 42.55 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.773e-05/0.5077, allocations: 24.97 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.5077, allocations: 0 / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002012/0.5079, allocations: 107.2 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.5079, allocations: 0 / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0003543/0.5083, allocations: 133.5 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.5083, allocations: 55.34 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.091e-05/0.5084, allocations: 139.5 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.5085, allocations: 37.69 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.731e-05/0.5085, allocations: 111.9 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/0.5086, allocations: 27.7 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.056e-05/0.5086, allocations: 49.69 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.161e-05/0.5087, allocations: 318.8 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.5089, allocations: 47.97 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.5091, allocations: 138.8 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002708/0.5093, allocations: 200.7 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5094, allocations: 0 / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004255/0.5098, allocations: 247.1 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.5098, allocations: 34.08 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.5098, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.5098, allocations: 4 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.51, allocations: 39.84 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.51, allocations: 7.938 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002045/0.5102, allocations: 35.94 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.5102, allocations: 23.98 kB / 1.023 GB, free: 12.3 MB / 0.7794 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 8.527e-05/0.5103, allocations: 122.3 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.806e-05/0.5103, allocations: 11.91 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.116e-05/0.5104, allocations: 16.7 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/0.5104, allocations: 7.938 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.5104, allocations: 0 / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.5104, allocations: 0 / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004797/0.5109, allocations: 402.4 kB / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.5109, allocations: 3.984 kB / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.473e-05/0.511, allocations: 11.94 kB / 1.023 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.511, allocations: 0 / 1.023 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.511, allocations: 8.031 kB / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.511, allocations: 0 / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.511, allocations: 3.984 kB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003443/0.5114, allocations: 243.2 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.436e-05/0.5114, allocations: 88.98 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.5114, allocations: 4 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.695e-05/0.5115, allocations: 11.94 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.939e-05/0.5116, allocations: 7.984 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.5116, allocations: 4 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.238e-05/0.5116, allocations: 108.8 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5116, allocations: 0 / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002662/0.5119, allocations: 35.94 kB / 1.024 GB, free: 11.14 MB / 0.7794 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.0005882/0.5125, allocations: 0.7943 MB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003336/0.5128, allocations: 183.1 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.614e-06/0.5129, allocations: 0 / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.513, allocations: 36.72 kB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002635/0.5132, allocations: 27.84 kB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.5152, allocations: 1.974 MB / 1.027 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.5154, allocations: 0.7084 MB / 1.027 GB, free: 7.203 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.743e-05/0.5155, allocations: 16.64 kB / 1.028 GB, free: 7.188 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.187e-05/0.5155, allocations: 39.42 kB / 1.028 GB, free: 7.148 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.5156, allocations: 0 / 1.028 GB, free: 7.148 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.17/1.686, allocations: 2.992 MB / 1.03 GB, free: 4.301 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/1.686, allocations: 221.1 kB / 1.031 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.211/3.897, allocations: 3.938 kB / 1.031 GB, free: 4.039 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches