Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_9_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.004865/0.004865, allocations: 96.5 kB / 15.73 MB, free: 6.043 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.001159/0.001159, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.253/2.253, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 75.22 kB / 0.9504 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2387, allocations: 140.4 MB / 1.087 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005876/0.2446, allocations: 4.368 MB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002833/0.2474, allocations: 1.85 MB / 1.094 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002576/0.2477, allocations: 8 kB / 1.094 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001632/0.2494, allocations: 0.6031 MB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006113/0.25, allocations: 254.6 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006282/0.2506, allocations: 255.4 kB / 1.095 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007169/0.2514, allocations: 0.6187 MB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006938/0.2521, allocations: 471 kB / 1.096 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003454/0.2524, allocations: 255.1 kB / 1.096 GB, free: 9.312 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004717/0.2529, allocations: 263 kB / 1.096 GB, free: 9.055 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.62e-05/0.253, allocations: 36 kB / 1.096 GB, free: 9.02 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004233/0.2534, allocations: 255.4 kB / 1.096 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.2536, allocations: 147.6 kB / 1.097 GB, free: 8.625 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002289/0.2538, allocations: 222.9 kB / 1.097 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007486/0.2545, allocations: 0.6071 MB / 1.097 GB, free: 7.797 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2546, allocations: 4 kB / 1.097 GB, free: 7.793 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.352e-06/0.2546, allocations: 0 / 1.097 GB, free: 7.793 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.568e-05/0.2546, allocations: 4 kB / 1.097 GB, free: 7.789 MB / 0.8575 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.001275/0.2559, allocations: 0.7323 MB / 1.098 GB, free: 7.004 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.2559, allocations: 12.03 kB / 1.098 GB, free: 6.992 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.739e-05/0.256, allocations: 78.72 kB / 1.098 GB, free: 6.906 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.257, allocations: 144.5 kB / 1.098 GB, free: 6.766 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004786/0.2575, allocations: 342.7 kB / 1.099 GB, free: 6.395 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.2576, allocations: 29.38 kB / 1.099 GB, free: 6.367 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.397e-05/0.2576, allocations: 36.3 kB / 1.099 GB, free: 6.332 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007499/0.2584, allocations: 0.5354 MB / 1.099 GB, free: 5.758 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.2584, allocations: 0 / 1.099 GB, free: 5.758 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.386e-05/0.2584, allocations: 20 kB / 1.099 GB, free: 5.738 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.633e-05/0.2585, allocations: 28.62 kB / 1.099 GB, free: 5.711 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005746/0.2591, allocations: 386.3 kB / 1.1 GB, free: 5.332 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002441/0.2615, allocations: 2.408 MB / 1.102 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005072/0.262, allocations: 270.5 kB / 1.102 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.2622, allocations: 104.8 kB / 1.102 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.2622, allocations: 4 kB / 1.102 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.297e-05/0.2623, allocations: 34.56 kB / 1.102 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=20): time 1.453e-06/0.2623, allocations: 0 / 1.102 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23): time 0.002186/0.2645, allocations: 1.133 MB / 1.104 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.2645, allocations: 55.41 kB / 1.104 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002995/0.2648, allocations: 296.5 kB / 1.104 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.2649, allocations: 33.69 kB / 1.104 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.265, allocations: 236.1 kB / 1.104 GB, free: 428 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.43e-05/0.2651, allocations: 91.25 kB / 1.104 GB, free: 336 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.2652, allocations: 61.98 kB / 1.104 GB, free: 264 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.2653, allocations: 338.8 kB / 1.105 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.2655, allocations: 104.6 kB / 1.105 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.2657, allocations: 199.6 kB / 1.105 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003792/0.2661, allocations: 311.5 kB / 1.105 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2661, allocations: 0 / 1.105 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007193/0.2668, allocations: 445.9 kB / 1.106 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.2669, allocations: 4 kB / 1.106 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.2669, allocations: 8 kB / 1.106 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003503/0.2672, allocations: 106.8 kB / 1.106 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002752/0.2675, allocations: 59.91 kB / 1.106 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003081/0.2706, allocations: 4.391 MB / 1.11 GB, free: 9.793 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002451/0.2709, allocations: 15.94 kB / 1.11 GB, free: 9.777 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.463e-05/0.2709, allocations: 16.16 kB / 1.11 GB, free: 9.762 MB / 0.8731 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.0002064/0.2711, allocations: 181.7 kB / 1.11 GB, free: 9.574 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.884e-05/0.2712, allocations: 35.75 kB / 1.11 GB, free: 9.539 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.679e-05/0.2713, allocations: 42.31 kB / 1.11 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2713, allocations: 0 / 1.11 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.2713, allocations: 7.938 kB / 1.11 GB, free: 9.492 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2713, allocations: 0 / 1.11 GB, free: 9.492 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004332/0.2717, allocations: 401.4 kB / 1.111 GB, free: 9.051 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.2717, allocations: 3.938 kB / 1.111 GB, free: 9.047 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001964/0.2719, allocations: 39.97 kB / 1.111 GB, free: 9.008 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003264/0.2723, allocations: 98.38 kB / 1.111 GB, free: 8.902 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.2723, allocations: 4 kB / 1.111 GB, free: 8.898 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002833/0.2751, allocations: 4.38 MB / 1.115 GB, free: 4.094 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.2752, allocations: 3.938 kB / 1.115 GB, free: 4.09 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007708/0.2759, allocations: 0.5573 MB / 1.116 GB, free: 3.508 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/0.2761, allocations: 133 kB / 1.116 GB, free: 3.359 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.2762, allocations: 7.938 kB / 1.116 GB, free: 3.352 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.2764, allocations: 12 kB / 1.116 GB, free: 3.34 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.533e-05/0.2764, allocations: 19.97 kB / 1.116 GB, free: 3.32 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.2765, allocations: 4 kB / 1.116 GB, free: 3.316 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001968/0.2767, allocations: 219 kB / 1.116 GB, free: 3.105 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2767, allocations: 0 / 1.116 GB, free: 3.105 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004539/0.2771, allocations: 96 kB / 1.116 GB, free: 3.012 MB / 0.8731 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.001006/0.2781, allocations: 1.1 MB / 1.117 GB, free: 1.879 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007968/0.2789, allocations: 0.6017 MB / 1.118 GB, free: 1.238 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.279, allocations: 4.188 kB / 1.118 GB, free: 1.234 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004682/0.2794, allocations: 471.9 kB / 1.118 GB, free: 0.7344 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004822/0.2799, allocations: 72.17 kB / 1.118 GB, free: 0.668 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003872/0.2838, allocations: 3.378 MB / 1.122 GB, free: 13.12 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003634/0.2842, allocations: 0.8311 MB / 1.122 GB, free: 12.27 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0001987/0.2844, allocations: 58.94 kB / 1.122 GB, free: 12.21 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.2845, allocations: 115.4 kB / 1.123 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of SimCode: time 5.91e-07/0.2846, allocations: 0 / 1.123 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03145/0.316, allocations: 7.782 MB / 1.13 GB, free: 4.457 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.499/9.815, allocations: 9.172 kB / 1.13 GB, free: 4.453 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches