Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.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.00166/0.00166, allocations: 100.8 kB / 19.74 MB, free: 2.066 MB / 14.72 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.00207/0.00207, allocations: 218.2 kB / 23.04 MB, free: 4.852 MB / 14.72 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.439/1.439, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.179/3.179, allocations: 0.49 GB / 0.7959 GB, free: 35.53 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 63.72 kB / 1.155 GB, free: 25.23 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3374, allocations: 176.1 MB / 1.327 GB, free: 0.9844 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.007023/0.3444, allocations: 4.274 MB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003557/0.3479, allocations: 1.831 MB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002556/0.3482, allocations: 11.94 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001852/0.3501, allocations: 0.5983 MB / 1.334 GB, free: 10.25 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0007096/0.3508, allocations: 266.6 kB / 1.334 GB, free: 9.984 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007636/0.3515, allocations: 255.4 kB / 1.334 GB, free: 9.734 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0008155/0.3523, allocations: 0.615 MB / 1.335 GB, free: 9.117 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006395/0.353, allocations: 351.1 kB / 1.335 GB, free: 8.77 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003331/0.3533, allocations: 251.2 kB / 1.335 GB, free: 8.523 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000541/0.3539, allocations: 270.9 kB / 1.336 GB, free: 8.258 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.295e-05/0.3539, allocations: 36 kB / 1.336 GB, free: 8.223 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004425/0.3544, allocations: 227.5 kB / 1.336 GB, free: 8 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001756/0.3545, allocations: 151.5 kB / 1.336 GB, free: 7.852 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002456/0.3548, allocations: 187.2 kB / 1.336 GB, free: 7.668 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0008288/0.3556, allocations: 0.6226 MB / 1.337 GB, free: 7.043 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3556, allocations: 0 / 1.337 GB, free: 7.043 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3556, allocations: 0 / 1.337 GB, free: 7.043 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.3556, allocations: 0 / 1.337 GB, free: 7.043 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001338/0.357, allocations: 0.6571 MB / 1.337 GB, free: 6.355 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.357, allocations: 8.031 kB / 1.337 GB, free: 6.348 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/0.358, allocations: 152.5 kB / 1.338 GB, free: 6.199 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004959/0.3585, allocations: 284.8 kB / 1.338 GB, free: 5.895 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/0.3585, allocations: 21.38 kB / 1.338 GB, free: 5.875 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.071e-05/0.3586, allocations: 40.36 kB / 1.338 GB, free: 5.836 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009772/0.3596, allocations: 0.6823 MB / 1.339 GB, free: 5.078 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.3596, allocations: 4 kB / 1.339 GB, free: 5.074 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/0.3596, allocations: 15.94 kB / 1.339 GB, free: 5.059 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.615e-05/0.3597, allocations: 32.64 kB / 1.339 GB, free: 5.027 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006323/0.3603, allocations: 386.2 kB / 1.339 GB, free: 4.648 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00241/0.3627, allocations: 1.668 MB / 1.341 GB, free: 2.91 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005671/0.3633, allocations: 235.7 kB / 1.341 GB, free: 2.672 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.3635, allocations: 105.1 kB / 1.341 GB, free: 2.566 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.3635, allocations: 4 kB / 1.341 GB, free: 2.562 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.469e-05/0.3635, allocations: 42.5 kB / 1.341 GB, free: 2.512 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.863e-06/0.3636, allocations: 0 / 1.341 GB, free: 2.512 MB / 1.029 GB Notification: Performance of matching and sorting (n=23): time 0.002188/0.3657, allocations: 0.8941 MB / 1.342 GB, free: 1.578 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.3658, allocations: 59.34 kB / 1.342 GB, free: 1.508 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000315/0.3661, allocations: 273.8 kB / 1.342 GB, free: 1.23 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.3661, allocations: 33.7 kB / 1.342 GB, free: 1.191 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.3663, allocations: 240 kB / 1.342 GB, free: 0.9492 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.442e-05/0.3664, allocations: 87.27 kB / 1.343 GB, free: 0.8633 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.3665, allocations: 61.98 kB / 1.343 GB, free: 0.793 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3667, allocations: 338.8 kB / 1.343 GB, free: 464 kB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002079/0.3669, allocations: 104.6 kB / 1.343 GB, free: 360 kB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002534/0.3671, allocations: 187.8 kB / 1.343 GB, free: 132 kB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004752/0.3676, allocations: 320.9 kB / 1.344 GB, free: 15.78 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3676, allocations: 0 / 1.344 GB, free: 15.78 MB / 1.045 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008017/0.3684, allocations: 437.9 kB / 1.344 GB, free: 15.34 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.3684, allocations: 4 kB / 1.344 GB, free: 15.33 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.3684, allocations: 7.938 kB / 1.344 GB, free: 15.32 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003778/0.3688, allocations: 98.83 kB / 1.344 GB, free: 15.22 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.3691, allocations: 63.91 kB / 1.344 GB, free: 15.16 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003696/0.3728, allocations: 4.009 MB / 1.348 GB, free: 10.84 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002298/0.373, allocations: 8 kB / 1.348 GB, free: 10.83 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.758e-05/0.3731, allocations: 16 kB / 1.348 GB, free: 10.81 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000246/0.3733, allocations: 182.6 kB / 1.348 GB, free: 10.62 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.848e-05/0.3734, allocations: 31.95 kB / 1.348 GB, free: 10.59 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.619e-05/0.3735, allocations: 38.25 kB / 1.348 GB, free: 10.55 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.3735, allocations: 4 kB / 1.348 GB, free: 10.55 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.3735, allocations: 3.938 kB / 1.348 GB, free: 10.55 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.3735, allocations: 0 / 1.348 GB, free: 10.55 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004209/0.3739, allocations: 285.1 kB / 1.349 GB, free: 10.24 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3739, allocations: 0 / 1.349 GB, free: 10.24 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.3741, allocations: 35.92 kB / 1.349 GB, free: 10.21 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003192/0.3744, allocations: 94.5 kB / 1.349 GB, free: 10.11 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.3744, allocations: 4 kB / 1.349 GB, free: 10.1 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00358/0.378, allocations: 4.012 MB / 1.353 GB, free: 5.785 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.378, allocations: 0 / 1.353 GB, free: 5.785 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009643/0.379, allocations: 0.5524 MB / 1.353 GB, free: 5.207 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.3791, allocations: 51.81 kB / 1.353 GB, free: 5.156 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.3791, allocations: 4 kB / 1.353 GB, free: 5.152 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.3793, allocations: 12 kB / 1.353 GB, free: 5.141 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.01e-05/0.3794, allocations: 27.75 kB / 1.353 GB, free: 5.113 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.3794, allocations: 8 kB / 1.353 GB, free: 5.105 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002055/0.3796, allocations: 185.2 kB / 1.353 GB, free: 4.926 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3796, allocations: 0 / 1.353 GB, free: 4.926 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0005085/0.3802, allocations: 100.1 kB / 1.354 GB, free: 4.828 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001468/0.3803, allocations: 111.2 kB / 1.354 GB, free: 4.707 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009376/0.3812, allocations: 0.5871 MB / 1.354 GB, free: 4.082 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3812, allocations: 0 / 1.354 GB, free: 4.082 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0005517/0.3818, allocations: 459.9 kB / 1.355 GB, free: 3.594 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004791/0.3823, allocations: 76 kB / 1.355 GB, free: 3.523 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.3836, allocations: 0.7672 MB / 1.355 GB, free: 2.73 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.3839, allocations: 228 kB / 1.356 GB, free: 2.484 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.58e-05/0.3839, allocations: 31.44 kB / 1.356 GB, free: 2.457 MB / 1.045 GB Notification: Performance of SimCode: time 5.61e-07/0.3839, allocations: 3.938 kB / 1.356 GB, free: 2.453 MB / 1.045 GB Notification: Performance of Templates: time 0.0127/0.3966, allocations: 8.694 MB / 1.364 GB, free: 9.77 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.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: 13.175069927005097]