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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0008601/0.0008601, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.005074/0.005074, allocations: 173.8 kB / 16.27 MB, free: 6.676 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.223/1.223, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.368/2.368, allocations: 437.8 MB / 0.7121 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003142/0.0003142, allocations: 12 kB / 0.873 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5514/0.5517, allocations: 153.8 MB / 1.023 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.0009089/0.5527, allocations: 0.6077 MB / 1.024 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001341/0.554, allocations: 1.175 MB / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.288e-05/0.5541, allocations: 0 / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.914e-05/0.5541, allocations: 7.938 kB / 1.025 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.099e-05/0.5542, allocations: 19.84 kB / 1.025 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004402/0.5546, allocations: 126.7 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001579/0.5548, allocations: 151.7 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.5549, allocations: 45.02 kB / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.903e-05/0.555, allocations: 51.78 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.048e-05/0.5551, allocations: 59.73 kB / 1.025 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.316e-05/0.5552, allocations: 8 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.972e-05/0.5552, allocations: 15.98 kB / 1.025 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.539e-05/0.5553, allocations: 23.86 kB / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.341e-05/0.5553, allocations: 81.41 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001701/0.5555, allocations: 157.8 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.5555, allocations: 0 / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.272e-06/0.5555, allocations: 0 / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.612e-06/0.5555, allocations: 0 / 1.026 GB, free: 13.27 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.000522/0.5561, allocations: 432.8 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.5561, allocations: 8.031 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.548e-05/0.5561, allocations: 42.73 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.399e-05/0.5562, allocations: 16.75 kB / 1.026 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005065/0.5567, allocations: 266.1 kB / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.5567, allocations: 8.375 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.573e-05/0.5568, allocations: 16.36 kB / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002054/0.557, allocations: 97.91 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/0.557, allocations: 3.938 kB / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.557, allocations: 7.984 kB / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.557, allocations: 0 / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.5572, allocations: 59.89 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006131/0.5578, allocations: 384.5 kB / 1.027 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001165/0.558, allocations: 50.48 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.305e-05/0.5581, allocations: 28.84 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.56e-05/0.5581, allocations: 0 / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002026/0.5583, allocations: 99.47 kB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.5583, allocations: 0 / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004018/0.5587, allocations: 149.5 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.48e-05/0.5588, allocations: 59.34 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001178/0.5589, allocations: 145.7 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.5589, allocations: 29.7 kB / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.249e-05/0.559, allocations: 116.4 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.559, allocations: 27.7 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-05/0.5591, allocations: 25.7 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.729e-05/0.5591, allocations: 322.8 kB / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.5593, allocations: 51.91 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.5595, allocations: 141.6 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.5598, allocations: 208.6 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5598, allocations: 0 / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004645/0.5603, allocations: 251 kB / 1.029 GB, free: 9.957 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/0.5603, allocations: 33.7 kB / 1.029 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.5603, allocations: 4.359 kB / 1.029 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.5604, allocations: 12.03 kB / 1.029 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.5605, allocations: 31.86 kB / 1.029 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.5605, allocations: 4 kB / 1.029 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.5607, allocations: 51.88 kB / 1.029 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.348e-05/0.5608, allocations: 15.98 kB / 1.029 GB, free: 9.801 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 9.797e-05/0.5609, allocations: 133.7 kB / 1.029 GB, free: 9.66 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.577e-05/0.5609, allocations: 7.906 kB / 1.029 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.085e-05/0.5609, allocations: 16.7 kB / 1.029 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.5609, allocations: 3.938 kB / 1.029 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.5609, allocations: 0 / 1.029 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.561, allocations: 4 kB / 1.029 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005108/0.5615, allocations: 418.2 kB / 1.029 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.5615, allocations: 0 / 1.029 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.213e-05/0.5616, allocations: 19.94 kB / 1.029 GB, free: 9.145 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.5616, allocations: 3.984 kB / 1.029 GB, free: 9.141 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.178e-06/0.5616, allocations: 4 kB / 1.029 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.5616, allocations: 3.984 kB / 1.029 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.5616, allocations: 0 / 1.029 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003874/0.562, allocations: 251.4 kB / 1.029 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.61e-05/0.5621, allocations: 88.95 kB / 1.03 GB, free: 8.766 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.796e-05/0.5621, allocations: 4 kB / 1.03 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.737e-05/0.5622, allocations: 16.17 kB / 1.03 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.978e-05/0.5622, allocations: 4 kB / 1.03 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-06/0.5622, allocations: 11.92 kB / 1.03 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.898e-05/0.5623, allocations: 100.8 kB / 1.03 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5623, allocations: 4 kB / 1.03 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002765/0.5626, allocations: 39.84 kB / 1.03 GB, free: 8.59 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.0006646/0.5633, allocations: 0.8059 MB / 1.031 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003599/0.5636, allocations: 187.6 kB / 1.031 GB, free: 7.562 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.5636, allocations: 0 / 1.031 GB, free: 7.562 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.5638, allocations: 43.91 kB / 1.031 GB, free: 7.52 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002788/0.564, allocations: 26.64 kB / 1.031 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.5662, allocations: 2.015 MB / 1.033 GB, free: 5.324 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.5664, allocations: 0.7045 MB / 1.033 GB, free: 4.594 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.612e-05/0.5665, allocations: 16.64 kB / 1.033 GB, free: 4.578 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.136e-05/0.5666, allocations: 39.42 kB / 1.033 GB, free: 4.539 MB / 0.7794 GB Notification: Performance of SimCode: time 3.11e-07/0.5666, allocations: 480 / 1.033 GB, free: 4.539 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.229/1.796, allocations: 2.835 MB / 1.036 GB, free: 1.867 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002309/1.796, allocations: 219.4 kB / 1.036 GB, free: 1.613 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.715/3.512, allocations: 0 / 1.036 GB, free: 1.613 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