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.001294/0.001294, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001406/0.001406, allocations: 219 kB / 23.03 MB, free: 4.945 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.447/1.447, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.163/3.163, allocations: 0.49 GB / 0.7959 GB, free: 35.34 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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="cs",version="2.0",platforms={"static"}) [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.002088/0.002088, allocations: 69.41 kB / 1.155 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.393/0.3951, allocations: 176.1 MB / 1.327 GB, free: 1.535 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.006017/0.4011, allocations: 3.064 MB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002835/0.4039, allocations: 1.309 MB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002556/0.4042, allocations: 7.938 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.4055, allocations: 344.1 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004825/0.4059, allocations: 143.3 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.4064, allocations: 139.6 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004778/0.4069, allocations: 302.9 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004496/0.4073, allocations: 189.1 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.4076, allocations: 123.6 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003989/0.408, allocations: 147.5 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.181e-05/0.408, allocations: 20 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003638/0.4084, allocations: 159.6 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.4085, allocations: 83.73 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001574/0.4086, allocations: 87.61 kB / 1.333 GB, free: 11.43 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006223/0.4093, allocations: 334.8 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.4093, allocations: 0 / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.873e-06/0.4093, allocations: 3.938 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.579e-05/0.4093, allocations: 4 kB / 1.333 GB, free: 11.09 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.001047/0.4103, allocations: 465.3 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.4104, allocations: 8.031 kB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.237e-05/0.4104, allocations: 8.562 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.966e-05/0.4105, allocations: 54.73 kB / 1.333 GB, free: 10.53 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006268/0.4111, allocations: 76.72 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003463/0.4115, allocations: 191.4 kB / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.277e-05/0.4115, allocations: 12.75 kB / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.583e-05/0.4115, allocations: 20.38 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005743/0.4121, allocations: 380.2 kB / 1.334 GB, free: 9.797 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.4121, allocations: 0 / 1.334 GB, free: 9.797 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.4121, allocations: 12 kB / 1.334 GB, free: 9.785 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.708e-05/0.4122, allocations: 16.38 kB / 1.334 GB, free: 9.77 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003478/0.4125, allocations: 196.9 kB / 1.334 GB, free: 9.574 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.414, allocations: 1.031 MB / 1.335 GB, free: 8.477 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002722/0.4143, allocations: 102.5 kB / 1.335 GB, free: 8.367 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.102e-05/0.4144, allocations: 28.84 kB / 1.335 GB, free: 8.336 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.4144, allocations: 0 / 1.335 GB, free: 8.336 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.4144, allocations: 34.56 kB / 1.335 GB, free: 8.293 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.4144, allocations: 4 kB / 1.335 GB, free: 8.289 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004936/0.4149, allocations: 150.5 kB / 1.336 GB, free: 8.133 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/0.4149, allocations: 55.41 kB / 1.336 GB, free: 8.066 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002347/0.4152, allocations: 190.4 kB / 1.336 GB, free: 7.871 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.4152, allocations: 29.7 kB / 1.336 GB, free: 7.836 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.4153, allocations: 167.9 kB / 1.336 GB, free: 7.668 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.715e-05/0.4154, allocations: 23.84 kB / 1.336 GB, free: 7.645 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.334e-05/0.4154, allocations: 33.67 kB / 1.336 GB, free: 7.605 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001718/0.4156, allocations: 330.8 kB / 1.336 GB, free: 7.273 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.792e-05/0.4157, allocations: 43.97 kB / 1.336 GB, free: 7.23 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.4158, allocations: 100.5 kB / 1.336 GB, free: 7.102 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002109/0.416, allocations: 140.4 kB / 1.337 GB, free: 6.934 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.416, allocations: 8 kB / 1.337 GB, free: 6.926 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003703/0.4164, allocations: 190.1 kB / 1.337 GB, free: 6.73 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.4164, allocations: 4 kB / 1.337 GB, free: 6.727 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.4164, allocations: 4 kB / 1.337 GB, free: 6.723 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000194/0.4166, allocations: 29.11 kB / 1.337 GB, free: 6.691 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.4167, allocations: 35.88 kB / 1.337 GB, free: 6.656 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/0.4181, allocations: 1.311 MB / 1.338 GB, free: 5.227 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.4182, allocations: 15.89 kB / 1.338 GB, free: 5.211 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.4183, allocations: 11.98 kB / 1.338 GB, free: 5.199 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.000187/0.4185, allocations: 145.9 kB / 1.338 GB, free: 5.047 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.523e-05/0.4185, allocations: 23.84 kB / 1.338 GB, free: 5.023 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.813e-05/0.4185, allocations: 17.39 kB / 1.338 GB, free: 5.008 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.4185, allocations: 0 / 1.338 GB, free: 5.008 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.4186, allocations: 0 / 1.338 GB, free: 5.008 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.4186, allocations: 0 / 1.338 GB, free: 5.008 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000627/0.4192, allocations: 410.3 kB / 1.339 GB, free: 4.555 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/0.4192, allocations: 3.984 kB / 1.339 GB, free: 4.551 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.704e-05/0.4192, allocations: 12 kB / 1.339 GB, free: 4.539 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.766e-05/0.4193, allocations: 24.84 kB / 1.339 GB, free: 4.512 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.4193, allocations: 4 kB / 1.339 GB, free: 4.508 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/0.4205, allocations: 1.312 MB / 1.34 GB, free: 3.082 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4205, allocations: 0 / 1.34 GB, free: 3.082 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002621/0.4208, allocations: 212.2 kB / 1.34 GB, free: 2.855 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.306e-05/0.4208, allocations: 19.91 kB / 1.34 GB, free: 2.836 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.4209, allocations: 3.984 kB / 1.34 GB, free: 2.832 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.421, allocations: 12.16 kB / 1.34 GB, free: 2.82 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.746e-05/0.421, allocations: 3.984 kB / 1.34 GB, free: 2.816 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.421, allocations: 4 kB / 1.34 GB, free: 2.812 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001446/0.4212, allocations: 150.9 kB / 1.34 GB, free: 2.664 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4212, allocations: 4 kB / 1.34 GB, free: 2.66 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003614/0.4215, allocations: 55.83 kB / 1.341 GB, free: 2.605 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.0006117/0.4221, allocations: 0.7367 MB / 1.341 GB, free: 1.836 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004426/0.4226, allocations: 206.6 kB / 1.341 GB, free: 1.621 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.4226, allocations: 4 kB / 1.341 GB, free: 1.617 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001794/0.4228, allocations: 150.5 kB / 1.342 GB, free: 1.457 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.4232, allocations: 36.61 kB / 1.342 GB, free: 1.426 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.4259, allocations: 2.048 MB / 1.344 GB, free: 15.24 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001588/0.426, allocations: 135.9 kB / 1.344 GB, free: 15.09 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001128/0.4262, allocations: 25.86 kB / 1.344 GB, free: 15.07 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.682e-05/0.4262, allocations: 47.42 kB / 1.344 GB, free: 15.02 MB / 1.045 GB Notification: Performance of SimCode: time 7.51e-07/0.4262, allocations: 0 / 1.344 GB, free: 15.02 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02957/0.4558, allocations: 4.079 MB / 1.348 GB, free: 11.14 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.27, allocations: 4 kB / 1.348 GB, free: 11.14 MB / 1.045 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 420.0] 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: 18.990825169021264]