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.005636/0.005636, allocations: 97.36 kB / 15.73 MB, free: 6.039 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.001085/0.001085, allocations: 202 kB / 16.68 MB, free: 5.961 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.3/1.3, allocations: 222.9 MB / 240.4 MB, free: 4.305 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.523/2.523, allocations: 437.1 MB / 0.7105 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 59.89 kB / 1.018 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2551, allocations: 151.6 MB / 1.166 GB, free: 7.363 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005482/0.2607, allocations: 4.351 MB / 1.17 GB, free: 2.988 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002689/0.2634, allocations: 1.866 MB / 1.172 GB, free: 1.113 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001803/0.2636, allocations: 8 kB / 1.172 GB, free: 1.105 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001503/0.2651, allocations: 0.5992 MB / 1.173 GB, free: 0.5078 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0005644/0.2657, allocations: 266.6 kB / 1.173 GB, free: 252 kB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.00058/0.2663, allocations: 243.4 kB / 1.173 GB, free: 8 kB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0006103/0.2669, allocations: 0.619 MB / 1.174 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000627/0.2675, allocations: 459.1 kB / 1.174 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002442/0.2678, allocations: 251.1 kB / 1.175 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003926/0.2682, allocations: 267 kB / 1.175 GB, free: 14.43 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.103e-05/0.2683, allocations: 36 kB / 1.175 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003783/0.2686, allocations: 255.4 kB / 1.175 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.2688, allocations: 159.6 kB / 1.175 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002424/0.269, allocations: 222.9 kB / 1.175 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006365/0.2697, allocations: 0.6032 MB / 1.176 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.2697, allocations: 3.984 kB / 1.176 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.293e-06/0.2697, allocations: 4 kB / 1.176 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.975e-06/0.2697, allocations: 3.938 kB / 1.176 GB, free: 13.15 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.001173/0.2709, allocations: 0.7324 MB / 1.177 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.2709, allocations: 8.031 kB / 1.177 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.116e-05/0.271, allocations: 74.72 kB / 1.177 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009368/0.272, allocations: 152.5 kB / 1.177 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004412/0.2724, allocations: 338.8 kB / 1.177 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.633e-05/0.2725, allocations: 25.38 kB / 1.177 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.392e-05/0.2725, allocations: 36.3 kB / 1.177 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007625/0.2733, allocations: 0.5354 MB / 1.178 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.2733, allocations: 4 kB / 1.178 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.115e-05/0.2734, allocations: 19.98 kB / 1.178 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.133e-05/0.2734, allocations: 32.64 kB / 1.178 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005826/0.274, allocations: 378.3 kB / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002444/0.2765, allocations: 2.412 MB / 1.181 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004954/0.277, allocations: 266.4 kB / 1.181 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.2772, allocations: 104.8 kB / 1.181 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.2772, allocations: 4 kB / 1.181 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.2772, allocations: 34.56 kB / 1.181 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 1.733e-06/0.2772, allocations: 4 kB / 1.181 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23): time 0.002219/0.2794, allocations: 1.121 MB / 1.182 GB, free: 6.434 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.2795, allocations: 55.41 kB / 1.182 GB, free: 6.367 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003075/0.2798, allocations: 312.5 kB / 1.183 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.2798, allocations: 25.7 kB / 1.183 GB, free: 6.023 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.28, allocations: 232.2 kB / 1.183 GB, free: 5.793 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.987e-05/0.28, allocations: 87.25 kB / 1.183 GB, free: 5.707 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.2801, allocations: 65.98 kB / 1.183 GB, free: 5.633 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.2803, allocations: 338.8 kB / 1.183 GB, free: 5.293 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.2804, allocations: 100.6 kB / 1.183 GB, free: 5.195 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002075/0.2806, allocations: 199.7 kB / 1.184 GB, free: 4.961 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003818/0.281, allocations: 308.9 kB / 1.184 GB, free: 4.625 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.281, allocations: 4 kB / 1.184 GB, free: 4.621 MB / 0.9356 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000731/0.2818, allocations: 450.2 kB / 1.184 GB, free: 4.168 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2818, allocations: 8.031 kB / 1.184 GB, free: 4.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.2818, allocations: 4 kB / 1.184 GB, free: 4.156 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003597/0.2822, allocations: 94.44 kB / 1.184 GB, free: 4.055 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/0.2825, allocations: 63.91 kB / 1.184 GB, free: 3.992 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0031/0.2856, allocations: 4.407 MB / 1.189 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.2858, allocations: 11.98 kB / 1.189 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.16e-05/0.2858, allocations: 15.94 kB / 1.189 GB, free: 15.13 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.0002011/0.286, allocations: 181.6 kB / 1.189 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.026e-05/0.2861, allocations: 35.75 kB / 1.189 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.871e-05/0.2862, allocations: 42.31 kB / 1.189 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2862, allocations: 4.062 kB / 1.189 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.2862, allocations: 4 kB / 1.189 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2862, allocations: 0 / 1.189 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004212/0.2866, allocations: 397.4 kB / 1.189 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2866, allocations: 3.938 kB / 1.189 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001812/0.2868, allocations: 35.97 kB / 1.189 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002984/0.2871, allocations: 94.44 kB / 1.19 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.2872, allocations: 4 kB / 1.19 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003014/0.2902, allocations: 4.385 MB / 1.194 GB, free: 9.473 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2902, allocations: 3.938 kB / 1.194 GB, free: 9.469 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007626/0.291, allocations: 0.5541 MB / 1.194 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.2911, allocations: 128.9 kB / 1.194 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.675e-05/0.2911, allocations: 0 / 1.194 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.2913, allocations: 19.92 kB / 1.194 GB, free: 8.727 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.2914, allocations: 15.98 kB / 1.195 GB, free: 8.711 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.2914, allocations: 4 kB / 1.195 GB, free: 8.707 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001995/0.2916, allocations: 223.1 kB / 1.195 GB, free: 8.492 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2916, allocations: 0 / 1.195 GB, free: 8.492 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004359/0.2921, allocations: 96 kB / 1.195 GB, free: 8.398 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.001028/0.2931, allocations: 1.104 MB / 1.196 GB, free: 7.262 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0007692/0.2939, allocations: 0.6017 MB / 1.196 GB, free: 6.621 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2939, allocations: 3.938 kB / 1.196 GB, free: 6.617 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004692/0.2944, allocations: 486.9 kB / 1.197 GB, free: 6.105 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004514/0.2948, allocations: 75.16 kB / 1.197 GB, free: 6.035 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003843/0.2987, allocations: 3.374 MB / 1.2 GB, free: 2.492 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.2991, allocations: 0.8428 MB / 1.201 GB, free: 1.625 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001651/0.2992, allocations: 58.94 kB / 1.201 GB, free: 1.57 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.2994, allocations: 107.4 kB / 1.201 GB, free: 1.465 MB / 0.9512 GB Notification: Performance of SimCode: time 2.7e-07/0.2994, allocations: 0 / 1.201 GB, free: 1.465 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0304/0.3298, allocations: 7.781 MB / 1.209 GB, free: 9.824 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.62/9.949, allocations: 3.156 kB / 1.209 GB, free: 9.824 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