Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_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.001288/0.001288, allocations: 112.5 kB / 15.73 MB, free: 76 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.00135/0.00135, allocations: 189.2 kB / 16.66 MB, free: 6.582 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.298/1.298, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.599/2.599, allocations: 469.4 MB / 0.7421 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 63.91 kB / 1.064 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2796, allocations: 159.1 MB / 1.22 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004405/0.284, allocations: 3.08 MB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002047/0.2861, allocations: 1.332 MB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001907/0.2864, allocations: 4 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.2874, allocations: 330.7 kB / 1.224 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0004185/0.2878, allocations: 143.3 kB / 1.224 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004021/0.2882, allocations: 143.6 kB / 1.225 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003903/0.2886, allocations: 306.9 kB / 1.225 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004497/0.2891, allocations: 240.8 kB / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001959/0.2893, allocations: 123.5 kB / 1.225 GB, free: 9 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000302/0.2896, allocations: 135.5 kB / 1.225 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.64e-05/0.2897, allocations: 20 kB / 1.225 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003034/0.29, allocations: 163.6 kB / 1.226 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.744e-05/0.2901, allocations: 83.78 kB / 1.226 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.2902, allocations: 103.5 kB / 1.226 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004768/0.2907, allocations: 346.6 kB / 1.226 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2907, allocations: 4 kB / 1.226 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.133e-06/0.2907, allocations: 0 / 1.226 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.2907, allocations: 0 / 1.226 GB, free: 8.16 MB / 0.9825 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.0008605/0.2916, allocations: 0.5104 MB / 1.227 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.2917, allocations: 8.031 kB / 1.227 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.858e-05/0.2917, allocations: 54.73 kB / 1.227 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006005/0.2923, allocations: 84.72 kB / 1.227 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003269/0.2927, allocations: 251.9 kB / 1.227 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.2927, allocations: 12.75 kB / 1.227 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.231e-05/0.2927, allocations: 20.36 kB / 1.227 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004267/0.2932, allocations: 303.3 kB / 1.227 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.2932, allocations: 4 kB / 1.227 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.584e-05/0.2932, allocations: 4 kB / 1.227 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.659e-05/0.2933, allocations: 24.36 kB / 1.227 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002977/0.2936, allocations: 193 kB / 1.227 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/0.295, allocations: 1.46 MB / 1.229 GB, free: 4.973 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002456/0.2952, allocations: 179.7 kB / 1.229 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.679e-05/0.2953, allocations: 36.78 kB / 1.229 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 7.204e-06/0.2953, allocations: 0 / 1.229 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.2953, allocations: 38.56 kB / 1.229 GB, free: 4.684 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.2953, allocations: 0 / 1.229 GB, free: 4.684 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004726/0.2958, allocations: 223.5 kB / 1.229 GB, free: 4.438 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/0.2959, allocations: 63.33 kB / 1.229 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.2961, allocations: 203.3 kB / 1.23 GB, free: 4.156 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.2961, allocations: 25.7 kB / 1.23 GB, free: 4.125 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.2962, allocations: 172.1 kB / 1.23 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.224e-05/0.2962, allocations: 23.8 kB / 1.23 GB, free: 3.93 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.61e-05/0.2963, allocations: 37.7 kB / 1.23 GB, free: 3.887 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.2964, allocations: 330.7 kB / 1.23 GB, free: 3.555 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.78e-05/0.2965, allocations: 39.98 kB / 1.23 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.387e-05/0.2966, allocations: 96.56 kB / 1.23 GB, free: 3.391 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.2968, allocations: 152.4 kB / 1.23 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.2968, allocations: 8 kB / 1.23 GB, free: 3.203 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002929/0.2971, allocations: 186.2 kB / 1.231 GB, free: 3.012 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.2971, allocations: 5.719 kB / 1.231 GB, free: 3.008 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.2971, allocations: 4 kB / 1.231 GB, free: 3.004 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/0.2973, allocations: 21.12 kB / 1.231 GB, free: 2.98 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.2974, allocations: 35.98 kB / 1.231 GB, free: 2.945 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/0.2984, allocations: 1.414 MB / 1.232 GB, free: 1.387 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.2986, allocations: 15.84 kB / 1.232 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.2986, allocations: 12 kB / 1.232 GB, free: 1.359 MB / 0.9825 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.2987, allocations: 151.7 kB / 1.232 GB, free: 1.203 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4e-05/0.2987, allocations: 15.91 kB / 1.232 GB, free: 1.188 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.302e-05/0.2988, allocations: 21.39 kB / 1.232 GB, free: 1.168 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.2988, allocations: 4.062 kB / 1.232 GB, free: 1.164 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.2988, allocations: 0 / 1.232 GB, free: 1.164 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.2988, allocations: 0 / 1.232 GB, free: 1.164 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004804/0.2993, allocations: 451.2 kB / 1.233 GB, free: 0.6641 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2993, allocations: 0 / 1.233 GB, free: 0.6641 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.831e-05/0.2993, allocations: 8.062 kB / 1.233 GB, free: 0.6562 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.722e-05/0.2994, allocations: 24.84 kB / 1.233 GB, free: 0.6289 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.2995, allocations: 0 / 1.233 GB, free: 0.6289 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008533/0.3003, allocations: 1.426 MB / 1.234 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3003, allocations: 4.078 kB / 1.234 GB, free: 15.06 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001994/0.3005, allocations: 216.1 kB / 1.234 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.674e-05/0.3006, allocations: 97 kB / 1.234 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.3007, allocations: 4 kB / 1.234 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.3008, allocations: 0 / 1.234 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.09e-05/0.3008, allocations: 12.05 kB / 1.234 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.3008, allocations: 0 / 1.234 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000119/0.3009, allocations: 144.4 kB / 1.235 GB, free: 14.56 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3009, allocations: 0 / 1.235 GB, free: 14.56 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003302/0.3013, allocations: 51.89 kB / 1.235 GB, free: 14.51 MB / 0.9981 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.0004725/0.3018, allocations: 0.7561 MB / 1.235 GB, free: 13.72 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003644/0.3021, allocations: 214.5 kB / 1.236 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3021, allocations: 0 / 1.236 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.3023, allocations: 139.2 kB / 1.236 GB, free: 13.35 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.3027, allocations: 42.11 kB / 1.236 GB, free: 13.31 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002155/0.3048, allocations: 2.059 MB / 1.238 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.3051, allocations: 0.7436 MB / 1.239 GB, free: 10.34 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.347e-05/0.3052, allocations: 21.55 kB / 1.239 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.468e-05/0.3053, allocations: 55.41 kB / 1.239 GB, free: 10.26 MB / 0.9981 GB Notification: Performance of SimCode: time 2.11e-07/0.3053, allocations: 0 / 1.239 GB, free: 10.26 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02239/0.3277, allocations: 3.733 MB / 1.242 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.154/9.482, allocations: 7.922 kB / 1.242 GB, free: 6.656 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches