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.001792/0.001792, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.2 MB, free: 4.395 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.507/2.507, allocations: 437.1 MB / 0.7104 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 67.89 kB / 0.8693 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5342/0.5355, allocations: 151.6 MB / 1.017 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006001/0.5416, allocations: 4.361 MB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003057/0.5447, allocations: 1.866 MB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002142/0.5449, allocations: 11.94 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001638/0.5466, allocations: 0.5893 MB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005983/0.5472, allocations: 258.6 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006333/0.5479, allocations: 251.4 kB / 1.025 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006496/0.5485, allocations: 0.6228 MB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006673/0.5492, allocations: 465 kB / 1.026 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000258/0.5495, allocations: 247.2 kB / 1.026 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000405/0.5499, allocations: 271 kB / 1.026 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.108e-05/0.55, allocations: 36 kB / 1.026 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004499/0.5504, allocations: 259.4 kB / 1.026 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.5506, allocations: 143.6 kB / 1.027 GB, free: 9.117 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002048/0.5508, allocations: 219 kB / 1.027 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006247/0.5514, allocations: 0.6036 MB / 1.027 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.5514, allocations: 0 / 1.027 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.172e-06/0.5514, allocations: 0 / 1.027 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.5514, allocations: 0 / 1.027 GB, free: 8.297 MB / 0.7794 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.001106/0.5526, allocations: 0.7174 MB / 1.028 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.5526, allocations: 12.03 kB / 1.028 GB, free: 7.516 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.698e-05/0.5527, allocations: 74.66 kB / 1.028 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009458/0.5536, allocations: 156.3 kB / 1.028 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003882/0.554, allocations: 330.4 kB / 1.029 GB, free: 6.918 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.5541, allocations: 29.36 kB / 1.029 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.49e-05/0.5541, allocations: 32.38 kB / 1.029 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007194/0.5549, allocations: 0.5394 MB / 1.029 GB, free: 6.285 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.5549, allocations: 0 / 1.029 GB, free: 6.285 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.091e-05/0.5549, allocations: 16 kB / 1.029 GB, free: 6.27 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.483e-05/0.555, allocations: 28.64 kB / 1.029 GB, free: 6.242 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005574/0.5555, allocations: 390.2 kB / 1.03 GB, free: 5.855 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002339/0.5579, allocations: 2.403 MB / 1.032 GB, free: 3.23 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004948/0.5584, allocations: 269.1 kB / 1.032 GB, free: 2.961 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.5586, allocations: 110.7 kB / 1.032 GB, free: 2.852 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.5586, allocations: 4 kB / 1.032 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.5586, allocations: 30.56 kB / 1.032 GB, free: 2.809 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/0.5586, allocations: 0 / 1.032 GB, free: 2.809 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.0021/0.5607, allocations: 1.129 MB / 1.033 GB, free: 1.582 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.5608, allocations: 55.41 kB / 1.033 GB, free: 1.516 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002862/0.5611, allocations: 308.4 kB / 1.034 GB, free: 1.207 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.5611, allocations: 29.7 kB / 1.034 GB, free: 1.172 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.5612, allocations: 227.6 kB / 1.034 GB, free: 0.9453 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.486e-05/0.5613, allocations: 86.77 kB / 1.034 GB, free: 0.8594 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.682e-05/0.5614, allocations: 65.88 kB / 1.034 GB, free: 0.7891 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.5615, allocations: 338.8 kB / 1.034 GB, free: 460 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.5617, allocations: 104.6 kB / 1.035 GB, free: 356 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.5619, allocations: 191.7 kB / 1.035 GB, free: 124 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003975/0.5623, allocations: 318.3 kB / 1.035 GB, free: 15.78 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.5623, allocations: 4 kB / 1.035 GB, free: 15.77 MB / 0.795 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007324/0.5631, allocations: 450.7 kB / 1.035 GB, free: 15.32 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.5631, allocations: 5.562 kB / 1.035 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.5631, allocations: 4 kB / 1.036 GB, free: 15.31 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003538/0.5635, allocations: 94.53 kB / 1.036 GB, free: 15.21 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002752/0.5637, allocations: 63.91 kB / 1.036 GB, free: 15.15 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003192/0.5669, allocations: 4.395 MB / 1.04 GB, free: 10.33 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002388/0.5672, allocations: 11.98 kB / 1.04 GB, free: 10.32 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.231e-05/0.5672, allocations: 12 kB / 1.04 GB, free: 10.31 MB / 0.795 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.0001938/0.5674, allocations: 182.4 kB / 1.04 GB, free: 10.12 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.605e-05/0.5675, allocations: 35.56 kB / 1.04 GB, free: 10.09 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.824e-05/0.5676, allocations: 38.31 kB / 1.04 GB, free: 10.05 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.5676, allocations: 0 / 1.04 GB, free: 10.05 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.5676, allocations: 4 kB / 1.04 GB, free: 10.04 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.5676, allocations: 0 / 1.04 GB, free: 10.04 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004573/0.5681, allocations: 397.4 kB / 1.041 GB, free: 9.605 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.5681, allocations: 7.938 kB / 1.041 GB, free: 9.598 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/0.5683, allocations: 35.97 kB / 1.041 GB, free: 9.562 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003018/0.5686, allocations: 98.44 kB / 1.041 GB, free: 9.457 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.5687, allocations: 4 kB / 1.041 GB, free: 9.453 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003025/0.5717, allocations: 4.388 MB / 1.045 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.5717, allocations: 3.938 kB / 1.045 GB, free: 4.637 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007983/0.5725, allocations: 0.5572 MB / 1.046 GB, free: 4.055 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.5727, allocations: 124.7 kB / 1.046 GB, free: 3.914 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.086e-05/0.5727, allocations: 4 kB / 1.046 GB, free: 3.91 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/0.5729, allocations: 15.98 kB / 1.046 GB, free: 3.895 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.305e-05/0.573, allocations: 16.05 kB / 1.046 GB, free: 3.879 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.573, allocations: 8 kB / 1.046 GB, free: 3.871 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002033/0.5732, allocations: 218.9 kB / 1.046 GB, free: 3.66 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5732, allocations: 0 / 1.046 GB, free: 3.66 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004489/0.5737, allocations: 100 kB / 1.046 GB, free: 3.562 MB / 0.795 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.001039/0.5747, allocations: 1.095 MB / 1.047 GB, free: 2.434 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008874/0.5756, allocations: 0.6267 MB / 1.048 GB, free: 1.77 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5756, allocations: 0 / 1.048 GB, free: 1.77 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000499/0.5761, allocations: 472.2 kB / 1.048 GB, free: 1.27 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004978/0.5767, allocations: 81.22 kB / 1.048 GB, free: 1.191 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004183/0.5808, allocations: 3.39 MB / 1.052 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/0.5813, allocations: 0.8311 MB / 1.052 GB, free: 12.78 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002179/0.5815, allocations: 58.94 kB / 1.052 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.5816, allocations: 111.4 kB / 1.053 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of SimCode: time 3.5e-07/0.5817, allocations: 0 / 1.053 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03367/0.6153, allocations: 7.639 MB / 1.06 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.14/9.756, allocations: 2.188 kB / 1.06 GB, free: 5.102 MB / 0.8106 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