Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002474/0.002474, allocations: 89.47 kB / 19.44 MB, free: 340 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00293/0.00293, allocations: 169.2 kB / 22.76 MB, free: 1.664 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.598/1.598, allocations: 177.1 MB / 203.1 MB, free: 5.539 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.435/3.435, allocations: 429.5 MB / 0.6729 GB, free: 4.027 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.494e-06/2.494e-06, allocations: 0 / 0.8775 GB, free: 6.594 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.327e-05/3.577e-05, allocations: 4.844 kB / 0.8775 GB, free: 6.59 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002186/0.002222, allocations: 0.8689 MB / 0.8784 GB, free: 5.75 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001918/0.00414, allocations: 1.197 MB / 0.8795 GB, free: 4.543 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.103e-05/0.004201, allocations: 4 kB / 0.8795 GB, free: 4.539 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.672e-05/0.004237, allocations: 11.86 kB / 0.8796 GB, free: 4.527 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.79e-05/0.004335, allocations: 18.41 kB / 0.8796 GB, free: 4.512 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005181/0.004853, allocations: 152.3 kB / 0.8797 GB, free: 4.363 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002643/0.005118, allocations: 165.3 kB / 0.8799 GB, free: 4.203 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.005241, allocations: 25.3 kB / 0.8799 GB, free: 4.18 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.005416, allocations: 99.78 kB / 0.88 GB, free: 4.082 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.005541, allocations: 51.86 kB / 0.88 GB, free: 4.031 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.61e-05/0.005587, allocations: 16 kB / 0.8801 GB, free: 4.016 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.968e-05/0.005667, allocations: 24.98 kB / 0.8801 GB, free: 3.992 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.133e-05/0.005708, allocations: 27.84 kB / 0.8801 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 9.436e-05/0.005802, allocations: 56.98 kB / 0.8802 GB, free: 3.91 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003163/0.006119, allocations: 183.5 kB / 0.8803 GB, free: 3.73 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.006121, allocations: 3.938 kB / 0.8803 GB, free: 3.727 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.643e-06/0.006123, allocations: 0.6562 kB / 0.8803 GB, free: 3.727 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.006128, allocations: 0 / 0.8803 GB, free: 3.727 MB / 0.8386 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.0008597/0.006988, allocations: 0.5206 MB / 0.8808 GB, free: 3.148 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.007028, allocations: 13.62 kB / 0.8809 GB, free: 3.137 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.963e-05/0.007128, allocations: 20.84 kB / 0.8809 GB, free: 3.117 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004777/0.007606, allocations: 179.8 kB / 0.8811 GB, free: 2.918 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.007625, allocations: 8.375 kB / 0.8811 GB, free: 2.91 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.091e-05/0.007666, allocations: 12.38 kB / 0.8811 GB, free: 2.898 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002268/0.007893, allocations: 90.14 kB / 0.8812 GB, free: 2.805 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.007902, allocations: 192 / 0.8812 GB, free: 2.805 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.007917, allocations: 4.375 kB / 0.8812 GB, free: 2.801 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.007926, allocations: 8.062 kB / 0.8812 GB, free: 2.793 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001344/0.008061, allocations: 43.95 kB / 0.8812 GB, free: 2.75 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000787/0.008848, allocations: 380.7 kB / 0.8816 GB, free: 2.344 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001121/0.00896, allocations: 35.06 kB / 0.8816 GB, free: 2.297 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.238e-05/0.009032, allocations: 25.36 kB / 0.8816 GB, free: 2.27 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.251e-05/0.009055, allocations: 4 kB / 0.8816 GB, free: 2.266 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002063/0.009261, allocations: 98.05 kB / 0.8817 GB, free: 2.156 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.112e-06/0.009262, allocations: 0 / 0.8817 GB, free: 2.156 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0004432/0.009705, allocations: 133.8 kB / 0.8819 GB, free: 2.02 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.00976, allocations: 55.41 kB / 0.8819 GB, free: 1.953 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/0.009984, allocations: 211.8 kB / 0.8821 GB, free: 1.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.606e-05/0.01002, allocations: 33.7 kB / 0.8821 GB, free: 1.691 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.01015, allocations: 158.8 kB / 0.8823 GB, free: 1.531 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.816e-05/0.01019, allocations: 31.8 kB / 0.8823 GB, free: 1.5 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.01029, allocations: 55.34 kB / 0.8824 GB, free: 1.438 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002962/0.01059, allocations: 0.504 MB / 0.8829 GB, free: 0.9219 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.01076, allocations: 77.67 kB / 0.8829 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002938/0.01106, allocations: 205.6 kB / 0.8831 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003672/0.01143, allocations: 241.4 kB / 0.8834 GB, free: 288 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.01143, allocations: 0 / 0.8834 GB, free: 288 kB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005688/0.012, allocations: 288.7 kB / 0.8836 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.818e-05/0.01205, allocations: 37.64 kB / 0.8837 GB, free: 15.94 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.01205, allocations: 4.375 kB / 0.8837 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.01208, allocations: 8 kB / 0.8837 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.01218, allocations: 23.92 kB / 0.8837 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.01219, allocations: 4 kB / 0.8837 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.01238, allocations: 35.91 kB / 0.8838 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/0.01241, allocations: 8 kB / 0.8838 GB, free: 15.86 MB / 0.8542 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.0001644/0.01257, allocations: 183.8 kB / 0.8839 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.883e-05/0.0126, allocations: 15.89 kB / 0.884 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.333e-05/0.01264, allocations: 16.78 kB / 0.884 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.01264, allocations: 4 kB / 0.884 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.01265, allocations: 0 / 0.884 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.01265, allocations: 0 / 0.884 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005908/0.01324, allocations: 397.3 kB / 0.8844 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01325, allocations: 0 / 0.8844 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-05/0.01332, allocations: 11.94 kB / 0.8844 GB, free: 15.19 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.01332, allocations: 0 / 0.8844 GB, free: 15.19 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.01333, allocations: 7.984 kB / 0.8844 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.01334, allocations: 3.938 kB / 0.8844 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.01334, allocations: 0 / 0.8844 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004587/0.0138, allocations: 299.7 kB / 0.8847 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.339e-05/0.01381, allocations: 3.953 kB / 0.8847 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.01383, allocations: 4 kB / 0.8847 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.246e-05/0.0139, allocations: 4 kB / 0.8847 GB, free: 14.85 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.174e-05/0.01395, allocations: 7.984 kB / 0.8847 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.01397, allocations: 15.92 kB / 0.8847 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.000113/0.01408, allocations: 147.2 kB / 0.8848 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.01408, allocations: 0 / 0.8848 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002859/0.01437, allocations: 31.95 kB / 0.8849 GB, free: 14.65 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intWitRes2.y,intWitRes1.y,intDef.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.0002154/0.01459, allocations: 123.1 kB / 0.885 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004719/0.01506, allocations: 223.2 kB / 0.8852 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.01506, allocations: 3.938 kB / 0.8852 GB, free: 14.28 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001564/0.01522, allocations: 43.67 kB / 0.8852 GB, free: 14.23 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.01557, allocations: 22.28 kB / 0.8853 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005944/0.01616, allocations: 258.4 kB / 0.8855 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001025/0.01626, allocations: 97.73 kB / 0.8856 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.241e-05/0.01632, allocations: 16.83 kB / 0.8856 GB, free: 13.8 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/0.01636, allocations: 16.5 kB / 0.8856 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of SimCode: time 4.51e-07/0.01637, allocations: 0 / 0.8856 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of Templates: time 0.006034/0.0224, allocations: 1.748 MB / 0.8873 GB, free: 12.08 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.644640324055217]