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.006536/0.006536, allocations: 100.5 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.001212/0.001212, allocations: 198.7 kB / 16.68 MB, free: 6.375 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.495/1.495, 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 9.1.3-maint.9.1.x/package.mo): time 2.546/2.546, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 70.27 kB / 0.9509 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.3834, allocations: 140.4 MB / 1.088 GB, free: 1.441 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.00221/0.3857, allocations: 0.882 MB / 1.089 GB, free: 0.5547 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00175/0.3874, allocations: 1.172 MB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.207e-05/0.3875, allocations: 0 / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.303e-05/0.3876, allocations: 7.875 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001016/0.3877, allocations: 19.8 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005454/0.3882, allocations: 164 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002101/0.3885, allocations: 171.7 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.3886, allocations: 37.11 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001707/0.3888, allocations: 63.83 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.3889, allocations: 71.72 kB / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.985e-05/0.3889, allocations: 19.94 kB / 1.091 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.888e-05/0.389, allocations: 31.98 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.145e-05/0.3891, allocations: 19.92 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.424e-05/0.3892, allocations: 67.7 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002309/0.3894, allocations: 163.3 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3894, allocations: 7.984 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3894, allocations: 0 / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.3894, allocations: 0 / 1.091 GB, free: 14.54 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.0007825/0.3902, allocations: 464.6 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.3903, allocations: 8.031 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.589e-05/0.3903, allocations: 12.89 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005736/0.3909, allocations: 256.2 kB / 1.092 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.391, allocations: 8.375 kB / 1.092 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.229e-05/0.391, allocations: 16.38 kB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.3912, allocations: 94.14 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.3913, allocations: 7.922 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.3913, allocations: 0 / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.3913, allocations: 4 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.3915, allocations: 47.89 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007542/0.3922, allocations: 392.5 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.3924, allocations: 38.5 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.217e-05/0.3925, allocations: 24.83 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.3925, allocations: 0 / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002585/0.3928, allocations: 99.42 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.3928, allocations: 0 / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0004651/0.3933, allocations: 133.5 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.3933, allocations: 59.34 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.3935, allocations: 143.3 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.3935, allocations: 33.7 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.294e-05/0.3936, allocations: 115.8 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.14e-05/0.3937, allocations: 39.81 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.584e-05/0.3937, allocations: 41.7 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.3939, allocations: 330.8 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.3941, allocations: 43.95 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002011/0.3943, allocations: 131.1 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003514/0.3946, allocations: 204.6 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.3946, allocations: 4 kB / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004766/0.3951, allocations: 239.2 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.903e-05/0.3952, allocations: 39.41 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.3952, allocations: 4 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.3952, allocations: 4 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.3953, allocations: 27.92 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.3953, allocations: 7.938 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002319/0.3956, allocations: 48.03 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.3956, allocations: 8 kB / 1.094 GB, free: 11.14 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 0.0001307/0.3957, allocations: 133.8 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.896e-05/0.3958, allocations: 7.953 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.702e-05/0.3958, allocations: 12.72 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3958, allocations: 4 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.3958, allocations: 7.938 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3959, allocations: 0 / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005403/0.3964, allocations: 406.7 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3964, allocations: 0 / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.3965, allocations: 15.92 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.3966, allocations: 7.938 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.3966, allocations: 0 / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3966, allocations: 0 / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3966, allocations: 0 / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004369/0.397, allocations: 243.4 kB / 1.095 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.387e-05/0.3971, allocations: 92.95 kB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.997e-05/0.3971, allocations: 0 / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.411e-05/0.3972, allocations: 8.031 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.211e-05/0.3973, allocations: 11.98 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-06/0.3973, allocations: 4 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.187e-05/0.3974, allocations: 109.3 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.31e-07/0.3974, allocations: 0 / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003057/0.3977, allocations: 35.92 kB / 1.095 GB, free: 9.969 MB / 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.0002116/0.3979, allocations: 107.2 kB / 1.095 GB, free: 9.855 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004308/0.3983, allocations: 187.8 kB / 1.095 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3983, allocations: 0 / 1.095 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.3985, allocations: 35.97 kB / 1.095 GB, free: 9.625 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.3988, allocations: 20.59 kB / 1.095 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005547/0.3994, allocations: 260.4 kB / 1.095 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.3997, allocations: 0.7124 MB / 1.096 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.352e-05/0.3998, allocations: 16.64 kB / 1.096 GB, free: 8.574 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.412e-05/0.3998, allocations: 23.42 kB / 1.096 GB, free: 8.551 MB / 0.8575 GB Notification: Performance of SimCode: time 2e-07/0.3998, allocations: 0 / 1.096 GB, free: 8.551 MB / 0.8575 GB Notification: Performance of Templates: time 0.00476/0.4046, allocations: 1.658 MB / 1.098 GB, free: 6.914 MB / 0.8575 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/jenkins/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