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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.008253/0.008253, allocations: 99.8 kB / 15.73 MB, free: 6.043 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.00227/0.00227, allocations: 202.9 kB / 16.68 MB, free: 5.965 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.949/2.949, allocations: 482.4 MB / 0.7548 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002633/0.002634, allocations: 63.89 kB / 1.083 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3073, allocations: 162.2 MB / 1.242 GB, free: 10.13 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002004/0.3094, allocations: 0.8813 MB / 1.242 GB, free: 9.25 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001543/0.3109, allocations: 1.174 MB / 1.244 GB, free: 8.062 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.098e-05/0.311, allocations: 4 kB / 1.244 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.498e-05/0.3111, allocations: 7.875 kB / 1.244 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.039e-05/0.3111, allocations: 19.8 kB / 1.244 GB, free: 8.031 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004963/0.3116, allocations: 159 kB / 1.244 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002366/0.3119, allocations: 171.6 kB / 1.244 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.312, allocations: 37.08 kB / 1.244 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.3121, allocations: 71.77 kB / 1.244 GB, free: 7.605 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.3123, allocations: 67.73 kB / 1.244 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.278e-05/0.3123, allocations: 16 kB / 1.244 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.544e-05/0.3124, allocations: 27.98 kB / 1.244 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.476e-05/0.3124, allocations: 23.91 kB / 1.244 GB, free: 7.473 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 9.887e-05/0.3125, allocations: 71.7 kB / 1.244 GB, free: 7.402 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.3128, allocations: 171.3 kB / 1.244 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3128, allocations: 0 / 1.244 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3128, allocations: 0 / 1.244 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.638e-06/0.3128, allocations: 0 / 1.244 GB, free: 7.234 MB / 0.9981 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.0006998/0.3135, allocations: 464.6 kB / 1.245 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.3136, allocations: 12.03 kB / 1.245 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.2e-05/0.3136, allocations: 42.67 kB / 1.245 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.778e-05/0.3137, allocations: 16.84 kB / 1.245 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005435/0.3142, allocations: 244.4 kB / 1.245 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.3142, allocations: 4.375 kB / 1.245 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.122e-05/0.3143, allocations: 24.38 kB / 1.245 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002211/0.3145, allocations: 89.95 kB / 1.245 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.3145, allocations: 0 / 1.245 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.3145, allocations: 11.92 kB / 1.245 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.3145, allocations: 0 / 1.245 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.3147, allocations: 47.95 kB / 1.245 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007159/0.3155, allocations: 392.5 kB / 1.246 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001248/0.3156, allocations: 38.55 kB / 1.246 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.38e-05/0.3157, allocations: 20.84 kB / 1.246 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.3157, allocations: 0 / 1.246 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.316, allocations: 107.3 kB / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.362e-06/0.316, allocations: 0 / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0004462/0.3164, allocations: 137.5 kB / 1.246 GB, free: 5.426 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.3165, allocations: 59.34 kB / 1.246 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.3166, allocations: 135.5 kB / 1.246 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.3167, allocations: 41.69 kB / 1.246 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 9.972e-05/0.3168, allocations: 112.1 kB / 1.246 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.962e-05/0.3168, allocations: 31.73 kB / 1.246 GB, free: 5.023 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.484e-05/0.3169, allocations: 45.69 kB / 1.246 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3171, allocations: 326.8 kB / 1.247 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.3172, allocations: 39.97 kB / 1.247 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000229/0.3175, allocations: 139.1 kB / 1.247 GB, free: 4.43 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003627/0.3179, allocations: 200.6 kB / 1.247 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.3179, allocations: 4 kB / 1.247 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005223/0.3184, allocations: 243.2 kB / 1.247 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.557e-05/0.3184, allocations: 37.64 kB / 1.247 GB, free: 3.891 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.3185, allocations: 7.938 kB / 1.247 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.3185, allocations: 4 kB / 1.247 GB, free: 3.879 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.3186, allocations: 27.91 kB / 1.247 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.3186, allocations: 7.938 kB / 1.247 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/0.3189, allocations: 40.12 kB / 1.247 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.73e-05/0.3189, allocations: 11.98 kB / 1.247 GB, free: 3.793 MB / 0.9981 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.0001194/0.319, allocations: 129 kB / 1.247 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.319, allocations: 15.91 kB / 1.248 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.689e-05/0.3191, allocations: 16.7 kB / 1.248 GB, free: 3.625 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.3191, allocations: 7.938 kB / 1.248 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.3191, allocations: 0 / 1.248 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.3191, allocations: 0 / 1.248 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006021/0.3197, allocations: 394.8 kB / 1.248 GB, free: 3.176 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.3197, allocations: 7.984 kB / 1.248 GB, free: 3.168 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.425e-05/0.3198, allocations: 11.94 kB / 1.248 GB, free: 3.156 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.3198, allocations: 4.094 kB / 1.248 GB, free: 3.152 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.3199, allocations: 7.969 kB / 1.248 GB, free: 3.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3199, allocations: 0 / 1.248 GB, free: 3.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.3199, allocations: 3.984 kB / 1.248 GB, free: 3.141 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004428/0.3203, allocations: 243.3 kB / 1.248 GB, free: 2.887 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.571e-05/0.3204, allocations: 93.03 kB / 1.248 GB, free: 2.777 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.3204, allocations: 0 / 1.248 GB, free: 2.777 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.391e-05/0.3205, allocations: 4 kB / 1.248 GB, free: 2.773 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.811e-05/0.3206, allocations: 11.98 kB / 1.248 GB, free: 2.762 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.3206, allocations: 7.984 kB / 1.248 GB, free: 2.754 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.307e-05/0.3207, allocations: 109 kB / 1.248 GB, free: 2.648 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3207, allocations: 0 / 1.248 GB, free: 2.648 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003067/0.321, allocations: 35.89 kB / 1.248 GB, free: 2.613 MB / 0.9981 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.0009107/0.3219, allocations: 0.7904 MB / 1.249 GB, free: 1.797 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006325/0.3225, allocations: 179.2 kB / 1.249 GB, free: 1.609 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3226, allocations: 0 / 1.249 GB, free: 1.609 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001973/0.3228, allocations: 40.66 kB / 1.249 GB, free: 1.57 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004936/0.3233, allocations: 23.12 kB / 1.249 GB, free: 1.551 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.546/0.8693, allocations: 1.959 MB / 1.251 GB, free: 13.87 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001277/0.8695, allocations: 0.7069 MB / 1.252 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.779e-05/0.8696, allocations: 14.91 kB / 1.252 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.281e-05/0.8697, allocations: 38.67 kB / 1.252 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of SimCode: time 5.81e-07/0.8697, allocations: 0 / 1.252 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02495/0.8946, allocations: 3.165 MB / 1.255 GB, free: 12.85 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/8.706, allocations: 10.88 kB / 1.255 GB, free: 12.84 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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