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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001273/0.001273, allocations: 108 kB / 15.61 MB, free: 148 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.001287/0.001287, allocations: 195.3 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.32/1.32, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.7/2.7, allocations: 469.4 MB / 0.742 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 62.23 kB / 0.9082 GB, free: 34.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2627, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004908/0.2676, allocations: 3.082 MB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002306/0.2699, allocations: 1.317 MB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.2701, allocations: 4 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.2712, allocations: 338.7 kB / 1.068 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003821/0.2716, allocations: 147.2 kB / 1.068 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003805/0.272, allocations: 139.6 kB / 1.069 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003907/0.2724, allocations: 303 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000433/0.2728, allocations: 240.5 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.273, allocations: 123.5 kB / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003013/0.2733, allocations: 143.5 kB / 1.069 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.861e-05/0.2734, allocations: 16 kB / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003462/0.2737, allocations: 163.7 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.2738, allocations: 87.72 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.274, allocations: 107.5 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004872/0.2745, allocations: 327 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.2745, allocations: 4 kB / 1.07 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2745, allocations: 0 / 1.07 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.2745, allocations: 0 / 1.07 GB, free: 7.988 MB / 0.8262 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.0007934/0.2753, allocations: 0.5069 MB / 1.07 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.2754, allocations: 12.03 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.999e-05/0.2754, allocations: 58.72 kB / 1.071 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005846/0.276, allocations: 84.52 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003183/0.2764, allocations: 240 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.2764, allocations: 12.75 kB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.389e-05/0.2764, allocations: 16.38 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005024/0.2769, allocations: 303.3 kB / 1.071 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.277, allocations: 0 / 1.071 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.277, allocations: 8 kB / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.894e-05/0.277, allocations: 16.36 kB / 1.071 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003412/0.2774, allocations: 200.9 kB / 1.071 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.2793, allocations: 1.46 MB / 1.073 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.2796, allocations: 183.6 kB / 1.073 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.213e-05/0.2796, allocations: 32.84 kB / 1.073 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.2797, allocations: 0 / 1.073 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.2797, allocations: 34.56 kB / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.2797, allocations: 3.938 kB / 1.073 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004942/0.2802, allocations: 227.4 kB / 1.073 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.019e-05/0.2802, allocations: 51.41 kB / 1.073 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001955/0.2804, allocations: 203.4 kB / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.2805, allocations: 29.7 kB / 1.074 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.687e-05/0.2806, allocations: 167.5 kB / 1.074 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.2806, allocations: 23.66 kB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.078e-05/0.2807, allocations: 37.7 kB / 1.074 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.2808, allocations: 322.8 kB / 1.074 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.279e-05/0.2809, allocations: 39.98 kB / 1.074 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.908e-05/0.281, allocations: 102.1 kB / 1.074 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001784/0.2811, allocations: 156.5 kB / 1.074 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2812, allocations: 4 kB / 1.074 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000314/0.2815, allocations: 190.1 kB / 1.075 GB, free: 2.859 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.2815, allocations: 8 kB / 1.075 GB, free: 2.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2815, allocations: 0 / 1.075 GB, free: 2.852 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001892/0.2817, allocations: 29.12 kB / 1.075 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.2818, allocations: 27.98 kB / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.283, allocations: 1.422 MB / 1.076 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.2832, allocations: 15.84 kB / 1.076 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.2832, allocations: 8 kB / 1.076 GB, free: 1.203 MB / 0.8262 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.0001486/0.2834, allocations: 148 kB / 1.076 GB, free: 1.051 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.111e-05/0.2834, allocations: 15.88 kB / 1.076 GB, free: 1.035 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.177e-05/0.2834, allocations: 25.39 kB / 1.076 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2835, allocations: 0 / 1.076 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.2835, allocations: 0 / 1.076 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.2835, allocations: 4 kB / 1.076 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000514/0.284, allocations: 439.2 kB / 1.077 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.284, allocations: 0 / 1.077 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.957e-05/0.284, allocations: 8 kB / 1.077 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.472e-05/0.2841, allocations: 24.84 kB / 1.077 GB, free: 496 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.2842, allocations: 7.938 kB / 1.077 GB, free: 488 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009843/0.2851, allocations: 1.418 MB / 1.078 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2852, allocations: 0 / 1.078 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002186/0.2854, allocations: 228 kB / 1.078 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.87e-05/0.2855, allocations: 101 kB / 1.078 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.2855, allocations: 8.031 kB / 1.078 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.2856, allocations: 7.938 kB / 1.078 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.267e-05/0.2857, allocations: 3.984 kB / 1.078 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.2857, allocations: 4 kB / 1.078 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001239/0.2858, allocations: 148.3 kB / 1.079 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2858, allocations: 0 / 1.079 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003375/0.2861, allocations: 51.84 kB / 1.079 GB, free: 14.34 MB / 0.8419 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.0004845/0.2866, allocations: 0.7405 MB / 1.079 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003698/0.287, allocations: 215 kB / 1.08 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.287, allocations: 4.062 kB / 1.08 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001559/0.2872, allocations: 150.6 kB / 1.08 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003697/0.2876, allocations: 37.64 kB / 1.08 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.2898, allocations: 2.033 MB / 1.082 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.2901, allocations: 0.7436 MB / 1.082 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000101/0.2903, allocations: 25.53 kB / 1.082 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.178e-05/0.2903, allocations: 51.42 kB / 1.082 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.2903, allocations: 0 / 1.082 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.3129, allocations: 3.648 MB / 1.086 GB, free: 6.598 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.039/9.352, allocations: 8.062 kB / 1.086 GB, free: 6.59 MB / 0.8419 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