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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_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_latest_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.0008604/0.0008601, allocations: 92.16 kB / 16.02 MB, free: 80 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.0009753/0.0009754, allocations: 173 kB / 16.92 MB, free: 6.652 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.378/1.378, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.738/2.738, allocations: 462.6 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003627/0.0003629, allocations: 9.984 kB / 0.9034 GB, free: 36.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.302/0.3023, allocations: 159.6 MB / 1.059 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003641/0.306, allocations: 2.768 MB / 1.062 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002146/0.3082, allocations: 1.305 MB / 1.063 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001861/0.3084, allocations: 4 kB / 1.063 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002187/0.3086, allocations: 39.72 kB / 1.063 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004785/0.3091, allocations: 135.4 kB / 1.063 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004345/0.3096, allocations: 123.7 kB / 1.064 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004757/0.3101, allocations: 438.8 kB / 1.064 GB, free: 184 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003553/0.3104, allocations: 237.4 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.3106, allocations: 103.6 kB / 1.064 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003208/0.311, allocations: 131.5 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.225e-05/0.311, allocations: 8 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003855/0.3114, allocations: 207.6 kB / 1.065 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.3115, allocations: 71.73 kB / 1.065 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001375/0.3117, allocations: 121.2 kB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003333/0.312, allocations: 259.6 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.312, allocations: 0 / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of FrontEnd: time 4.178e-06/0.312, allocations: 0 / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.135e-06/0.312, allocations: 3.938 kB / 1.065 GB, free: 15.04 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.0007957/0.3128, allocations: 487.2 kB / 1.066 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.3129, allocations: 11.97 kB / 1.066 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006408/0.3135, allocations: 88.58 kB / 1.066 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/0.3139, allocations: 245.1 kB / 1.066 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.314, allocations: 16.75 kB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.523e-05/0.314, allocations: 16.38 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005002/0.3145, allocations: 295.5 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.3145, allocations: 4 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.058e-05/0.3146, allocations: 11.97 kB / 1.066 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.625e-05/0.3146, allocations: 16.38 kB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003331/0.3149, allocations: 204.6 kB / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.3167, allocations: 1.464 MB / 1.068 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003432/0.317, allocations: 175.7 kB / 1.068 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.476e-05/0.3171, allocations: 28.84 kB / 1.068 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.3172, allocations: 4 kB / 1.068 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/0.3172, allocations: 34.56 kB / 1.068 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 4.117e-06/0.3172, allocations: 4 kB / 1.068 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006304/0.3178, allocations: 235.5 kB / 1.068 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.3179, allocations: 51.41 kB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002415/0.3182, allocations: 195 kB / 1.069 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.3182, allocations: 29.7 kB / 1.069 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.3184, allocations: 163.6 kB / 1.069 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.275e-05/0.3184, allocations: 31.55 kB / 1.069 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.794e-05/0.3185, allocations: 21.72 kB / 1.069 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002012/0.3187, allocations: 330.8 kB / 1.069 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.88e-05/0.3188, allocations: 27.98 kB / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.3189, allocations: 104.5 kB / 1.069 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002398/0.3192, allocations: 152.4 kB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.3192, allocations: 0 / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003783/0.3196, allocations: 186.1 kB / 1.07 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.3196, allocations: 8 kB / 1.07 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3196, allocations: 288 / 1.07 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002034/0.3198, allocations: 32.84 kB / 1.07 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.3199, allocations: 27.92 kB / 1.07 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.3213, allocations: 1.319 MB / 1.071 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/0.3215, allocations: 23.73 kB / 1.071 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.3215, allocations: 8 kB / 1.071 GB, free: 8.453 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.0001761/0.3217, allocations: 145.8 kB / 1.071 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.817e-05/0.3217, allocations: 15.84 kB / 1.071 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.837e-05/0.3218, allocations: 21.48 kB / 1.071 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3218, allocations: 4 kB / 1.071 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3218, allocations: 0 / 1.071 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3218, allocations: 4.031 kB / 1.071 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006913/0.3225, allocations: 451.1 kB / 1.072 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.3225, allocations: 3.984 kB / 1.072 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.631e-05/0.3226, allocations: 4.062 kB / 1.072 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.704e-05/0.3227, allocations: 28.84 kB / 1.072 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.3227, allocations: 4 kB / 1.072 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.3238, allocations: 1.304 MB / 1.073 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3238, allocations: 3.938 kB / 1.073 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002965/0.3241, allocations: 216.1 kB / 1.073 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.3242, allocations: 96.91 kB / 1.073 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.512e-05/0.3243, allocations: 7.938 kB / 1.073 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.3244, allocations: 4 kB / 1.073 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.994e-05/0.3244, allocations: 8.047 kB / 1.073 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.3245, allocations: 4 kB / 1.073 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001688/0.3246, allocations: 152.7 kB / 1.073 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.835e-06/0.3246, allocations: 0 / 1.073 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003576/0.325, allocations: 55.78 kB / 1.073 GB, free: 5.707 MB / 0.8262 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.0001309/0.3251, allocations: 95.25 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004267/0.3256, allocations: 214.7 kB / 1.074 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3256, allocations: 0 / 1.074 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.3258, allocations: 138.7 kB / 1.074 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/0.3262, allocations: 40.17 kB / 1.074 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007714/0.327, allocations: 485.3 kB / 1.074 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.3273, allocations: 0.7478 MB / 1.075 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.745e-05/0.3274, allocations: 15.44 kB / 1.075 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of SimCode: time 6.01e-07/0.3274, allocations: 4 kB / 1.075 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of Templates: time 0.005716/0.3331, allocations: 2.937 MB / 1.078 GB, free: 0.9688 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (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 & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/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