Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.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.001392/0.001392, allocations: 100.8 kB / 19.74 MB, free: 2.07 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.001539/0.001539, allocations: 211.2 kB / 23.03 MB, free: 4.863 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.497/1.497, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.188/3.188, allocations: 0.49 GB / 0.7959 GB, free: 35.38 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.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance") [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.002095/0.002095, allocations: 71.42 kB / 1.155 GB, free: 25.06 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.3746, allocations: 176.1 MB / 1.327 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005179/0.3798, allocations: 3.073 MB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002432/0.3822, allocations: 1.313 MB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.3823, allocations: 7.938 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.3835, allocations: 339.6 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000379/0.3838, allocations: 159.2 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003591/0.3842, allocations: 132.6 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003997/0.3846, allocations: 303 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004025/0.385, allocations: 181.1 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/0.3852, allocations: 131.5 kB / 1.333 GB, free: 11.27 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003285/0.3855, allocations: 139.4 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.331e-05/0.3855, allocations: 16 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002669/0.3858, allocations: 151.7 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.3859, allocations: 79.8 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.386, allocations: 95.58 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004692/0.3865, allocations: 338.8 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3865, allocations: 0 / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3865, allocations: 4 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.773e-06/0.3865, allocations: 0 / 1.333 GB, free: 10.46 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008706/0.3874, allocations: 457.4 kB / 1.334 GB, free: 9.98 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.3874, allocations: 8.031 kB / 1.334 GB, free: 9.973 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005728/0.388, allocations: 80.72 kB / 1.334 GB, free: 9.895 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.3883, allocations: 186.2 kB / 1.334 GB, free: 9.688 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.3883, allocations: 12.75 kB / 1.334 GB, free: 9.676 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.81e-05/0.3884, allocations: 24.36 kB / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005262/0.3889, allocations: 376.6 kB / 1.334 GB, free: 9.238 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.3889, allocations: 0 / 1.334 GB, free: 9.238 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.77e-05/0.389, allocations: 16 kB / 1.335 GB, free: 9.223 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.62e-05/0.389, allocations: 16.36 kB / 1.335 GB, free: 9.207 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003465/0.3893, allocations: 196.9 kB / 1.335 GB, free: 9.016 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.3906, allocations: 0.9849 MB / 1.336 GB, free: 7.973 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002409/0.3909, allocations: 94.55 kB / 1.336 GB, free: 7.871 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.07e-05/0.3909, allocations: 32.84 kB / 1.336 GB, free: 7.836 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-06/0.3909, allocations: 0 / 1.336 GB, free: 7.836 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.391, allocations: 38.56 kB / 1.336 GB, free: 7.789 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 9.22e-07/0.391, allocations: 0 / 1.336 GB, free: 7.789 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004466/0.3914, allocations: 142.3 kB / 1.336 GB, free: 7.641 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.3915, allocations: 55.41 kB / 1.336 GB, free: 7.574 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001929/0.3917, allocations: 186.3 kB / 1.336 GB, free: 7.383 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.32e-05/0.3917, allocations: 33.64 kB / 1.336 GB, free: 7.344 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.3918, allocations: 171.9 kB / 1.336 GB, free: 7.172 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.901e-05/0.3918, allocations: 35.92 kB / 1.336 GB, free: 7.137 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.76e-05/0.3919, allocations: 29.72 kB / 1.336 GB, free: 7.102 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.392, allocations: 330.7 kB / 1.337 GB, free: 6.77 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.776e-05/0.3921, allocations: 35.98 kB / 1.337 GB, free: 6.734 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.3922, allocations: 104.5 kB / 1.337 GB, free: 6.602 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.3924, allocations: 144.4 kB / 1.337 GB, free: 6.43 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.3924, allocations: 64 / 1.337 GB, free: 6.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003261/0.3927, allocations: 194.2 kB / 1.337 GB, free: 6.23 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.3928, allocations: 5.562 kB / 1.337 GB, free: 6.227 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.3928, allocations: 4.281 kB / 1.337 GB, free: 6.223 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001665/0.3929, allocations: 28.84 kB / 1.337 GB, free: 6.191 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.3931, allocations: 27.92 kB / 1.337 GB, free: 6.164 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.3942, allocations: 1.292 MB / 1.339 GB, free: 4.766 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.3943, allocations: 15.92 kB / 1.339 GB, free: 4.75 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.3944, allocations: 4.156 kB / 1.339 GB, free: 4.746 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001513/0.3945, allocations: 158.8 kB / 1.339 GB, free: 4.582 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.236e-05/0.3946, allocations: 19.84 kB / 1.339 GB, free: 4.562 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.087e-05/0.3946, allocations: 17.41 kB / 1.339 GB, free: 4.547 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.3946, allocations: 0 / 1.339 GB, free: 4.547 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.3946, allocations: 0 / 1.339 GB, free: 4.547 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.3946, allocations: 0 / 1.339 GB, free: 4.547 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004795/0.3951, allocations: 371.2 kB / 1.339 GB, free: 4.145 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.3951, allocations: 0 / 1.339 GB, free: 4.145 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.255e-05/0.3951, allocations: 4.094 kB / 1.339 GB, free: 4.141 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.922e-05/0.3952, allocations: 32.78 kB / 1.339 GB, free: 4.105 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.3952, allocations: 0 / 1.339 GB, free: 4.105 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001051/0.3962, allocations: 1.295 MB / 1.34 GB, free: 2.707 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3963, allocations: 0 / 1.34 GB, free: 2.707 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002309/0.3965, allocations: 208.2 kB / 1.341 GB, free: 2.484 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.239e-05/0.3965, allocations: 31.98 kB / 1.341 GB, free: 2.453 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.3965, allocations: 0 / 1.341 GB, free: 2.453 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.3966, allocations: 4 kB / 1.341 GB, free: 2.449 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.977e-05/0.3967, allocations: 11.97 kB / 1.341 GB, free: 2.438 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.3967, allocations: 4 kB / 1.341 GB, free: 2.434 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001155/0.3968, allocations: 128.3 kB / 1.341 GB, free: 2.309 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3968, allocations: 3.938 kB / 1.341 GB, free: 2.305 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003441/0.3971, allocations: 51.89 kB / 1.341 GB, free: 2.254 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001259/0.3973, allocations: 108 kB / 1.341 GB, free: 2.137 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003788/0.3977, allocations: 202.5 kB / 1.341 GB, free: 1.926 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3977, allocations: 0 / 1.341 GB, free: 1.926 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.00016/0.3978, allocations: 142.7 kB / 1.341 GB, free: 1.773 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.3982, allocations: 32.47 kB / 1.341 GB, free: 1.742 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006708/0.3988, allocations: 404.5 kB / 1.342 GB, free: 1.316 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001456/0.399, allocations: 131.9 kB / 1.342 GB, free: 1.164 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.249e-05/0.399, allocations: 15.44 kB / 1.342 GB, free: 1.148 MB / 1.029 GB Notification: Performance of SimCode: time 4.11e-07/0.399, allocations: 4 kB / 1.342 GB, free: 1.145 MB / 1.029 GB Notification: Performance of Templates: time 0.005337/0.4044, allocations: 2.987 MB / 1.345 GB, free: 14.17 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.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: 11.92060595494695]