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.005255/0.005255, allocations: 100.1 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.001102/0.001102, allocations: 193.7 kB / 16.68 MB, free: 5.93 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.304/1.304, allocations: 222.9 MB / 240.4 MB, free: 4.188 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.26/2.26, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 61.8 kB / 0.9504 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2507, allocations: 140.4 MB / 1.087 GB, free: 2.148 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005859/0.2566, allocations: 4.363 MB / 1.092 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002945/0.2596, allocations: 1.862 MB / 1.094 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002736/0.2599, allocations: 11.94 kB / 1.094 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001639/0.2616, allocations: 0.5876 MB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005831/0.2622, allocations: 266.6 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006144/0.2628, allocations: 248.8 kB / 1.095 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006587/0.2634, allocations: 0.6149 MB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006877/0.2641, allocations: 465.6 kB / 1.096 GB, free: 9.719 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003391/0.2645, allocations: 243.2 kB / 1.096 GB, free: 9.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004838/0.265, allocations: 275 kB / 1.096 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.69e-05/0.2651, allocations: 36 kB / 1.096 GB, free: 9.176 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004494/0.2655, allocations: 259.4 kB / 1.096 GB, free: 8.922 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001478/0.2657, allocations: 151.6 kB / 1.097 GB, free: 8.773 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002228/0.2659, allocations: 215 kB / 1.097 GB, free: 8.562 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006576/0.2666, allocations: 0.6043 MB / 1.097 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.2666, allocations: 0 / 1.097 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.846e-06/0.2666, allocations: 4 kB / 1.097 GB, free: 7.953 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.106e-05/0.2666, allocations: 0 / 1.097 GB, free: 7.953 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.001216/0.2678, allocations: 0.7252 MB / 1.098 GB, free: 7.176 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.2679, allocations: 11.97 kB / 1.098 GB, free: 7.164 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.631e-05/0.268, allocations: 74.72 kB / 1.098 GB, free: 7.082 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009756/0.269, allocations: 152.2 kB / 1.098 GB, free: 6.934 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004758/0.2694, allocations: 338.5 kB / 1.099 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.2695, allocations: 29.36 kB / 1.099 GB, free: 6.539 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.435e-05/0.2695, allocations: 36.38 kB / 1.099 GB, free: 6.504 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007462/0.2703, allocations: 0.5316 MB / 1.099 GB, free: 5.934 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.2703, allocations: 3.938 kB / 1.099 GB, free: 5.93 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.969e-05/0.2704, allocations: 20 kB / 1.099 GB, free: 5.91 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.854e-05/0.2704, allocations: 28.64 kB / 1.099 GB, free: 5.883 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005795/0.271, allocations: 390.3 kB / 1.1 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002417/0.2734, allocations: 2.395 MB / 1.102 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004946/0.2739, allocations: 266.5 kB / 1.102 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.2741, allocations: 116.8 kB / 1.102 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.2741, allocations: 4 kB / 1.102 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.2742, allocations: 30.56 kB / 1.102 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=20): time 1.393e-06/0.2742, allocations: 0 / 1.102 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23): time 0.002097/0.2763, allocations: 1.125 MB / 1.103 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.319e-05/0.2763, allocations: 55.41 kB / 1.104 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003015/0.2766, allocations: 304.4 kB / 1.104 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.2767, allocations: 29.7 kB / 1.104 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.2768, allocations: 235.6 kB / 1.104 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.574e-05/0.2769, allocations: 78.84 kB / 1.104 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.503e-05/0.277, allocations: 61.94 kB / 1.104 GB, free: 456 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.2771, allocations: 342.8 kB / 1.105 GB, free: 104 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.2773, allocations: 100.6 kB / 1.105 GB, free: 4 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.2775, allocations: 187.7 kB / 1.105 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003883/0.2779, allocations: 315.5 kB / 1.105 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2779, allocations: 0 / 1.105 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007307/0.2787, allocations: 453.8 kB / 1.106 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.2787, allocations: 6.344 kB / 1.106 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.2787, allocations: 4 kB / 1.106 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003493/0.279, allocations: 98.67 kB / 1.106 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002782/0.2793, allocations: 67.89 kB / 1.106 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003125/0.2825, allocations: 4.391 MB / 1.11 GB, free: 9.984 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002216/0.2827, allocations: 8 kB / 1.11 GB, free: 9.977 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.2827, allocations: 16 kB / 1.11 GB, free: 9.961 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.0001798/0.2829, allocations: 181.8 kB / 1.11 GB, free: 9.773 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-05/0.283, allocations: 35.56 kB / 1.11 GB, free: 9.738 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.802e-05/0.2831, allocations: 38.31 kB / 1.11 GB, free: 9.703 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2831, allocations: 0 / 1.11 GB, free: 9.703 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.2831, allocations: 7.938 kB / 1.11 GB, free: 9.695 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.2831, allocations: 0 / 1.11 GB, free: 9.695 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004309/0.2835, allocations: 401.4 kB / 1.111 GB, free: 9.254 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.2836, allocations: 7.875 kB / 1.111 GB, free: 9.246 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000193/0.2837, allocations: 35.92 kB / 1.111 GB, free: 9.211 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003037/0.2841, allocations: 98.48 kB / 1.111 GB, free: 9.105 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.2841, allocations: 0 / 1.111 GB, free: 9.105 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003003/0.2871, allocations: 4.383 MB / 1.115 GB, free: 4.297 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.2871, allocations: 3.938 kB / 1.115 GB, free: 4.293 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007705/0.2879, allocations: 0.5632 MB / 1.116 GB, free: 3.707 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.288, allocations: 124.7 kB / 1.116 GB, free: 3.566 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.2881, allocations: 4 kB / 1.116 GB, free: 3.562 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.2883, allocations: 12.06 kB / 1.116 GB, free: 3.551 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.517e-05/0.2884, allocations: 19.97 kB / 1.116 GB, free: 3.531 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.2884, allocations: 8 kB / 1.116 GB, free: 3.523 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002014/0.2886, allocations: 215 kB / 1.116 GB, free: 3.316 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2886, allocations: 0 / 1.116 GB, free: 3.316 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004432/0.289, allocations: 100 kB / 1.116 GB, free: 3.219 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.001079/0.2901, allocations: 1.099 MB / 1.117 GB, free: 2.086 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007783/0.2909, allocations: 0.6052 MB / 1.118 GB, free: 1.441 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2909, allocations: 0 / 1.118 GB, free: 1.441 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000476/0.2914, allocations: 476.6 kB / 1.118 GB, free: 0.9375 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004655/0.2919, allocations: 71.61 kB / 1.118 GB, free: 0.875 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003904/0.2958, allocations: 3.371 MB / 1.122 GB, free: 13.34 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.2962, allocations: 0.8311 MB / 1.122 GB, free: 12.48 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0001798/0.2964, allocations: 62.92 kB / 1.122 GB, free: 12.42 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.2965, allocations: 111.4 kB / 1.123 GB, free: 12.31 MB / 0.8887 GB Notification: Performance of SimCode: time 4.81e-07/0.2965, allocations: 0 / 1.123 GB, free: 12.31 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03077/0.3273, allocations: 7.791 MB / 1.13 GB, free: 4.664 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.515/9.842, allocations: 3.625 kB / 1.13 GB, free: 4.664 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