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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001168/0.001168, allocations: 108 kB / 15.6 MB, free: 132 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.001134/0.001134, allocations: 194.7 kB / 16.53 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.162/1.162, 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 11.0.1-master/package.mo): time 2.611/2.611, allocations: 461.9 MB / 0.7346 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 69.55 kB / 0.8992 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2623, allocations: 157.4 MB / 1.053 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.00216/0.2645, allocations: 0.8965 MB / 1.054 GB, free: 7.348 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001469/0.266, allocations: 1.178 MB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.938e-05/0.2661, allocations: 4 kB / 1.055 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.128e-05/0.2661, allocations: 11.86 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.948e-05/0.2662, allocations: 19.8 kB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005361/0.2668, allocations: 146.7 kB / 1.055 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000204/0.267, allocations: 175.6 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.2671, allocations: 37.09 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.2673, allocations: 63.84 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.2674, allocations: 67.72 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.88e-05/0.2674, allocations: 16 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.902e-05/0.2675, allocations: 31.92 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.14e-05/0.2675, allocations: 19.92 kB / 1.056 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.259e-05/0.2676, allocations: 67.7 kB / 1.056 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002147/0.2679, allocations: 167.7 kB / 1.056 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2679, allocations: 0 / 1.056 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2679, allocations: 0 / 1.056 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.2679, allocations: 4 kB / 1.056 GB, free: 5.344 MB / 0.8106 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.0006567/0.2685, allocations: 456.8 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.2686, allocations: 8.625 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.798e-05/0.2686, allocations: 38.75 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.284e-05/0.2687, allocations: 12.84 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000537/0.2692, allocations: 264 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.2693, allocations: 8.375 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.739e-05/0.2693, allocations: 12.38 kB / 1.057 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002204/0.2695, allocations: 93.95 kB / 1.057 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.2695, allocations: 3.938 kB / 1.057 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.2696, allocations: 0 / 1.057 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.2696, allocations: 0 / 1.057 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.2698, allocations: 51.95 kB / 1.057 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006857/0.2705, allocations: 388.4 kB / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001184/0.2706, allocations: 34.56 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.12e-05/0.2707, allocations: 28.83 kB / 1.057 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.2707, allocations: 4 kB / 1.057 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000254/0.271, allocations: 103.4 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.271, allocations: 0 / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0004504/0.2714, allocations: 137.5 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/0.2715, allocations: 59.33 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.2716, allocations: 137.1 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.2716, allocations: 33.7 kB / 1.058 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.174e-05/0.2717, allocations: 116 kB / 1.058 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.459e-05/0.2718, allocations: 27.61 kB / 1.058 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.71e-05/0.2718, allocations: 41.7 kB / 1.058 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.981e-05/0.2719, allocations: 326.8 kB / 1.058 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.2721, allocations: 47.95 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/0.2723, allocations: 130.7 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003269/0.2726, allocations: 212.6 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2727, allocations: 0 / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004883/0.2731, allocations: 243 kB / 1.059 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.45e-05/0.2732, allocations: 33.7 kB / 1.059 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.2732, allocations: 0 / 1.059 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.2732, allocations: 4 kB / 1.059 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.2733, allocations: 36.23 kB / 1.059 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/0.2734, allocations: 7.984 kB / 1.059 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002261/0.2736, allocations: 40.19 kB / 1.059 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.382e-05/0.2736, allocations: 12 kB / 1.059 GB, free: 1.922 MB / 0.8106 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.0001025/0.2737, allocations: 131.3 kB / 1.059 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.058e-05/0.2738, allocations: 7.906 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.906e-05/0.2738, allocations: 28.59 kB / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.2738, allocations: 7.969 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2738, allocations: 0 / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2738, allocations: 3.984 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005218/0.2744, allocations: 398.3 kB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.2744, allocations: 4 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.263e-05/0.2745, allocations: 15.92 kB / 1.059 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.2745, allocations: 4 kB / 1.059 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.2745, allocations: 0 / 1.059 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.2745, allocations: 7.938 kB / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2745, allocations: 0 / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003988/0.2749, allocations: 239.3 kB / 1.06 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.953e-05/0.275, allocations: 84.95 kB / 1.06 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.275, allocations: 8 kB / 1.06 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.2751, allocations: 8.031 kB / 1.06 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.852e-05/0.2752, allocations: 11.98 kB / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.2752, allocations: 4 kB / 1.06 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.055e-05/0.2752, allocations: 103.2 kB / 1.06 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2752, allocations: 0 / 1.06 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002999/0.2755, allocations: 31.91 kB / 1.06 GB, free: 0.7422 MB / 0.8106 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.0007541/0.2763, allocations: 0.7901 MB / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003928/0.2767, allocations: 199.5 kB / 1.061 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2767, allocations: 0 / 1.061 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.2768, allocations: 31.98 kB / 1.061 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.2772, allocations: 18.05 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.2795, allocations: 1.962 MB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002391/0.2798, allocations: 0.7045 MB / 1.063 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.746e-05/0.2799, allocations: 16.64 kB / 1.063 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.41e-05/0.2799, allocations: 43.3 kB / 1.063 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.2799, allocations: 0 / 1.063 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.65/2.93, allocations: 3.126 MB / 1.067 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.781/10.71, allocations: 4.062 kB / 1.067 GB, free: 9.762 MB / 0.8262 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=50 --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