Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008219/0.008219, allocations: 99.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001913/0.001913, allocations: 198.7 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.477/2.477, allocations: 437.1 MB / 0.7105 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 59.91 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2661, allocations: 151.6 MB / 1.166 GB, free: 7.336 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005701/0.2718, allocations: 4.348 MB / 1.17 GB, free: 2.961 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002858/0.2747, allocations: 1.866 MB / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000221/0.2749, allocations: 11.94 kB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001569/0.2765, allocations: 0.5954 MB / 1.173 GB, free: 488 kB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0005836/0.2771, allocations: 262.6 kB / 1.173 GB, free: 224 kB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000647/0.2778, allocations: 258.6 kB / 1.173 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0006605/0.2784, allocations: 0.6073 MB / 1.174 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006445/0.2791, allocations: 459.1 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003019/0.2794, allocations: 251.1 kB / 1.175 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004485/0.2799, allocations: 271 kB / 1.175 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.516e-05/0.2799, allocations: 40 kB / 1.175 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004236/0.2804, allocations: 255.4 kB / 1.175 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.2805, allocations: 155.6 kB / 1.175 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000219/0.2808, allocations: 218.9 kB / 1.175 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006811/0.2814, allocations: 0.6071 MB / 1.176 GB, free: 13.13 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2815, allocations: 0 / 1.176 GB, free: 13.13 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2815, allocations: 0 / 1.176 GB, free: 13.13 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.33e-05/0.2815, allocations: 3.938 kB / 1.176 GB, free: 13.13 MB / 0.9356 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.001217/0.2827, allocations: 0.7402 MB / 1.177 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.2827, allocations: 8.031 kB / 1.177 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.451e-05/0.2828, allocations: 82.7 kB / 1.177 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009918/0.2838, allocations: 148.5 kB / 1.177 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004723/0.2843, allocations: 334.8 kB / 1.177 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.2843, allocations: 29.31 kB / 1.177 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.569e-05/0.2844, allocations: 40.34 kB / 1.177 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007494/0.2852, allocations: 0.5316 MB / 1.178 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/0.2852, allocations: 3.938 kB / 1.178 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.551e-05/0.2853, allocations: 19.98 kB / 1.178 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-05/0.2853, allocations: 28.64 kB / 1.178 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000579/0.2859, allocations: 390.3 kB / 1.178 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002442/0.2883, allocations: 2.4 MB / 1.181 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005003/0.2889, allocations: 262.5 kB / 1.181 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.289, allocations: 104.8 kB / 1.181 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.2891, allocations: 4 kB / 1.181 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.2891, allocations: 42.5 kB / 1.181 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.2891, allocations: 0 / 1.181 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23): time 0.002118/0.2912, allocations: 1.131 MB / 1.182 GB, free: 6.395 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.2913, allocations: 59.41 kB / 1.182 GB, free: 6.324 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003012/0.2916, allocations: 304.5 kB / 1.183 GB, free: 6.02 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.2916, allocations: 29.7 kB / 1.183 GB, free: 5.984 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.2917, allocations: 232.2 kB / 1.183 GB, free: 5.754 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.719e-05/0.2918, allocations: 83.25 kB / 1.183 GB, free: 5.672 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.2919, allocations: 65.98 kB / 1.183 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.292, allocations: 338.8 kB / 1.183 GB, free: 5.258 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.2922, allocations: 100.6 kB / 1.183 GB, free: 5.16 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002101/0.2924, allocations: 195.7 kB / 1.184 GB, free: 4.93 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003958/0.2928, allocations: 320.1 kB / 1.184 GB, free: 4.582 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2928, allocations: 0 / 1.184 GB, free: 4.582 MB / 0.9356 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007569/0.2936, allocations: 450 kB / 1.184 GB, free: 4.129 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.2936, allocations: 4 kB / 1.184 GB, free: 4.125 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.2936, allocations: 4 kB / 1.184 GB, free: 4.121 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003463/0.294, allocations: 94.66 kB / 1.184 GB, free: 4.02 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.2943, allocations: 63.91 kB / 1.184 GB, free: 3.957 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003203/0.2975, allocations: 4.399 MB / 1.189 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002162/0.2977, allocations: 11.98 kB / 1.189 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.2977, allocations: 12 kB / 1.189 GB, free: 15.11 MB / 0.9512 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.0001818/0.2979, allocations: 185.6 kB / 1.189 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.272e-05/0.298, allocations: 35.81 kB / 1.189 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.934e-05/0.2981, allocations: 42.31 kB / 1.189 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2981, allocations: 0 / 1.189 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.2981, allocations: 4 kB / 1.189 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.2981, allocations: 96 / 1.189 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004227/0.2985, allocations: 401.4 kB / 1.189 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.2986, allocations: 3.938 kB / 1.189 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001914/0.2987, allocations: 35.91 kB / 1.189 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003034/0.2991, allocations: 98.5 kB / 1.19 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.2991, allocations: 0 / 1.19 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003062/0.3022, allocations: 4.384 MB / 1.194 GB, free: 9.445 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3022, allocations: 3.938 kB / 1.194 GB, free: 9.441 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007733/0.3029, allocations: 0.5576 MB / 1.194 GB, free: 8.859 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.3031, allocations: 124.9 kB / 1.194 GB, free: 8.719 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.941e-05/0.3032, allocations: 4 kB / 1.194 GB, free: 8.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.3034, allocations: 11.98 kB / 1.194 GB, free: 8.703 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.087e-05/0.3034, allocations: 15.98 kB / 1.194 GB, free: 8.688 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.3034, allocations: 12.06 kB / 1.195 GB, free: 8.676 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002085/0.3036, allocations: 215 kB / 1.195 GB, free: 8.469 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3037, allocations: 3.938 kB / 1.195 GB, free: 8.465 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004343/0.3041, allocations: 96 kB / 1.195 GB, free: 8.371 MB / 0.9512 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.001122/0.3052, allocations: 1.104 MB / 1.196 GB, free: 7.234 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008119/0.306, allocations: 0.6056 MB / 1.196 GB, free: 6.59 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3061, allocations: 3.984 kB / 1.196 GB, free: 6.586 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004652/0.3065, allocations: 486.8 kB / 1.197 GB, free: 6.074 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004782/0.307, allocations: 74.78 kB / 1.197 GB, free: 6.004 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004022/0.3111, allocations: 3.372 MB / 1.2 GB, free: 2.461 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.3114, allocations: 0.8428 MB / 1.201 GB, free: 1.594 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001806/0.3116, allocations: 62.92 kB / 1.201 GB, free: 1.535 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.3118, allocations: 107.4 kB / 1.201 GB, free: 1.43 MB / 0.9512 GB Notification: Performance of SimCode: time 3.61e-07/0.3118, allocations: 0 / 1.201 GB, free: 1.43 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02989/0.3417, allocations: 7.782 MB / 1.209 GB, free: 9.797 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.458/9.799, allocations: 11.06 kB / 1.209 GB, free: 9.789 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 Buildings_10_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches