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.001077/0.001077, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.282/1.282, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.411/2.411, allocations: 437 MB / 0.7104 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 63.91 kB / 0.8694 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5303/0.5316, allocations: 151.6 MB / 1.017 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002066/0.5337, allocations: 0.8875 MB / 1.018 GB, free: 1.633 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001438/0.5352, allocations: 1.175 MB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.007e-05/0.5353, allocations: 0 / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.841e-05/0.5353, allocations: 11.86 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.264e-05/0.5354, allocations: 19.8 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004874/0.5359, allocations: 143.3 kB / 1.02 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001922/0.5361, allocations: 187.6 kB / 1.02 GB, free: 92 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.5362, allocations: 37.03 kB / 1.02 GB, free: 52 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.5363, allocations: 63.89 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.762e-05/0.5364, allocations: 63.69 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.042e-05/0.5365, allocations: 19.94 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.963e-05/0.5365, allocations: 31.98 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.902e-05/0.5366, allocations: 23.91 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.491e-05/0.5367, allocations: 67.7 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.5369, allocations: 165.8 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.5369, allocations: 0 / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.412e-06/0.5369, allocations: 0 / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.5369, allocations: 0 / 1.02 GB, free: 15.62 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.0006235/0.5375, allocations: 456.7 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.5376, allocations: 16.03 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.437e-05/0.5376, allocations: 38.73 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.49e-05/0.5377, allocations: 16.84 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005363/0.5382, allocations: 252.1 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.5382, allocations: 8.375 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.709e-05/0.5383, allocations: 12.38 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002286/0.5385, allocations: 97.89 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.5385, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.5386, allocations: 7.938 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.5386, allocations: 0 / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.5388, allocations: 47.95 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000678/0.5394, allocations: 388.5 kB / 1.022 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.5396, allocations: 34.56 kB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.588e-05/0.5397, allocations: 24.95 kB / 1.022 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.5397, allocations: 8 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002396/0.5399, allocations: 107.1 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 2.905e-06/0.54, allocations: 3.984 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004177/0.5404, allocations: 133.5 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.5404, allocations: 55.34 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.5405, allocations: 143.4 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.5406, allocations: 33.7 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.088e-05/0.5407, allocations: 107.9 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.5407, allocations: 31.69 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.536e-05/0.5408, allocations: 45.7 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.5409, allocations: 322.8 kB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.541, allocations: 51.95 kB / 1.023 GB, free: 13 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.5412, allocations: 127.1 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003212/0.5416, allocations: 208.6 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.5416, allocations: 0 / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004902/0.5421, allocations: 239.2 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.503e-05/0.5421, allocations: 37.69 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.5421, allocations: 4 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.5422, allocations: 4 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.5423, allocations: 35.86 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.5423, allocations: 4 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002342/0.5425, allocations: 43.92 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.5426, allocations: 8 kB / 1.023 GB, free: 12.2 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 0.0001056/0.5427, allocations: 137.1 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.876e-05/0.5427, allocations: 7.906 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.447e-05/0.5427, allocations: 16.72 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.5427, allocations: 3.938 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.5428, allocations: 0 / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.5428, allocations: 0 / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005585/0.5433, allocations: 402.8 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.5433, allocations: 3.938 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.527e-05/0.5434, allocations: 19.92 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.5435, allocations: 0 / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.5435, allocations: 0 / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.5435, allocations: 3.938 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.5435, allocations: 4 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004031/0.5439, allocations: 243.2 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.816e-05/0.544, allocations: 88.95 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.544, allocations: 0 / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.153e-05/0.5441, allocations: 8.031 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.763e-05/0.5441, allocations: 11.98 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.5441, allocations: 4 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.335e-05/0.5442, allocations: 109.2 kB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5442, allocations: 0 / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002931/0.5445, allocations: 35.92 kB / 1.024 GB, free: 11.02 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.0006786/0.5452, allocations: 0.7864 MB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003868/0.5456, allocations: 191.2 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5456, allocations: 0 / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.5457, allocations: 37 kB / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.546, allocations: 37.52 kB / 1.025 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002204/0.5482, allocations: 1.944 MB / 1.027 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.5485, allocations: 0.7123 MB / 1.028 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.922e-05/0.5486, allocations: 16.58 kB / 1.028 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.309e-05/0.5486, allocations: 39.42 kB / 1.028 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of SimCode: time 3.4e-07/0.5486, allocations: 0 / 1.028 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03051/0.5792, allocations: 3.11 MB / 1.031 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.903/10.48, allocations: 12.33 kB / 1.031 GB, free: 4.035 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