Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 108.2 kB / 15.99 MB, free: 5.891 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.001487/0.001486, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.368/1.368, allocations: 222.9 MB / 240.6 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.779/2.779, allocations: 469.8 MB / 0.7427 GB, free: 7.516 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 65.14 kB / 0.9087 GB, free: 34.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2836, allocations: 159.2 MB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005073/0.2888, allocations: 3.117 MB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002192/0.291, allocations: 1.321 MB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.2911, allocations: 4 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000977/0.2921, allocations: 311.9 kB / 1.069 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003239/0.2925, allocations: 139.4 kB / 1.069 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003468/0.2928, allocations: 120.6 kB / 1.069 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000363/0.2932, allocations: 306.9 kB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004584/0.2936, allocations: 264.5 kB / 1.07 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.2938, allocations: 123.6 kB / 1.07 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000268/0.2941, allocations: 147.4 kB / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.808e-05/0.2941, allocations: 20 kB / 1.07 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002877/0.2944, allocations: 163.7 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.2946, allocations: 87.72 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.2947, allocations: 103.5 kB / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003443/0.295, allocations: 263.4 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.295, allocations: 0 / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.295, allocations: 0 / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.2951, allocations: 4 kB / 1.07 GB, free: 8.113 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.0008742/0.2959, allocations: 0.5224 MB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.296, allocations: 12.03 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005575/0.2965, allocations: 72.58 kB / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002964/0.2969, allocations: 244 kB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.2969, allocations: 12.75 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.2969, allocations: 20.38 kB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004993/0.2974, allocations: 295.5 kB / 1.072 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.2974, allocations: 0 / 1.072 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.938e-05/0.2975, allocations: 12 kB / 1.072 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.522e-05/0.2975, allocations: 16.36 kB / 1.072 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003254/0.2978, allocations: 200.9 kB / 1.072 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.2994, allocations: 1.46 MB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002606/0.2997, allocations: 183.7 kB / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.782e-05/0.2998, allocations: 36.84 kB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.694e-06/0.2998, allocations: 0 / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.2998, allocations: 30.56 kB / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 8.52e-07/0.2998, allocations: 0 / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004758/0.3003, allocations: 235.5 kB / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.3004, allocations: 51.41 kB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002074/0.3006, allocations: 199.1 kB / 1.074 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.3006, allocations: 29.7 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.3007, allocations: 167.6 kB / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.549e-05/0.3008, allocations: 27.56 kB / 1.074 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.666e-05/0.3008, allocations: 29.7 kB / 1.074 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.301, allocations: 334.8 kB / 1.074 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.347e-05/0.3011, allocations: 31.98 kB / 1.075 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.3012, allocations: 100.5 kB / 1.075 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001885/0.3014, allocations: 152.4 kB / 1.075 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3014, allocations: 0 / 1.075 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003074/0.3017, allocations: 190 kB / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.3017, allocations: 9.094 kB / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.3017, allocations: 0 / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000154/0.3019, allocations: 29.12 kB / 1.075 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.302, allocations: 31.92 kB / 1.075 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/0.3032, allocations: 1.422 MB / 1.076 GB, free: 1.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.3033, allocations: 19.84 kB / 1.076 GB, free: 1.391 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.3034, allocations: 4 kB / 1.076 GB, free: 1.387 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.0001421/0.3035, allocations: 149.8 kB / 1.077 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.842e-05/0.3036, allocations: 19.81 kB / 1.077 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.955e-05/0.3036, allocations: 17.39 kB / 1.077 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.3036, allocations: 0 / 1.077 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.3036, allocations: 0 / 1.077 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.3036, allocations: 0 / 1.077 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005331/0.3042, allocations: 451.2 kB / 1.077 GB, free: 0.6953 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.3042, allocations: 0 / 1.077 GB, free: 0.6953 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.941e-05/0.3042, allocations: 12 kB / 1.077 GB, free: 0.6836 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.622e-05/0.3043, allocations: 20.84 kB / 1.077 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.3043, allocations: 4 kB / 1.077 GB, free: 0.6562 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001109/0.3054, allocations: 1.422 MB / 1.078 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3054, allocations: 0 / 1.078 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/0.3057, allocations: 220.2 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.055e-05/0.3058, allocations: 100.9 kB / 1.079 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.3058, allocations: 0 / 1.079 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.3059, allocations: 8 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.017e-05/0.3059, allocations: 7.984 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.3059, allocations: 4 kB / 1.079 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001343/0.3061, allocations: 144.3 kB / 1.079 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3061, allocations: 0 / 1.079 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003299/0.3064, allocations: 55.84 kB / 1.079 GB, free: 14.53 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.0001139/0.3065, allocations: 99.25 kB / 1.079 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003592/0.3069, allocations: 214.5 kB / 1.079 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3069, allocations: 0 / 1.079 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001593/0.3071, allocations: 147.2 kB / 1.079 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003388/0.3074, allocations: 37.97 kB / 1.079 GB, free: 14 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006566/0.3081, allocations: 468.3 kB / 1.08 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/0.3085, allocations: 0.7591 MB / 1.081 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.536e-05/0.3086, allocations: 15.44 kB / 1.081 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of SimCode: time 2e-07/0.3086, allocations: 0 / 1.081 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of Templates: time 0.004849/0.3134, allocations: 2.967 MB / 1.084 GB, free: 9.758 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches