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.004771/0.004771, allocations: 98.73 kB / 15.73 MB, free: 6.496 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.001395/0.001395, allocations: 194.5 kB / 16.67 MB, free: 6.391 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.714/2.714, allocations: 482.6 MB / 0.755 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001762/0.001762, allocations: 71.89 kB / 1.083 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2953, allocations: 162.3 MB / 1.242 GB, free: 9.777 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001963/0.2973, allocations: 0.8812 MB / 1.243 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001419/0.2988, allocations: 1.178 MB / 1.244 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.052e-05/0.2988, allocations: 4 kB / 1.244 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.739e-05/0.2989, allocations: 7.875 kB / 1.244 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.4e-05/0.2989, allocations: 19.78 kB / 1.244 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004732/0.2994, allocations: 147.4 kB / 1.244 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002147/0.2996, allocations: 175.6 kB / 1.244 GB, free: 7.363 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.2998, allocations: 37.08 kB / 1.244 GB, free: 7.328 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.2999, allocations: 71.81 kB / 1.244 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.3, allocations: 67.73 kB / 1.244 GB, free: 7.191 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.241e-05/0.3, allocations: 16 kB / 1.244 GB, free: 7.176 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.272e-05/0.3001, allocations: 24 kB / 1.244 GB, free: 7.152 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.505e-05/0.3002, allocations: 31.89 kB / 1.245 GB, free: 7.121 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 7.881e-05/0.3002, allocations: 63.72 kB / 1.245 GB, free: 7.059 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002271/0.3005, allocations: 175.3 kB / 1.245 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3005, allocations: 0 / 1.245 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.784e-06/0.3005, allocations: 0 / 1.245 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.348e-06/0.3005, allocations: 0 / 1.245 GB, free: 6.887 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.0006553/0.3012, allocations: 464.6 kB / 1.245 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.3012, allocations: 8.031 kB / 1.245 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.174e-05/0.3012, allocations: 46.73 kB / 1.245 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.719e-05/0.3013, allocations: 16.84 kB / 1.245 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005079/0.3018, allocations: 244.3 kB / 1.245 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.3018, allocations: 8.375 kB / 1.245 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.508e-05/0.3019, allocations: 20.31 kB / 1.246 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002148/0.3021, allocations: 92.48 kB / 1.246 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.3021, allocations: 0 / 1.246 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.3021, allocations: 4 kB / 1.246 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.3022, allocations: 4 kB / 1.246 GB, free: 5.891 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.3023, allocations: 43.95 kB / 1.246 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006671/0.303, allocations: 400.5 kB / 1.246 GB, free: 5.406 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.3031, allocations: 34.5 kB / 1.246 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.463e-05/0.3032, allocations: 28.95 kB / 1.246 GB, free: 5.332 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.3033, allocations: 0 / 1.246 GB, free: 5.332 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002502/0.3035, allocations: 99.3 kB / 1.246 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.3035, allocations: 0 / 1.246 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0004134/0.304, allocations: 133.5 kB / 1.246 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.304, allocations: 55.34 kB / 1.246 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.3041, allocations: 147.5 kB / 1.246 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.3042, allocations: 29.7 kB / 1.247 GB, free: 4.832 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.589e-05/0.3042, allocations: 116.1 kB / 1.247 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.3043, allocations: 31.73 kB / 1.247 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.194e-05/0.3044, allocations: 49.69 kB / 1.247 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3045, allocations: 318.8 kB / 1.247 GB, free: 4.309 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.3047, allocations: 51.95 kB / 1.247 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002059/0.3049, allocations: 139.1 kB / 1.247 GB, free: 4.082 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003203/0.3052, allocations: 196.7 kB / 1.247 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.3052, allocations: 0 / 1.247 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004889/0.3057, allocations: 251.2 kB / 1.248 GB, free: 3.586 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.864e-05/0.3058, allocations: 38.94 kB / 1.248 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.3058, allocations: 4 kB / 1.248 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.3058, allocations: 4 kB / 1.248 GB, free: 3.535 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.3059, allocations: 27.86 kB / 1.248 GB, free: 3.508 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.3059, allocations: 4 kB / 1.248 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002169/0.3061, allocations: 39.91 kB / 1.248 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.3062, allocations: 16.06 kB / 1.248 GB, free: 3.449 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.0001078/0.3063, allocations: 133.7 kB / 1.248 GB, free: 3.309 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.813e-05/0.3063, allocations: 11.91 kB / 1.248 GB, free: 3.297 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.3063, allocations: 12.72 kB / 1.248 GB, free: 3.285 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.3063, allocations: 4.312 kB / 1.248 GB, free: 3.281 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.3064, allocations: 8 kB / 1.248 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.3064, allocations: 4.031 kB / 1.248 GB, free: 3.27 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005392/0.3069, allocations: 398.4 kB / 1.248 GB, free: 2.824 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3069, allocations: 0 / 1.248 GB, free: 2.824 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.751e-05/0.307, allocations: 15.92 kB / 1.248 GB, free: 2.809 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.307, allocations: 0 / 1.248 GB, free: 2.809 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.307, allocations: 8 kB / 1.248 GB, free: 2.801 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.307, allocations: 0 / 1.248 GB, free: 2.801 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.307, allocations: 0 / 1.248 GB, free: 2.801 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004058/0.3075, allocations: 247.3 kB / 1.249 GB, free: 2.543 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.617e-05/0.3075, allocations: 89 kB / 1.249 GB, free: 2.438 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.146e-05/0.3075, allocations: 4 kB / 1.249 GB, free: 2.434 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.593e-05/0.3076, allocations: 8.031 kB / 1.249 GB, free: 2.426 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.883e-05/0.3077, allocations: 11.92 kB / 1.249 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-06/0.3077, allocations: 4 kB / 1.249 GB, free: 2.41 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.322e-05/0.3078, allocations: 109.2 kB / 1.249 GB, free: 2.305 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3078, allocations: 0 / 1.249 GB, free: 2.305 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002677/0.308, allocations: 35.92 kB / 1.249 GB, free: 2.27 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.0007463/0.3088, allocations: 0.787 MB / 1.25 GB, free: 1.457 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003839/0.3092, allocations: 175.5 kB / 1.25 GB, free: 1.273 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3092, allocations: 0 / 1.25 GB, free: 1.273 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.3093, allocations: 43.84 kB / 1.25 GB, free: 1.23 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003025/0.3096, allocations: 24.73 kB / 1.25 GB, free: 1.207 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5563/0.8659, allocations: 1.951 MB / 1.252 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001205/0.8661, allocations: 0.7062 MB / 1.252 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.496e-05/0.8662, allocations: 15.72 kB / 1.252 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.398e-05/0.8662, allocations: 37.47 kB / 1.252 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of SimCode: time 7.81e-07/0.8662, allocations: 0.5312 kB / 1.252 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.664/3.531, allocations: 3.182 MB / 1.256 GB, free: 12.55 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/16.52, allocations: 1.938 kB / 1.256 GB, free: 12.55 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 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.mat","/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