Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 106.7 kB / 16.41 MB, free: 6.465 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.001598/0.001598, allocations: 187 kB / 17.34 MB, free: 5.723 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.398/1.398, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.271/2.271, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 71.89 kB / 0.9516 GB, free: 7.543 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9856/0.9871, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.002013/0.9892, allocations: 0.8745 MB / 1.09 GB, free: 4.926 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001372/0.9906, allocations: 1.177 MB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.329e-05/0.9906, allocations: 1.5 kB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.538e-05/0.9907, allocations: 9.094 kB / 1.091 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.94e-05/0.9908, allocations: 22.94 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000499/0.9913, allocations: 149.1 kB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002263/0.9915, allocations: 171.2 kB / 1.091 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.9917, allocations: 35.34 kB / 1.091 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.9918, allocations: 65.67 kB / 1.091 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.9919, allocations: 67.7 kB / 1.091 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.494e-05/0.9919, allocations: 14.66 kB / 1.091 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.871e-05/0.992, allocations: 37.31 kB / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.174e-05/0.9921, allocations: 21.47 kB / 1.091 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.643e-05/0.9922, allocations: 70.19 kB / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.9924, allocations: 170.8 kB / 1.091 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.9924, allocations: 1 kB / 1.091 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.364e-06/0.9924, allocations: 0 / 1.091 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.199e-05/0.9925, allocations: 0 / 1.091 GB, free: 3.676 MB / 0.8575 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.0006305/0.9931, allocations: 450.5 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.9931, allocations: 8.938 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.184e-05/0.9932, allocations: 13.47 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005058/0.9937, allocations: 255.9 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.9937, allocations: 5.219 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.546e-05/0.9938, allocations: 14.45 kB / 1.092 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002348/0.994, allocations: 90.47 kB / 1.092 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.9941, allocations: 3.938 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.9941, allocations: 2.125 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.9941, allocations: 6.109 kB / 1.092 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.9943, allocations: 50.03 kB / 1.092 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000678/0.995, allocations: 393.7 kB / 1.093 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001296/0.9951, allocations: 41.03 kB / 1.093 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.566e-05/0.9952, allocations: 26.55 kB / 1.093 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.9952, allocations: 5.484 kB / 1.093 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002818/0.9955, allocations: 96.89 kB / 1.093 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.412e-06/0.9955, allocations: 0 / 1.093 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0004554/0.996, allocations: 137.4 kB / 1.093 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.996, allocations: 58.08 kB / 1.093 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.9961, allocations: 143 kB / 1.093 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.9962, allocations: 33.3 kB / 1.093 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.096e-05/0.9962, allocations: 114.3 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.9963, allocations: 33.25 kB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.654e-05/0.9964, allocations: 43.06 kB / 1.093 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.827e-05/0.9964, allocations: 330.2 kB / 1.094 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.9966, allocations: 52.77 kB / 1.094 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/0.9968, allocations: 130.2 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.9971, allocations: 199.3 kB / 1.094 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.9971, allocations: 1.312 kB / 1.094 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004922/0.9976, allocations: 240.8 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.9976, allocations: 36.31 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.9976, allocations: 3.359 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.9977, allocations: 4.406 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.9978, allocations: 34.81 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.9978, allocations: 8.844 kB / 1.094 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/0.998, allocations: 35.06 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.9981, allocations: 16.22 kB / 1.094 GB, free: 1.273 MB / 0.8575 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 8.087e-05/0.9982, allocations: 127.3 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.93e-05/0.9982, allocations: 9.953 kB / 1.095 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.627e-05/0.9982, allocations: 20.22 kB / 1.095 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.9982, allocations: 1.594 kB / 1.095 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.9982, allocations: 4.5 kB / 1.095 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.9982, allocations: 1.5 kB / 1.095 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005419/0.9988, allocations: 396.7 kB / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.9988, allocations: 0.8438 kB / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.538e-05/0.9989, allocations: 20.86 kB / 1.095 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.9989, allocations: 8.656 kB / 1.095 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.9989, allocations: 2.25 kB / 1.095 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.9989, allocations: 0.9688 kB / 1.095 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.999, allocations: 0.7812 kB / 1.095 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003953/0.9993, allocations: 245.2 kB / 1.095 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.53e-05/0.9994, allocations: 88.44 kB / 1.095 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.084e-05/0.9994, allocations: 9.969 kB / 1.095 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.319e-05/0.9995, allocations: 7.141 kB / 1.095 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.16e-05/0.9996, allocations: 10.41 kB / 1.095 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.9996, allocations: 4.781 kB / 1.095 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.127e-05/0.9996, allocations: 106.7 kB / 1.095 GB, free: 424 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9996, allocations: 0 / 1.095 GB, free: 424 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003276/1, allocations: 40.64 kB / 1.096 GB, free: 408 kB / 0.8575 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.0001677/1, allocations: 110.5 kB / 1.096 GB, free: 316 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004096/1.001, allocations: 184.1 kB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/1.001, allocations: 0 / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000128/1.001, allocations: 36.02 kB / 1.096 GB, free: 208 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/1.001, allocations: 28.48 kB / 1.096 GB, free: 196 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005155/1.002, allocations: 284.7 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002826/1.002, allocations: 0.7082 MB / 1.097 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.741e-05/1.002, allocations: 15.41 kB / 1.097 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of SimCode: time 2.01e-07/1.002, allocations: 0.625 kB / 1.097 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of Templates: time 0.00418/1.006, allocations: 1.725 MB / 1.099 GB, free: 15.1 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches