Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.0008197/0.0008198, allocations: 90.98 kB / 15.36 MB, free: 0.7383 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.005653/0.005653, allocations: 170.6 kB / 16.26 MB, free: 6.613 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.469/1.469, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.619/2.619, allocations: 437.8 MB / 0.7121 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004987/0.0004987, allocations: 16.22 kB / 0.8728 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7011/0.7016, allocations: 153.8 MB / 1.023 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001042/0.7027, allocations: 0.6074 MB / 1.024 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001421/0.7042, allocations: 1.175 MB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.082e-05/0.7042, allocations: 0 / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.045e-05/0.7043, allocations: 3.938 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.838e-05/0.7043, allocations: 19.84 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004354/0.7048, allocations: 131.8 kB / 1.025 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001471/0.7049, allocations: 151.7 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.7051, allocations: 41.02 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.398e-05/0.7052, allocations: 59.77 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.564e-05/0.7053, allocations: 51.75 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.308e-05/0.7053, allocations: 8 kB / 1.025 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.466e-05/0.7054, allocations: 23.98 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.704e-05/0.7054, allocations: 19.91 kB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.855e-05/0.7055, allocations: 81.42 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.7057, allocations: 157.5 kB / 1.025 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.7057, allocations: 0 / 1.025 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.377e-06/0.7057, allocations: 4 kB / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.028e-06/0.7057, allocations: 0 / 1.026 GB, free: 13.34 MB / 0.7794 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.0005529/0.7062, allocations: 432.8 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.7063, allocations: 12.03 kB / 1.026 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.272e-05/0.7064, allocations: 16.75 kB / 1.026 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005367/0.7069, allocations: 258 kB / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.7069, allocations: 12.38 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.596e-05/0.707, allocations: 12.38 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.7072, allocations: 94.14 kB / 1.026 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.7072, allocations: 3.938 kB / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.7072, allocations: 4 kB / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.7072, allocations: 11.88 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001913/0.7074, allocations: 59.89 kB / 1.026 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006429/0.7081, allocations: 392.4 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001236/0.7082, allocations: 42.5 kB / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001/0.7083, allocations: 32.95 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.7083, allocations: 0 / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002373/0.7086, allocations: 99.36 kB / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.7086, allocations: 0 / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004392/0.709, allocations: 145.5 kB / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.892e-05/0.7091, allocations: 59.33 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.7092, allocations: 143.1 kB / 1.027 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.7093, allocations: 37.64 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.963e-05/0.7093, allocations: 104 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.29e-05/0.7094, allocations: 31.69 kB / 1.027 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.7094, allocations: 25.72 kB / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.7095, allocations: 318.8 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.7097, allocations: 59.95 kB / 1.028 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.7099, allocations: 135.3 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003369/0.7103, allocations: 212.6 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.7103, allocations: 0 / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005056/0.7108, allocations: 251.1 kB / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.894e-05/0.7108, allocations: 33.7 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.7109, allocations: 4 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.7109, allocations: 4 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.711, allocations: 31.92 kB / 1.028 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.711, allocations: 11.92 kB / 1.028 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002438/0.7113, allocations: 48.06 kB / 1.028 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.7113, allocations: 20 kB / 1.029 GB, free: 9.926 MB / 0.7794 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.0001242/0.7114, allocations: 134.6 kB / 1.029 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.064e-05/0.7115, allocations: 19.94 kB / 1.029 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.641e-05/0.7115, allocations: 12.72 kB / 1.029 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.7115, allocations: 0 / 1.029 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.7115, allocations: 7.875 kB / 1.029 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.7115, allocations: 3.984 kB / 1.029 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005607/0.7121, allocations: 402.4 kB / 1.029 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.7121, allocations: 3.938 kB / 1.029 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.352e-05/0.7122, allocations: 19.92 kB / 1.029 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.7122, allocations: 3.938 kB / 1.029 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.7122, allocations: 4 kB / 1.029 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.7123, allocations: 0 / 1.029 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.7123, allocations: 0 / 1.029 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004179/0.7127, allocations: 258.9 kB / 1.029 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.846e-05/0.7127, allocations: 84.95 kB / 1.029 GB, free: 8.895 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.7128, allocations: 4 kB / 1.029 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.431e-05/0.7129, allocations: 16.03 kB / 1.029 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.904e-05/0.7129, allocations: 7.984 kB / 1.029 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.7129, allocations: 4 kB / 1.029 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.78e-05/0.713, allocations: 109.3 kB / 1.03 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.713, allocations: 0 / 1.03 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002872/0.7133, allocations: 35.84 kB / 1.03 GB, free: 8.723 MB / 0.7794 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.0001576/0.7134, allocations: 111.2 kB / 1.03 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003891/0.7138, allocations: 195.1 kB / 1.03 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.7139, allocations: 0 / 1.03 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.714, allocations: 44.67 kB / 1.03 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.7143, allocations: 28.16 kB / 1.03 GB, free: 8.332 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005443/0.7149, allocations: 301.8 kB / 1.03 GB, free: 8.012 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.7152, allocations: 0.7048 MB / 1.031 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.082e-05/0.7152, allocations: 16.64 kB / 1.031 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.91e-05/0.7153, allocations: 11.44 kB / 1.031 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of SimCode: time 1.552e-06/0.7153, allocations: 0 / 1.031 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of Templates: time 0.00454/0.7198, allocations: 1.531 MB / 1.032 GB, free: 5.746 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches