Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001271/0.001271, allocations: 123.1 kB / 17.17 MB, free: 5.918 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.001407/0.001407, allocations: 210.3 kB / 20.13 MB, free: 2.98 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.511/1.511, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.998/2.998, allocations: 0.5003 GB / 0.8026 GB, free: 6.652 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_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.002217/0.002217, allocations: 71.91 kB / 1.165 GB, free: 500 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9862/0.9885, allocations: 179 MB / 1.34 GB, free: 16.22 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004611/0.9931, allocations: 3.132 MB / 1.343 GB, free: 14.1 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002146/0.9952, allocations: 1.39 MB / 1.345 GB, free: 13.14 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001811/0.9954, allocations: 3.688 kB / 1.345 GB, free: 13.14 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.00102/0.9964, allocations: 351.9 kB / 1.345 GB, free: 12.93 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0004088/0.9968, allocations: 146.1 kB / 1.345 GB, free: 12.85 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004196/0.9972, allocations: 134.7 kB / 1.345 GB, free: 12.78 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004107/0.9977, allocations: 305.5 kB / 1.345 GB, free: 12.65 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004032/0.9981, allocations: 188 kB / 1.346 GB, free: 12.57 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.9982, allocations: 131.3 kB / 1.346 GB, free: 12.51 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003428/0.9986, allocations: 143 kB / 1.346 GB, free: 12.46 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.958e-05/0.9986, allocations: 19.25 kB / 1.346 GB, free: 12.46 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000363/0.999, allocations: 177 kB / 1.346 GB, free: 12.39 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.9991, allocations: 82.81 kB / 1.346 GB, free: 12.36 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.9992, allocations: 109.9 kB / 1.346 GB, free: 12.3 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005598/0.9998, allocations: 338.1 kB / 1.347 GB, free: 12.18 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.9998, allocations: 0 / 1.347 GB, free: 12.18 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.222e-06/0.9998, allocations: 3.938 kB / 1.347 GB, free: 12.18 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.787e-06/0.9998, allocations: 0 / 1.347 GB, free: 12.18 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008379/1.001, allocations: 0.5186 MB / 1.347 GB, free: 11.71 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/1.001, allocations: 9.25 kB / 1.347 GB, free: 11.71 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.232e-05/1.001, allocations: 14.55 kB / 1.347 GB, free: 11.7 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.109e-05/1.001, allocations: 51.39 kB / 1.347 GB, free: 11.66 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006109/1.001, allocations: 78.39 kB / 1.347 GB, free: 11.64 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/1.002, allocations: 256.1 kB / 1.347 GB, free: 11.4 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/1.002, allocations: 12.47 kB / 1.347 GB, free: 11.39 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.217e-05/1.002, allocations: 15.69 kB / 1.347 GB, free: 11.39 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004877/1.002, allocations: 302.9 kB / 1.348 GB, free: 11.22 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/1.002, allocations: 2.359 kB / 1.348 GB, free: 11.22 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.655e-05/1.002, allocations: 13.7 kB / 1.348 GB, free: 11.21 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.045e-05/1.002, allocations: 19.91 kB / 1.348 GB, free: 11.21 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000328/1.003, allocations: 197.5 kB / 1.348 GB, free: 11.14 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/1.004, allocations: 1.458 MB / 1.349 GB, free: 9.805 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/1.004, allocations: 173.5 kB / 1.35 GB, free: 9.66 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.784e-05/1.004, allocations: 33.61 kB / 1.35 GB, free: 9.641 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-06/1.004, allocations: 1.594 kB / 1.35 GB, free: 9.641 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.778e-05/1.004, allocations: 31.69 kB / 1.35 GB, free: 9.602 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/1.004, allocations: 0 / 1.35 GB, free: 9.602 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004921/1.005, allocations: 230.8 kB / 1.35 GB, free: 9.426 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.286e-05/1.005, allocations: 53.09 kB / 1.35 GB, free: 9.363 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001924/1.005, allocations: 203.7 kB / 1.35 GB, free: 9.227 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.066e-05/1.005, allocations: 27.11 kB / 1.35 GB, free: 9.195 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.224e-05/1.005, allocations: 166.7 kB / 1.35 GB, free: 9.051 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/1.005, allocations: 28.91 kB / 1.35 GB, free: 9.027 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.888e-05/1.005, allocations: 32.55 kB / 1.35 GB, free: 9.004 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.703e-05/1.005, allocations: 331.1 kB / 1.351 GB, free: 8.68 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.374e-05/1.005, allocations: 35.45 kB / 1.351 GB, free: 8.668 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.886e-05/1.005, allocations: 105.5 kB / 1.351 GB, free: 8.566 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001475/1.006, allocations: 143.3 kB / 1.351 GB, free: 8.445 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/1.006, allocations: 1.031 kB / 1.351 GB, free: 8.445 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000301/1.006, allocations: 191.1 kB / 1.351 GB, free: 8.344 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/1.006, allocations: 7.094 kB / 1.351 GB, free: 8.344 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/1.006, allocations: 2.469 kB / 1.351 GB, free: 8.344 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001845/1.006, allocations: 25.19 kB / 1.351 GB, free: 8.332 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/1.006, allocations: 34.56 kB / 1.351 GB, free: 8.324 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008486/1.007, allocations: 1.415 MB / 1.353 GB, free: 6.906 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/1.007, allocations: 22.08 kB / 1.353 GB, free: 6.891 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/1.007, allocations: 6.156 kB / 1.353 GB, free: 6.891 MB / 1.061 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.0001239/1.007, allocations: 154.8 kB / 1.353 GB, free: 6.75 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.329e-05/1.007, allocations: 16.59 kB / 1.353 GB, free: 6.742 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.232e-05/1.007, allocations: 14.81 kB / 1.353 GB, free: 6.734 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/1.007, allocations: 1.5 kB / 1.353 GB, free: 6.734 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/1.007, allocations: 0.5156 kB / 1.353 GB, free: 6.734 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/1.007, allocations: 2.203 kB / 1.353 GB, free: 6.734 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004961/1.008, allocations: 451.2 kB / 1.353 GB, free: 6.359 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/1.008, allocations: 0.6094 kB / 1.353 GB, free: 6.359 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.789e-05/1.008, allocations: 10.61 kB / 1.353 GB, free: 6.355 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.012e-05/1.008, allocations: 23.31 kB / 1.353 GB, free: 6.344 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/1.008, allocations: 1.125 kB / 1.353 GB, free: 6.344 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007541/1.009, allocations: 1.42 MB / 1.355 GB, free: 4.918 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/1.009, allocations: 0.7031 kB / 1.355 GB, free: 4.918 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002252/1.009, allocations: 215.7 kB / 1.355 GB, free: 4.742 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 5.787e-05/1.009, allocations: 98.05 kB / 1.355 GB, free: 4.637 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.764e-05/1.009, allocations: 0.6094 kB / 1.355 GB, free: 4.637 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/1.009, allocations: 7.859 kB / 1.355 GB, free: 4.633 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.234e-05/1.009, allocations: 9.031 kB / 1.355 GB, free: 4.629 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.423e-06/1.009, allocations: 2.188 kB / 1.355 GB, free: 4.629 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001243/1.009, allocations: 150.7 kB / 1.355 GB, free: 4.527 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/1.009, allocations: 0 / 1.355 GB, free: 4.527 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004043/1.01, allocations: 60.62 kB / 1.355 GB, free: 4.508 MB / 1.061 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.0003861/1.01, allocations: 0.7375 MB / 1.356 GB, free: 3.809 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003784/1.01, allocations: 198.7 kB / 1.356 GB, free: 3.672 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/1.01, allocations: 0 / 1.356 GB, free: 3.672 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001334/1.011, allocations: 147.2 kB / 1.356 GB, free: 3.547 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003714/1.011, allocations: 37.69 kB / 1.356 GB, free: 3.531 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/1.013, allocations: 2.062 MB / 1.358 GB, free: 1.887 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000221/1.013, allocations: 0.7458 MB / 1.359 GB, free: 1.184 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001062/1.013, allocations: 25.28 kB / 1.359 GB, free: 1.176 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.461e-05/1.014, allocations: 56.23 kB / 1.359 GB, free: 1.133 MB / 1.061 GB Notification: Performance of SimCode: time 5.11e-07/1.014, allocations: 0 / 1.359 GB, free: 1.133 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02607/1.04, allocations: 3.797 MB / 1.363 GB, free: 0.5273 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.09/11.13, allocations: 12.73 kB / 1.363 GB, free: 0.5195 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 17.783103377965745]