Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007199/0.007199, allocations: 102.7 kB / 15.73 MB, free: 5.992 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.001501/0.001501, allocations: 190.2 kB / 16.67 MB, free: 5.91 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.439/1.439, 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 11.1.0-maint.11.x/package.mo): time 2.64/2.64, allocations: 469.8 MB / 0.7425 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 67.88 kB / 1.065 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9238/0.9251, allocations: 159.1 MB / 1.221 GB, free: 2.109 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.003735/0.9288, allocations: 0.8858 MB / 1.222 GB, free: 1.227 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002486/0.9313, allocations: 1.182 MB / 1.223 GB, free: 32 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.9314, allocations: 0 / 1.223 GB, free: 32 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 5.027e-05/0.9315, allocations: 7.875 kB / 1.223 GB, free: 24 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.9316, allocations: 23.8 kB / 1.223 GB, free: 0 / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008107/0.9324, allocations: 149.8 kB / 1.223 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003006/0.9327, allocations: 167.7 kB / 1.223 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.9329, allocations: 33.03 kB / 1.223 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.933, allocations: 67.83 kB / 1.223 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001863/0.9332, allocations: 71.72 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.418e-05/0.9333, allocations: 12 kB / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.9334, allocations: 27.94 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.664e-05/0.9334, allocations: 27.91 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.9335, allocations: 63.7 kB / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003657/0.9339, allocations: 171.9 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 1.067e-05/0.9339, allocations: 4 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.776e-06/0.9339, allocations: 0 / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.371e-05/0.9339, allocations: 0 / 1.223 GB, free: 15.23 MB / 0.9512 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.0009439/0.9349, allocations: 460.6 kB / 1.224 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 6.27e-05/0.9349, allocations: 8.031 kB / 1.224 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.272e-05/0.935, allocations: 20.83 kB / 1.224 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006551/0.9357, allocations: 254.5 kB / 1.224 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.9357, allocations: 8.375 kB / 1.224 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.067e-05/0.9357, allocations: 16.38 kB / 1.224 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002575/0.936, allocations: 82.2 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.936, allocations: 3.938 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.936, allocations: 4 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.936, allocations: 11.94 kB / 1.224 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001697/0.9362, allocations: 47.95 kB / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00094/0.9371, allocations: 388.5 kB / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/0.9373, allocations: 34.55 kB / 1.225 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.087e-05/0.9374, allocations: 28.91 kB / 1.225 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.9374, allocations: 4 kB / 1.225 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002601/0.9376, allocations: 99.3 kB / 1.225 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.9376, allocations: 0 / 1.225 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10): time 0.0004781/0.9381, allocations: 141.5 kB / 1.225 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.9382, allocations: 55.34 kB / 1.225 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.9383, allocations: 137.8 kB / 1.225 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.867e-05/0.9383, allocations: 33.7 kB / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.264e-05/0.9384, allocations: 116 kB / 1.225 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.816e-05/0.9384, allocations: 27.8 kB / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.106e-05/0.9385, allocations: 45.69 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.9387, allocations: 326.8 kB / 1.226 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.9388, allocations: 51.91 kB / 1.226 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.939, allocations: 134.6 kB / 1.226 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.9394, allocations: 204.6 kB / 1.226 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.9394, allocations: 0 / 1.226 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004831/0.9398, allocations: 251 kB / 1.226 GB, free: 11.97 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.833e-05/0.9399, allocations: 33.7 kB / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.9399, allocations: 0 / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.9399, allocations: 4 kB / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.94, allocations: 36.28 kB / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.94, allocations: 7.938 kB / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.9403, allocations: 35.92 kB / 1.226 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.915e-05/0.9403, allocations: 15.98 kB / 1.226 GB, free: 11.84 MB / 0.9512 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.000139/0.9404, allocations: 130.6 kB / 1.227 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.804e-05/0.9405, allocations: 7.953 kB / 1.227 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.554e-05/0.9405, allocations: 16.72 kB / 1.227 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.9405, allocations: 0 / 1.227 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.9405, allocations: 11.86 kB / 1.227 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.9405, allocations: 0 / 1.227 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006433/0.9412, allocations: 394.5 kB / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.9412, allocations: 0 / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.461e-05/0.9413, allocations: 15.92 kB / 1.227 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.471e-06/0.9413, allocations: 3.938 kB / 1.227 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.9413, allocations: 12 kB / 1.227 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.9413, allocations: 0 / 1.227 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.9413, allocations: 3.984 kB / 1.227 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004898/0.9418, allocations: 235.3 kB / 1.227 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.333e-05/0.9418, allocations: 85 kB / 1.227 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.63e-05/0.9419, allocations: 16.03 kB / 1.227 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.769e-05/0.942, allocations: 4 kB / 1.227 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.503e-05/0.942, allocations: 7.984 kB / 1.227 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.942, allocations: 8 kB / 1.227 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.685e-05/0.9421, allocations: 105.7 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8e-08/0.9421, allocations: 7.938 kB / 1.227 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002955/0.9424, allocations: 31.89 kB / 1.228 GB, free: 10.66 MB / 0.9512 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.00025/0.9427, allocations: 111.2 kB / 1.228 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004309/0.9431, allocations: 175.1 kB / 1.228 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.9431, allocations: 0 / 1.228 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.9432, allocations: 27.98 kB / 1.228 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.9436, allocations: 34.77 kB / 1.228 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007176/0.9443, allocations: 280.3 kB / 1.228 GB, free: 10 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003651/0.9446, allocations: 0.7045 MB / 1.229 GB, free: 9.27 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 6.578e-05/0.9447, allocations: 16.64 kB / 1.229 GB, free: 9.254 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.233e-05/0.9447, allocations: 15.44 kB / 1.229 GB, free: 9.238 MB / 0.9512 GB Notification: Performance of SimCode: time 5.11e-07/0.9447, allocations: 0 / 1.229 GB, free: 9.238 MB / 0.9512 GB Notification: Performance of Templates: time 0.00517/0.9499, allocations: 1.649 MB / 1.23 GB, free: 7.605 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches