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.001454/0.001454, allocations: 102.9 kB / 15.98 MB, free: 6.348 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.001458/0.001458, allocations: 194.7 kB / 16.91 MB, free: 6.188 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.344/1.344, allocations: 222.9 MB / 240.6 MB, free: 15.43 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.567/2.567, allocations: 469.8 MB / 0.7427 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 63.41 kB / 0.9087 GB, free: 14.26 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2829, allocations: 159.1 MB / 1.064 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002137/0.285, allocations: 0.9439 MB / 1.065 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001487/0.2865, allocations: 1.182 MB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.291e-05/0.2866, allocations: 4 kB / 1.066 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.121e-05/0.2867, allocations: 7.922 kB / 1.066 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.49e-05/0.2867, allocations: 15.86 kB / 1.066 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004819/0.2872, allocations: 128.6 kB / 1.066 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001991/0.2874, allocations: 175.6 kB / 1.067 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.2876, allocations: 41.09 kB / 1.067 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.2877, allocations: 71.81 kB / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.92e-05/0.2878, allocations: 55.75 kB / 1.067 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.823e-05/0.2878, allocations: 16 kB / 1.067 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.901e-05/0.2879, allocations: 27.98 kB / 1.067 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.075e-05/0.2879, allocations: 27.92 kB / 1.067 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.514e-05/0.288, allocations: 63.7 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001625/0.2882, allocations: 124 kB / 1.067 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.2882, allocations: 0 / 1.067 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2882, allocations: 4 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.2882, allocations: 3.938 kB / 1.067 GB, free: 12.25 MB / 0.8419 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.0007896/0.289, allocations: 452.8 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.289, allocations: 12.03 kB / 1.067 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.484e-05/0.2891, allocations: 16.75 kB / 1.067 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005344/0.2897, allocations: 256.2 kB / 1.068 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.2897, allocations: 12.38 kB / 1.068 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.911e-05/0.2897, allocations: 12.38 kB / 1.068 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002251/0.29, allocations: 86.2 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.29, allocations: 3.938 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.29, allocations: 4 kB / 1.068 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.29, allocations: 0 / 1.068 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001892/0.2902, allocations: 51.89 kB / 1.068 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007106/0.2909, allocations: 388.4 kB / 1.068 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.2911, allocations: 38.48 kB / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.815e-05/0.2912, allocations: 28.97 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.2912, allocations: 4 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002188/0.2914, allocations: 95.34 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.2914, allocations: 0 / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10): time 0.0004238/0.2919, allocations: 133.5 kB / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.2919, allocations: 55.34 kB / 1.069 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.2921, allocations: 139.5 kB / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.2921, allocations: 33.7 kB / 1.069 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.884e-05/0.2922, allocations: 116 kB / 1.069 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.986e-05/0.2922, allocations: 27.61 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.354e-05/0.2923, allocations: 53.62 kB / 1.069 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.2925, allocations: 318.8 kB / 1.069 GB, free: 9.734 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.2926, allocations: 51.97 kB / 1.069 GB, free: 9.684 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.2929, allocations: 123.1 kB / 1.069 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000336/0.2932, allocations: 209 kB / 1.07 GB, free: 9.273 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2932, allocations: 0 / 1.07 GB, free: 9.273 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004844/0.2937, allocations: 247 kB / 1.07 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.633e-05/0.2938, allocations: 33.7 kB / 1.07 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.2938, allocations: 3.938 kB / 1.07 GB, free: 8.977 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.2938, allocations: 4 kB / 1.07 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.2939, allocations: 32.28 kB / 1.07 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.2939, allocations: 11.94 kB / 1.07 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002176/0.2942, allocations: 43.75 kB / 1.07 GB, free: 8.887 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/0.2942, allocations: 15.98 kB / 1.07 GB, free: 8.871 MB / 0.8419 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.0001181/0.2943, allocations: 127.2 kB / 1.07 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.978e-05/0.2944, allocations: 11.94 kB / 1.07 GB, free: 8.727 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.572e-05/0.2944, allocations: 12.72 kB / 1.07 GB, free: 8.715 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.2944, allocations: 7.984 kB / 1.07 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2944, allocations: 3.938 kB / 1.07 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2944, allocations: 0 / 1.07 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005861/0.295, allocations: 398.3 kB / 1.07 GB, free: 8.258 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.295, allocations: 4 kB / 1.07 GB, free: 8.254 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.878e-05/0.2951, allocations: 15.92 kB / 1.07 GB, free: 8.238 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.2952, allocations: 3.938 kB / 1.07 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.2952, allocations: 8 kB / 1.07 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.2952, allocations: 7.984 kB / 1.071 GB, free: 8.219 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2952, allocations: 0 / 1.071 GB, free: 8.219 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003979/0.2956, allocations: 231.3 kB / 1.071 GB, free: 7.977 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.897e-05/0.2957, allocations: 84.95 kB / 1.071 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/0.2957, allocations: 16.03 kB / 1.071 GB, free: 7.859 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.599e-05/0.2958, allocations: 4 kB / 1.071 GB, free: 7.855 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.281e-05/0.2958, allocations: 7.984 kB / 1.071 GB, free: 7.848 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.2958, allocations: 4 kB / 1.071 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.06e-05/0.2959, allocations: 106.5 kB / 1.071 GB, free: 7.742 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2959, allocations: 0 / 1.071 GB, free: 7.742 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002841/0.2962, allocations: 35.91 kB / 1.071 GB, free: 7.707 MB / 0.8419 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.0001725/0.2964, allocations: 111.4 kB / 1.071 GB, free: 7.59 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004096/0.2968, allocations: 195.1 kB / 1.071 GB, free: 7.387 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.2968, allocations: 0 / 1.071 GB, free: 7.387 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.2969, allocations: 39.91 kB / 1.071 GB, free: 7.348 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.2972, allocations: 24.73 kB / 1.071 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005683/0.2978, allocations: 314.7 kB / 1.072 GB, free: 6.984 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.2982, allocations: 0.7084 MB / 1.072 GB, free: 6.25 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.469e-05/0.2982, allocations: 19.44 kB / 1.072 GB, free: 6.23 MB / 0.8419 GB Notification: Performance of SimCode: time 4.61e-07/0.2982, allocations: 0 / 1.072 GB, free: 6.23 MB / 0.8419 GB Notification: Performance of Templates: time 0.003616/0.3018, allocations: 1.724 MB / 1.074 GB, free: 4.52 MB / 0.8419 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=400 -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/jenkins1/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