Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.005562/0.005562, allocations: 103 kB / 15.73 MB, free: 5.988 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.001192/0.001192, allocations: 193.6 kB / 16.67 MB, free: 5.914 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.152/2.152, allocations: 390.3 MB / 0.6648 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 67.91 kB / 0.9505 GB, free: 8.125 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.857/0.8586, allocations: 140.4 MB / 1.088 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.001846/0.8605, allocations: 0.8772 MB / 1.088 GB, free: 4.715 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001286/0.8618, allocations: 1.178 MB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.3e-05/0.8618, allocations: 1.062 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.694e-05/0.8619, allocations: 9.422 kB / 1.09 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.379e-05/0.862, allocations: 19.39 kB / 1.09 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005264/0.8625, allocations: 153.9 kB / 1.09 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002231/0.8627, allocations: 172.3 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.8629, allocations: 35.48 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.863, allocations: 64.19 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.8631, allocations: 71.91 kB / 1.09 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.31e-05/0.8631, allocations: 15.12 kB / 1.09 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.733e-05/0.8632, allocations: 32.62 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.246e-05/0.8633, allocations: 21.8 kB / 1.09 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.334e-05/0.8633, allocations: 74.88 kB / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002524/0.8636, allocations: 164.5 kB / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.8636, allocations: 0.5156 kB / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.132e-06/0.8636, allocations: 0.7188 kB / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.8636, allocations: 0 / 1.09 GB, free: 3.465 MB / 0.8575 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.0006367/0.8643, allocations: 456 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.8643, allocations: 8.938 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.786e-05/0.8644, allocations: 40.7 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.639e-05/0.8644, allocations: 17.05 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000494/0.8649, allocations: 248.3 kB / 1.091 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/0.865, allocations: 12.81 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.579e-05/0.865, allocations: 15.45 kB / 1.091 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002176/0.8652, allocations: 90.92 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.8652, allocations: 0 / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.8653, allocations: 5.891 kB / 1.091 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.8653, allocations: 2.156 kB / 1.091 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.8655, allocations: 49.94 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006352/0.8661, allocations: 390.3 kB / 1.092 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.8662, allocations: 48.03 kB / 1.092 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.397e-05/0.8663, allocations: 22.81 kB / 1.092 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.8664, allocations: 1.438 kB / 1.092 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002688/0.8666, allocations: 97.23 kB / 1.092 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.8666, allocations: 0 / 1.092 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0004408/0.8671, allocations: 141.1 kB / 1.092 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/0.8671, allocations: 58.55 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.8672, allocations: 146.2 kB / 1.092 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.8673, allocations: 32.69 kB / 1.092 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.611e-05/0.8673, allocations: 105.7 kB / 1.092 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.644e-05/0.8674, allocations: 34.64 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.691e-05/0.8674, allocations: 43.72 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.019e-05/0.8675, allocations: 329.7 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001634/0.8677, allocations: 44.73 kB / 1.093 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.8679, allocations: 137.6 kB / 1.093 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002879/0.8682, allocations: 200.1 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.8682, allocations: 5.781 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005128/0.8687, allocations: 236.2 kB / 1.093 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/0.8687, allocations: 35.39 kB / 1.093 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.8687, allocations: 3.781 kB / 1.093 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.8688, allocations: 8.312 kB / 1.093 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.8689, allocations: 35.44 kB / 1.093 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.8689, allocations: 8.469 kB / 1.093 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.8692, allocations: 35.64 kB / 1.093 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.8692, allocations: 11.42 kB / 1.093 GB, free: 1.012 MB / 0.8575 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.735e-05/0.8693, allocations: 132.2 kB / 1.093 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.985e-05/0.8693, allocations: 13.31 kB / 1.093 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.997e-05/0.8694, allocations: 15.98 kB / 1.094 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.8694, allocations: 6.047 kB / 1.094 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.8694, allocations: 0.75 kB / 1.094 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.8694, allocations: 0.6094 kB / 1.094 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005135/0.8699, allocations: 397.2 kB / 1.094 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.8699, allocations: 4 kB / 1.094 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.492e-05/0.87, allocations: 21.56 kB / 1.094 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.87, allocations: 0.7188 kB / 1.094 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.8701, allocations: 3.297 kB / 1.094 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.8701, allocations: 7.875 kB / 1.094 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.8701, allocations: 1 kB / 1.094 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003913/0.8705, allocations: 241.8 kB / 1.094 GB, free: 348 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.713e-05/0.8705, allocations: 96.11 kB / 1.094 GB, free: 236 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.957e-05/0.8705, allocations: 2.5 kB / 1.094 GB, free: 236 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-05/0.8706, allocations: 6.766 kB / 1.094 GB, free: 236 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.017e-05/0.8707, allocations: 10.64 kB / 1.094 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-05/0.8707, allocations: 4.547 kB / 1.094 GB, free: 232 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.624e-05/0.8707, allocations: 106.4 kB / 1.094 GB, free: 148 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8707, allocations: 0 / 1.094 GB, free: 148 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003148/0.8711, allocations: 33.16 kB / 1.094 GB, free: 140 kB / 0.8575 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.0007986/0.8719, allocations: 0.7854 MB / 1.095 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005114/0.8724, allocations: 184.7 kB / 1.095 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.8724, allocations: 3.938 kB / 1.095 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001431/0.8726, allocations: 34.88 kB / 1.095 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003291/0.8729, allocations: 20.06 kB / 1.095 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002917/0.8758, allocations: 1.964 MB / 1.097 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.8761, allocations: 0.7084 MB / 1.098 GB, free: 13 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.415e-05/0.8762, allocations: 15.88 kB / 1.098 GB, free: 13 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.156e-05/0.8763, allocations: 38.38 kB / 1.098 GB, free: 12.97 MB / 0.8731 GB Notification: Performance of SimCode: time 6.11e-07/0.8763, allocations: 0 / 1.098 GB, free: 12.97 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02437/0.9007, allocations: 3.229 MB / 1.101 GB, free: 12.47 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.977/8.878, allocations: 1.219 kB / 1.101 GB, free: 12.47 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches