Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Resistance,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance",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.004612/0.004612, allocations: 98.8 kB / 15.73 MB, free: 6.047 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.001135/0.001136, allocations: 194.1 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.312/1.312, 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.55/2.55, allocations: 437 MB / 0.7105 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.001231, allocations: 67.89 kB / 1.018 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2764, allocations: 151.6 MB / 1.166 GB, free: 7.336 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004472/0.2809, allocations: 3.062 MB / 1.169 GB, free: 4.254 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001896/0.2828, allocations: 1.332 MB / 1.17 GB, free: 2.914 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.283, allocations: 4 kB / 1.17 GB, free: 2.91 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0009929/0.284, allocations: 346.7 kB / 1.171 GB, free: 2.57 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000316/0.2843, allocations: 139.3 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003367/0.2846, allocations: 139.6 kB / 1.171 GB, free: 2.297 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003262/0.285, allocations: 299 kB / 1.171 GB, free: 2.004 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004012/0.2854, allocations: 244.4 kB / 1.172 GB, free: 1.766 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.2855, allocations: 127.6 kB / 1.172 GB, free: 1.641 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002626/0.2858, allocations: 131.5 kB / 1.172 GB, free: 1.512 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.477e-05/0.2859, allocations: 20 kB / 1.172 GB, free: 1.492 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002745/0.2861, allocations: 167.6 kB / 1.172 GB, free: 1.328 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.586e-05/0.2862, allocations: 79.8 kB / 1.172 GB, free: 1.25 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.2864, allocations: 115.5 kB / 1.172 GB, free: 1.137 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003952/0.2868, allocations: 334.8 kB / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2868, allocations: 0 / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2868, allocations: 0 / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.75e-06/0.2868, allocations: 0 / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007692/0.2876, allocations: 0.5259 MB / 1.173 GB, free: 236 kB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.2876, allocations: 16.02 kB / 1.173 GB, free: 220 kB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.36e-05/0.2877, allocations: 54.73 kB / 1.173 GB, free: 156 kB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005286/0.2882, allocations: 72.72 kB / 1.173 GB, free: 84 kB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003182/0.2885, allocations: 252 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.2886, allocations: 16.69 kB / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.345e-05/0.2886, allocations: 24.36 kB / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004044/0.289, allocations: 295.4 kB / 1.174 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.289, allocations: 3.938 kB / 1.174 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.29e-05/0.2891, allocations: 8 kB / 1.174 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.168e-05/0.2891, allocations: 20.38 kB / 1.174 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002899/0.2894, allocations: 196.9 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.2907, allocations: 1.448 MB / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.291, allocations: 179.7 kB / 1.176 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.36e-05/0.2911, allocations: 32.89 kB / 1.176 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.303e-05/0.2911, allocations: 7.984 kB / 1.176 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.2911, allocations: 38.5 kB / 1.176 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.2911, allocations: 0 / 1.176 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004327/0.2916, allocations: 223.9 kB / 1.176 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.017e-05/0.2916, allocations: 55.41 kB / 1.176 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/0.2918, allocations: 207.3 kB / 1.176 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.2918, allocations: 25.7 kB / 1.176 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.214e-05/0.2919, allocations: 164 kB / 1.176 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.144e-05/0.2919, allocations: 31.73 kB / 1.176 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.975e-05/0.292, allocations: 33.72 kB / 1.176 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.2921, allocations: 330.7 kB / 1.177 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.423e-05/0.2922, allocations: 39.97 kB / 1.177 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.805e-05/0.2923, allocations: 98.45 kB / 1.177 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.2925, allocations: 144.4 kB / 1.177 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.2925, allocations: 4 kB / 1.177 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002895/0.2928, allocations: 198.1 kB / 1.177 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.2928, allocations: 4 kB / 1.177 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.2928, allocations: 4 kB / 1.177 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001411/0.2929, allocations: 28.78 kB / 1.177 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.2931, allocations: 27.98 kB / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001008/0.2941, allocations: 1.426 MB / 1.179 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.2942, allocations: 27.94 kB / 1.179 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.2942, allocations: 8 kB / 1.179 GB, free: 9.988 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001214/0.2943, allocations: 149.7 kB / 1.179 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.616e-05/0.2944, allocations: 11.95 kB / 1.179 GB, free: 9.82 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.95e-05/0.2944, allocations: 17.41 kB / 1.179 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.2944, allocations: 0 / 1.179 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.2944, allocations: 3.984 kB / 1.179 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.2944, allocations: 0 / 1.179 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004825/0.2949, allocations: 451.2 kB / 1.179 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2949, allocations: 0 / 1.179 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.889e-05/0.295, allocations: 11.98 kB / 1.179 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-05/0.2951, allocations: 20.84 kB / 1.179 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.2951, allocations: 0 / 1.179 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009438/0.296, allocations: 1.422 MB / 1.181 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2961, allocations: 0 / 1.181 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000218/0.2963, allocations: 224.3 kB / 1.181 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.466e-05/0.2964, allocations: 96.95 kB / 1.181 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.2964, allocations: 4 kB / 1.181 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.2965, allocations: 3.984 kB / 1.181 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.089e-05/0.2965, allocations: 4 kB / 1.181 GB, free: 7.336 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.2965, allocations: 8 kB / 1.181 GB, free: 7.328 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001169/0.2967, allocations: 139.2 kB / 1.181 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2967, allocations: 0 / 1.181 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003108/0.297, allocations: 51.89 kB / 1.181 GB, free: 7.141 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005084/0.2975, allocations: 0.7444 MB / 1.182 GB, free: 6.363 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000362/0.2979, allocations: 214.5 kB / 1.182 GB, free: 6.141 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.2979, allocations: 0 / 1.182 GB, free: 6.141 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.298, allocations: 150.6 kB / 1.182 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.2984, allocations: 34.95 kB / 1.182 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002018/0.3004, allocations: 2.058 MB / 1.184 GB, free: 3.758 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.3007, allocations: 0.7436 MB / 1.185 GB, free: 2.988 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.418e-05/0.3008, allocations: 25.92 kB / 1.185 GB, free: 2.961 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.524e-05/0.3009, allocations: 55.42 kB / 1.185 GB, free: 2.906 MB / 0.9356 GB Notification: Performance of SimCode: time 3.21e-07/0.3009, allocations: 0 / 1.185 GB, free: 2.906 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02176/0.3227, allocations: 3.728 MB / 1.189 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.374/9.697, allocations: 10.66 kB / 1.189 GB, free: 15.3 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches