Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001228/0.001228, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.001383/0.001383, allocations: 210.2 kB / 20.13 MB, free: 2.949 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.481/1.481, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.916/2.916, allocations: 0.5003 GB / 0.8026 GB, free: 6.867 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.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",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.001948/0.001948, allocations: 63.91 kB / 1.165 GB, free: 0.5352 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9673/0.9692, allocations: 178.9 MB / 1.34 GB, free: 16.25 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005524/0.9748, allocations: 4.439 MB / 1.344 GB, free: 13.23 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002783/0.9775, allocations: 1.922 MB / 1.346 GB, free: 11.91 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/0.9778, allocations: 16.12 kB / 1.346 GB, free: 11.9 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.00148/0.9792, allocations: 0.606 MB / 1.347 GB, free: 11.54 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0005496/0.9798, allocations: 266.5 kB / 1.347 GB, free: 11.38 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006194/0.9804, allocations: 253.4 kB / 1.347 GB, free: 11.26 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0006467/0.9811, allocations: 0.6164 MB / 1.348 GB, free: 10.98 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005676/0.9816, allocations: 363.5 kB / 1.348 GB, free: 10.83 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002968/0.9819, allocations: 257.5 kB / 1.349 GB, free: 10.72 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004813/0.9824, allocations: 274.5 kB / 1.349 GB, free: 10.61 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.436e-05/0.9825, allocations: 36.81 kB / 1.349 GB, free: 10.61 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004803/0.9829, allocations: 268.4 kB / 1.349 GB, free: 10.52 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.9831, allocations: 154.9 kB / 1.349 GB, free: 10.46 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001986/0.9833, allocations: 222.7 kB / 1.35 GB, free: 10.33 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0008069/0.9841, allocations: 0.6063 MB / 1.35 GB, free: 10.11 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.9841, allocations: 5.219 kB / 1.35 GB, free: 10.11 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.633e-06/0.9841, allocations: 0 / 1.35 GB, free: 10.11 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.05e-05/0.9841, allocations: 0 / 1.35 GB, free: 10.11 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001238/0.9854, allocations: 0.7406 MB / 1.351 GB, free: 9.531 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.9854, allocations: 15.08 kB / 1.351 GB, free: 9.527 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.506e-05/0.9854, allocations: 8.688 kB / 1.351 GB, free: 9.523 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.241e-05/0.9855, allocations: 73.92 kB / 1.351 GB, free: 9.465 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001002/0.9865, allocations: 146.6 kB / 1.351 GB, free: 9.438 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004249/0.9869, allocations: 348 kB / 1.351 GB, free: 9.152 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.482e-05/0.987, allocations: 30.41 kB / 1.351 GB, free: 9.137 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.202e-05/0.987, allocations: 34.47 kB / 1.351 GB, free: 9.125 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007923/0.9878, allocations: 0.5349 MB / 1.352 GB, free: 8.852 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.9878, allocations: 0.8125 kB / 1.352 GB, free: 8.852 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.183e-05/0.9879, allocations: 12 kB / 1.352 GB, free: 8.844 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.166e-05/0.9879, allocations: 33.05 kB / 1.352 GB, free: 8.84 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005922/0.9885, allocations: 386.8 kB / 1.352 GB, free: 8.707 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00226/0.9908, allocations: 2.398 MB / 1.355 GB, free: 6.656 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005618/0.9913, allocations: 248 kB / 1.355 GB, free: 6.547 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001988/0.9915, allocations: 97.3 kB / 1.355 GB, free: 6.508 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.104e-05/0.9916, allocations: 11.02 kB / 1.355 GB, free: 6.5 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.9916, allocations: 31.78 kB / 1.355 GB, free: 6.461 MB / 1.061 GB Notification: Performance of pre-optimization done (n=20): time 2.335e-06/0.9916, allocations: 0 / 1.355 GB, free: 6.461 MB / 1.061 GB Notification: Performance of matching and sorting (n=23): time 0.002762/0.9944, allocations: 1.126 MB / 1.356 GB, free: 5.711 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.9944, allocations: 57.75 kB / 1.356 GB, free: 5.645 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004526/0.9948, allocations: 301.8 kB / 1.357 GB, free: 5.48 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.9949, allocations: 32.34 kB / 1.357 GB, free: 5.445 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/0.995, allocations: 243 kB / 1.357 GB, free: 5.242 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 8.219e-05/0.9951, allocations: 81.28 kB / 1.357 GB, free: 5.18 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.9952, allocations: 66.75 kB / 1.357 GB, free: 5.133 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.9954, allocations: 338.6 kB / 1.357 GB, free: 4.809 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.9955, allocations: 100.2 kB / 1.357 GB, free: 4.777 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002507/0.9958, allocations: 199.5 kB / 1.358 GB, free: 4.625 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004199/0.9962, allocations: 314.6 kB / 1.358 GB, free: 4.422 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.9962, allocations: 1.219 kB / 1.358 GB, free: 4.422 MB / 1.061 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008361/0.9971, allocations: 440.6 kB / 1.358 GB, free: 4.219 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.9971, allocations: 6.781 kB / 1.358 GB, free: 4.219 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.9971, allocations: 7.781 kB / 1.358 GB, free: 4.215 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004335/0.9975, allocations: 99.25 kB / 1.358 GB, free: 4.172 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003052/0.9978, allocations: 60.94 kB / 1.358 GB, free: 4.168 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00323/1.001, allocations: 4.393 MB / 1.363 GB, free: 15.84 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003034/1.001, allocations: 16.83 kB / 1.363 GB, free: 15.82 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.83e-05/1.001, allocations: 9.844 kB / 1.363 GB, free: 15.82 MB / 1.076 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.0003047/1.002, allocations: 178.4 kB / 1.363 GB, free: 15.68 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.255e-05/1.002, allocations: 40.5 kB / 1.363 GB, free: 15.66 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.692e-05/1.002, allocations: 41.12 kB / 1.363 GB, free: 15.63 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/1.002, allocations: 7.641 kB / 1.363 GB, free: 15.62 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/1.002, allocations: 5.094 kB / 1.363 GB, free: 15.62 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/1.002, allocations: 1.312 kB / 1.363 GB, free: 15.62 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006744/1.003, allocations: 408.5 kB / 1.363 GB, free: 15.34 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/1.003, allocations: 2.016 kB / 1.363 GB, free: 15.34 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00021/1.003, allocations: 32.16 kB / 1.363 GB, free: 15.34 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003694/1.003, allocations: 94.75 kB / 1.364 GB, free: 15.3 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/1.003, allocations: 6.109 kB / 1.364 GB, free: 15.29 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003743/1.007, allocations: 4.381 MB / 1.368 GB, free: 10.97 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.76e-06/1.007, allocations: 4.594 kB / 1.368 GB, free: 10.96 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009574/1.008, allocations: 0.5596 MB / 1.368 GB, free: 10.64 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001828/1.008, allocations: 123.8 kB / 1.369 GB, free: 10.53 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.881e-05/1.008, allocations: 7.312 kB / 1.369 GB, free: 10.52 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/1.008, allocations: 15.23 kB / 1.369 GB, free: 10.52 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.33e-05/1.008, allocations: 18.64 kB / 1.369 GB, free: 10.51 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/1.008, allocations: 8.219 kB / 1.369 GB, free: 10.51 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0002645/1.009, allocations: 209.2 kB / 1.369 GB, free: 10.39 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.3e-07/1.009, allocations: 4.062 kB / 1.369 GB, free: 10.39 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.00056/1.009, allocations: 99.25 kB / 1.369 GB, free: 10.38 MB / 1.076 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.001217/1.01, allocations: 1.094 MB / 1.37 GB, free: 9.535 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0009723/1.011, allocations: 0.5948 MB / 1.371 GB, free: 9.105 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/1.011, allocations: 0 / 1.371 GB, free: 9.105 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0005645/1.012, allocations: 467.3 kB / 1.371 GB, free: 8.723 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005257/1.013, allocations: 79.12 kB / 1.371 GB, free: 8.691 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004885/1.017, allocations: 3.374 MB / 1.374 GB, free: 6.477 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005521/1.018, allocations: 0.8362 MB / 1.375 GB, free: 5.762 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0002549/1.018, allocations: 61.33 kB / 1.375 GB, free: 5.746 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001672/1.018, allocations: 109.2 kB / 1.375 GB, free: 5.664 MB / 1.076 GB Notification: Performance of SimCode: time 7.92e-07/1.018, allocations: 0 / 1.375 GB, free: 5.664 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03862/1.057, allocations: 7.89 MB / 1.383 GB, free: 4.797 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/11.55, allocations: 10.41 kB / 1.383 GB, free: 4.793 MB / 1.076 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --stepSize=0.006 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 18.025732996989973]