Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0008646/0.0008646, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.0009837/0.0009837, allocations: 169.9 kB / 22.46 MB, free: 2.105 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 0.9097/0.9097, allocations: 177.1 MB / 202.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.746/1.746, allocations: 377.9 MB / 0.6221 GB, free: 8.637 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.105e-06/3.105e-06, allocations: 0 / 0.981 GB, free: 2.5 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.317e-05/2.628e-05, allocations: 2.281 kB / 0.981 GB, free: 2.496 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001604/0.001631, allocations: 0.8559 MB / 0.9819 GB, free: 1.645 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001288/0.002919, allocations: 1.197 MB / 0.983 GB, free: 444 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.476e-05/0.002984, allocations: 0 / 0.983 GB, free: 444 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.599e-05/0.00302, allocations: 7.875 kB / 0.983 GB, free: 436 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.679e-05/0.003097, allocations: 31.72 kB / 0.9831 GB, free: 404 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004692/0.003566, allocations: 149.3 kB / 0.9832 GB, free: 256 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001767/0.003742, allocations: 163.6 kB / 0.9834 GB, free: 92 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.003865, allocations: 37.22 kB / 0.9834 GB, free: 56 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001373/0.004003, allocations: 87.86 kB / 0.9835 GB, free: 15.97 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 9.342e-05/0.004096, allocations: 55.84 kB / 0.9835 GB, free: 15.91 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.004122, allocations: 16 kB / 0.9836 GB, free: 15.9 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.529e-05/0.004188, allocations: 27.92 kB / 0.9836 GB, free: 15.87 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 2.982e-05/0.004218, allocations: 27.91 kB / 0.9836 GB, free: 15.84 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 5.669e-05/0.004274, allocations: 55.89 kB / 0.9837 GB, free: 15.79 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002167/0.004491, allocations: 187.4 kB / 0.9838 GB, free: 15.61 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.004494, allocations: 0 / 0.9838 GB, free: 15.61 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.042e-06/0.004495, allocations: 0 / 0.9838 GB, free: 15.61 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.0045, allocations: 0 / 0.9838 GB, free: 15.61 MB / 0.948 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.0005654/0.005065, allocations: 414.1 kB / 0.9842 GB, free: 15.15 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.005106, allocations: 8.031 kB / 0.9843 GB, free: 15.14 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.176e-05/0.005138, allocations: 46.67 kB / 0.9843 GB, free: 15.09 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.665e-05/0.005184, allocations: 20.84 kB / 0.9843 GB, free: 15.07 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.00553, allocations: 193.7 kB / 0.9845 GB, free: 14.86 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.005547, allocations: 12.36 kB / 0.9845 GB, free: 14.84 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.814e-05/0.005575, allocations: 12.33 kB / 0.9845 GB, free: 14.83 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001558/0.005731, allocations: 90.2 kB / 0.9846 GB, free: 14.74 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-06/0.005738, allocations: 192 / 0.9846 GB, free: 14.74 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.00575, allocations: 4.375 kB / 0.9846 GB, free: 14.73 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.005755, allocations: 3.938 kB / 0.9846 GB, free: 14.73 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.186e-05/0.005847, allocations: 51.89 kB / 0.9847 GB, free: 14.68 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005272/0.006374, allocations: 331.7 kB / 0.985 GB, free: 14.31 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 7.419e-05/0.006449, allocations: 38.5 kB / 0.985 GB, free: 14.27 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.51e-05/0.006494, allocations: 24.83 kB / 0.985 GB, free: 14.24 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.006512, allocations: 3.938 kB / 0.985 GB, free: 14.23 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.006707, allocations: 99.44 kB / 0.9851 GB, free: 14.12 MB / 0.948 GB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.006709, allocations: 0 / 0.9851 GB, free: 14.12 MB / 0.948 GB Notification: Performance of matching and sorting (n=10): time 0.0002757/0.006984, allocations: 133.5 kB / 0.9853 GB, free: 13.99 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.007024, allocations: 59.34 kB / 0.9853 GB, free: 13.92 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.007125, allocations: 144.3 kB / 0.9855 GB, free: 13.77 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.007146, allocations: 33.7 kB / 0.9855 GB, free: 13.73 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 6.327e-05/0.007209, allocations: 112.2 kB / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.598e-05/0.007235, allocations: 35.73 kB / 0.9856 GB, free: 13.58 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.618e-05/0.007292, allocations: 41.7 kB / 0.9857 GB, free: 13.54 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.412e-05/0.007376, allocations: 326.8 kB / 0.986 GB, free: 13.21 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.007489, allocations: 77.66 kB / 0.9861 GB, free: 13.12 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.00762, allocations: 160.8 kB / 0.9862 GB, free: 12.92 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001928/0.007813, allocations: 200.6 kB / 0.9864 GB, free: 12.68 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.007816, allocations: 0 / 0.9864 GB, free: 12.68 MB / 0.948 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002938/0.00811, allocations: 276.7 kB / 0.9867 GB, free: 12.39 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003044/0.008414, allocations: 43.97 kB / 0.9867 GB, free: 12.34 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.008421, allocations: 4 kB / 0.9867 GB, free: 12.34 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.008436, allocations: 4.375 kB / 0.9867 GB, free: 12.34 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.55e-05/0.008501, allocations: 27.92 kB / 0.9867 GB, free: 12.31 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.008509, allocations: 4 kB / 0.9868 GB, free: 12.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/0.008625, allocations: 51.78 kB / 0.9868 GB, free: 12.25 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.00864, allocations: 8 kB / 0.9868 GB, free: 12.25 MB / 0.948 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.949e-05/0.008719, allocations: 129.8 kB / 0.9869 GB, free: 12.11 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.107e-05/0.00873, allocations: 11.94 kB / 0.9869 GB, free: 12.1 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.914e-05/0.008759, allocations: 12.78 kB / 0.987 GB, free: 12.09 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.008762, allocations: 8 kB / 0.987 GB, free: 12.08 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.008768, allocations: 0 / 0.987 GB, free: 12.08 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.008771, allocations: 384 / 0.987 GB, free: 12.08 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003625/0.009133, allocations: 373.3 kB / 0.9873 GB, free: 11.66 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.009135, allocations: 0 / 0.9873 GB, free: 11.66 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.265e-05/0.009187, allocations: 15.98 kB / 0.9873 GB, free: 11.65 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.009189, allocations: 0 / 0.9873 GB, free: 11.65 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.009199, allocations: 4 kB / 0.9873 GB, free: 11.64 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.207e-06/0.009204, allocations: 11.92 kB / 0.9874 GB, free: 11.63 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.009205, allocations: 4 kB / 0.9874 GB, free: 11.63 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002545/0.009459, allocations: 235.4 kB / 0.9876 GB, free: 11.38 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.365e-05/0.009473, allocations: 7.953 kB / 0.9876 GB, free: 11.38 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.966e-05/0.009493, allocations: 4.031 kB / 0.9876 GB, free: 11.37 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.019e-05/0.009563, allocations: 12.08 kB / 0.9876 GB, free: 11.36 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.009604, allocations: 11.97 kB / 0.9876 GB, free: 11.35 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.009616, allocations: 7.984 kB / 0.9876 GB, free: 11.34 MB / 0.948 GB Notification: Performance of sorting global known variables: time 6.049e-05/0.009677, allocations: 109.8 kB / 0.9877 GB, free: 11.23 MB / 0.948 GB Notification: Performance of sort global known variables: time 1e-07/0.009677, allocations: 4 kB / 0.9877 GB, free: 11.23 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0003063/0.009983, allocations: 31.94 kB / 0.9878 GB, free: 11.2 MB / 0.948 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.0006101/0.01059, allocations: 0.7748 MB / 0.9885 GB, free: 10.4 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002621/0.01086, allocations: 201.2 kB / 0.9887 GB, free: 10.18 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.01086, allocations: 0 / 0.9887 GB, free: 10.18 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.218e-05/0.01092, allocations: 36.19 kB / 0.9887 GB, free: 10.15 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.01114, allocations: 28.05 kB / 0.9888 GB, free: 10.12 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.01278, allocations: 2.078 MB / 0.9908 GB, free: 7.859 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.35e-05/0.01285, allocations: 93.67 kB / 0.9909 GB, free: 7.746 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 4.8e-05/0.01289, allocations: 16.64 kB / 0.9909 GB, free: 7.727 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.923e-05/0.01294, allocations: 40.48 kB / 0.9909 GB, free: 7.688 MB / 0.948 GB Notification: Performance of SimCode: time 6.41e-07/0.01294, allocations: 0 / 0.9909 GB, free: 7.688 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01824/0.03118, allocations: 3.965 MB / 0.9948 GB, free: 3.902 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.786/6.818, allocations: 9.875 kB / 0.9948 GB, free: 3.898 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 10.959693263284862]