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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 113.1 kB / 17.6 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002125/0.002125, allocations: 186.7 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 225.6 MB / 249.4 MB, free: 3.168 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.981/2.981, allocations: 496.2 MB / 0.7819 GB, free: 12.26 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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=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 0.00204/0.00204, allocations: 71.89 kB / 1.136 GB, free: 12.35 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.263/1.265, allocations: 173.6 MB / 1.305 GB, free: 33.67 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002203/1.267, allocations: 0.8972 MB / 1.306 GB, free: 33.08 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001423/1.268, allocations: 1.181 MB / 1.308 GB, free: 32.22 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.783e-05/1.268, allocations: 0 / 1.308 GB, free: 32.22 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.658e-05/1.268, allocations: 11.06 kB / 1.308 GB, free: 32.21 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 9.363e-05/1.269, allocations: 18.7 kB / 1.308 GB, free: 32.2 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005249/1.269, allocations: 156.8 kB / 1.308 GB, free: 32.11 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002212/1.269, allocations: 163.6 kB / 1.308 GB, free: 32.04 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/1.269, allocations: 34.66 kB / 1.308 GB, free: 32.02 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/1.27, allocations: 64.88 kB / 1.308 GB, free: 32 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/1.27, allocations: 76.7 kB / 1.308 GB, free: 31.96 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.816e-05/1.27, allocations: 15.12 kB / 1.308 GB, free: 31.96 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.492e-05/1.27, allocations: 27.89 kB / 1.308 GB, free: 31.95 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.016e-05/1.27, allocations: 18.44 kB / 1.308 GB, free: 31.94 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.188e-05/1.27, allocations: 71.86 kB / 1.308 GB, free: 31.9 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002122/1.27, allocations: 173.1 kB / 1.308 GB, free: 31.83 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/1.27, allocations: 0 / 1.308 GB, free: 31.83 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.663e-06/1.27, allocations: 0 / 1.308 GB, free: 31.83 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.971e-06/1.27, allocations: 0 / 1.308 GB, free: 31.83 MB / 1.061 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.0006775/1.271, allocations: 464.1 kB / 1.309 GB, free: 31.39 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/1.271, allocations: 11.16 kB / 1.309 GB, free: 31.39 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.045e-05/1.271, allocations: 17.69 kB / 1.309 GB, free: 31.38 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004582/1.271, allocations: 249.9 kB / 1.309 GB, free: 31.16 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/1.271, allocations: 9.969 kB / 1.309 GB, free: 31.16 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/1.271, allocations: 17.09 kB / 1.309 GB, free: 31.15 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/1.272, allocations: 90.78 kB / 1.309 GB, free: 31.11 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/1.272, allocations: 3.938 kB / 1.309 GB, free: 31.1 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/1.272, allocations: 0 / 1.309 GB, free: 31.1 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/1.272, allocations: 2.594 kB / 1.309 GB, free: 31.1 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001607/1.272, allocations: 47.86 kB / 1.309 GB, free: 31.09 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006648/1.272, allocations: 395.9 kB / 1.31 GB, free: 30.77 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001045/1.273, allocations: 29.33 kB / 1.31 GB, free: 30.74 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.834e-05/1.273, allocations: 31 kB / 1.31 GB, free: 30.73 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/1.273, allocations: 2.781 kB / 1.31 GB, free: 30.73 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/1.273, allocations: 98.44 kB / 1.31 GB, free: 30.66 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/1.273, allocations: 0 / 1.31 GB, free: 30.66 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0004007/1.273, allocations: 137.9 kB / 1.31 GB, free: 30.6 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/1.273, allocations: 58.25 kB / 1.31 GB, free: 30.54 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.05e-05/1.273, allocations: 141 kB / 1.31 GB, free: 30.42 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/1.273, allocations: 32.64 kB / 1.31 GB, free: 30.39 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.486e-05/1.274, allocations: 118.1 kB / 1.31 GB, free: 30.29 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.804e-05/1.274, allocations: 22.75 kB / 1.31 GB, free: 30.27 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.108e-05/1.274, allocations: 52.8 kB / 1.31 GB, free: 30.23 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.839e-05/1.274, allocations: 321.2 kB / 1.311 GB, free: 29.92 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/1.274, allocations: 50.95 kB / 1.311 GB, free: 29.9 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/1.274, allocations: 133.4 kB / 1.311 GB, free: 29.78 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002588/1.274, allocations: 204.1 kB / 1.311 GB, free: 29.6 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/1.274, allocations: 0 / 1.311 GB, free: 29.6 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004041/1.275, allocations: 253.3 kB / 1.311 GB, free: 29.47 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.803e-05/1.275, allocations: 36.98 kB / 1.311 GB, free: 29.44 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/1.275, allocations: 2.562 kB / 1.311 GB, free: 29.44 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/1.275, allocations: 9.531 kB / 1.311 GB, free: 29.43 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001/1.275, allocations: 26.28 kB / 1.311 GB, free: 29.43 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/1.275, allocations: 14.16 kB / 1.311 GB, free: 29.42 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/1.275, allocations: 38.94 kB / 1.311 GB, free: 29.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/1.275, allocations: 15.56 kB / 1.311 GB, free: 29.41 MB / 1.061 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 7.725e-05/1.275, allocations: 132.6 kB / 1.311 GB, free: 29.28 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.934e-05/1.275, allocations: 17.17 kB / 1.311 GB, free: 29.27 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.48e-05/1.275, allocations: 8.719 kB / 1.311 GB, free: 29.26 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/1.275, allocations: 6.719 kB / 1.311 GB, free: 29.26 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/1.275, allocations: 3.938 kB / 1.311 GB, free: 29.25 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/1.275, allocations: 4.031 kB / 1.311 GB, free: 29.25 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004294/1.276, allocations: 388.7 kB / 1.312 GB, free: 28.92 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/1.276, allocations: 3.328 kB / 1.312 GB, free: 28.92 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.913e-05/1.276, allocations: 19 kB / 1.312 GB, free: 28.92 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/1.276, allocations: 3.938 kB / 1.312 GB, free: 28.91 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/1.276, allocations: 4 kB / 1.312 GB, free: 28.91 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/1.276, allocations: 2.875 kB / 1.312 GB, free: 28.91 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/1.276, allocations: 0 / 1.312 GB, free: 28.91 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003233/1.276, allocations: 242 kB / 1.312 GB, free: 28.75 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.061e-05/1.276, allocations: 88.19 kB / 1.312 GB, free: 28.64 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/1.276, allocations: 6.969 kB / 1.312 GB, free: 28.64 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.117e-05/1.276, allocations: 14.14 kB / 1.312 GB, free: 28.63 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/1.276, allocations: 14.39 kB / 1.312 GB, free: 28.62 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/1.276, allocations: 5.812 kB / 1.312 GB, free: 28.62 MB / 1.061 GB Notification: Performance of sorting global known variables: time 4.265e-05/1.276, allocations: 106.3 kB / 1.312 GB, free: 28.54 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.276, allocations: 0 / 1.312 GB, free: 28.54 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002747/1.276, allocations: 31.14 kB / 1.312 GB, free: 28.54 MB / 1.061 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.0001491/1.277, allocations: 109.9 kB / 1.312 GB, free: 28.45 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003472/1.277, allocations: 169.2 kB / 1.313 GB, free: 28.35 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/1.277, allocations: 0 / 1.313 GB, free: 28.35 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.687e-05/1.277, allocations: 37.06 kB / 1.313 GB, free: 28.34 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/1.277, allocations: 20.52 kB / 1.313 GB, free: 28.34 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004941/1.278, allocations: 280.1 kB / 1.313 GB, free: 28.14 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001275/1.278, allocations: 0.7052 MB / 1.314 GB, free: 27.45 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 5.656e-05/1.278, allocations: 20.7 kB / 1.314 GB, free: 27.44 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.697e-05/1.278, allocations: 17.22 kB / 1.314 GB, free: 27.43 MB / 1.061 GB Notification: Performance of SimCode: time 4.21e-07/1.278, allocations: 0 / 1.314 GB, free: 27.43 MB / 1.061 GB Notification: Performance of Templates: time 0.004668/1.283, allocations: 1.674 MB / 1.315 GB, free: 27.27 MB / 1.061 GB " [Timeout remaining time 299] 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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 400] 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: 9.97271705698222]