Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.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: translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.00152/0.00152, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.433/1.433, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.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.486/2.486, allocations: 437 MB / 0.711 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 59.97 kB / 0.8699 GB, free: 2.211 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2651, allocations: 151.6 MB / 1.018 GB, free: 10.66 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006109/0.2712, allocations: 4.369 MB / 1.022 GB, free: 6.273 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003394/0.2747, allocations: 1.866 MB / 1.024 GB, free: 4.398 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003053/0.275, allocations: 8 kB / 1.024 GB, free: 4.391 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001827/0.2768, allocations: 0.5959 MB / 1.025 GB, free: 3.793 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0006546/0.2775, allocations: 254.6 kB / 1.025 GB, free: 3.543 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006715/0.2782, allocations: 267.3 kB / 1.025 GB, free: 3.285 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0007072/0.2789, allocations: 0.6151 MB / 1.026 GB, free: 2.668 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006865/0.2796, allocations: 459 kB / 1.026 GB, free: 2.223 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003197/0.2799, allocations: 251.2 kB / 1.026 GB, free: 1.977 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004643/0.2804, allocations: 263 kB / 1.027 GB, free: 1.719 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.511e-05/0.2805, allocations: 36 kB / 1.027 GB, free: 1.684 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004641/0.281, allocations: 259.4 kB / 1.027 GB, free: 1.43 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.2811, allocations: 147.6 kB / 1.027 GB, free: 1.285 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002405/0.2814, allocations: 218.9 kB / 1.027 GB, free: 1.07 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006913/0.2821, allocations: 0.6036 MB / 1.028 GB, free: 476 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2821, allocations: 0 / 1.028 GB, free: 476 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.332e-06/0.2821, allocations: 0 / 1.028 GB, free: 476 kB / 0.795 GB Notification: Performance of Transformations before backend: time 1.542e-05/0.2821, allocations: 0 / 1.028 GB, free: 476 kB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001303/0.2834, allocations: 0.7251 MB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.2835, allocations: 12.92 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/0.2845, allocations: 152.3 kB / 1.029 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004341/0.2849, allocations: 334.4 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.285, allocations: 21.38 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.332e-05/0.285, allocations: 36.38 kB / 1.029 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007585/0.2858, allocations: 0.5356 MB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.2858, allocations: 3.938 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.205e-05/0.2859, allocations: 12 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.556e-05/0.2859, allocations: 32.64 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006295/0.2866, allocations: 386.3 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002539/0.2891, allocations: 2.403 MB / 1.032 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004996/0.2896, allocations: 258.5 kB / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.2898, allocations: 112.8 kB / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.369e-05/0.2898, allocations: 0 / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.2899, allocations: 42.48 kB / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.162e-06/0.2899, allocations: 0 / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23): time 0.00218/0.2921, allocations: 1.123 MB / 1.034 GB, free: 9.836 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.2921, allocations: 55.41 kB / 1.034 GB, free: 9.77 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003141/0.2924, allocations: 308.3 kB / 1.034 GB, free: 9.461 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.527e-05/0.2925, allocations: 33.7 kB / 1.034 GB, free: 9.422 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.2926, allocations: 231.6 kB / 1.034 GB, free: 9.191 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.869e-05/0.2927, allocations: 78.86 kB / 1.035 GB, free: 9.113 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.637e-05/0.2928, allocations: 61.94 kB / 1.035 GB, free: 9.047 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.2929, allocations: 342.8 kB / 1.035 GB, free: 8.703 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000162/0.2931, allocations: 100.6 kB / 1.035 GB, free: 8.605 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.2933, allocations: 187.8 kB / 1.035 GB, free: 8.383 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000393/0.2937, allocations: 324.4 kB / 1.036 GB, free: 8.031 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2937, allocations: 4 kB / 1.036 GB, free: 8.027 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007653/0.2945, allocations: 438 kB / 1.036 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.2945, allocations: 12 kB / 1.036 GB, free: 7.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.2945, allocations: 0 / 1.036 GB, free: 7.574 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003574/0.2949, allocations: 102.5 kB / 1.036 GB, free: 7.465 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002896/0.2952, allocations: 63.91 kB / 1.036 GB, free: 7.402 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003149/0.2983, allocations: 4.391 MB / 1.04 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.2986, allocations: 11.97 kB / 1.04 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.2986, allocations: 16 kB / 1.04 GB, free: 2.562 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001887/0.2988, allocations: 182.4 kB / 1.041 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.503e-05/0.2989, allocations: 35.56 kB / 1.041 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.441e-05/0.299, allocations: 38.31 kB / 1.041 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.299, allocations: 4 kB / 1.041 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.299, allocations: 0 / 1.041 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.299, allocations: 3.984 kB / 1.041 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004423/0.2994, allocations: 405.4 kB / 1.041 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.2995, allocations: 7.938 kB / 1.041 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000196/0.2997, allocations: 35.92 kB / 1.041 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003114/0.3, allocations: 94.5 kB / 1.041 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.3, allocations: 4 kB / 1.041 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003086/0.3031, allocations: 4.384 MB / 1.045 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3031, allocations: 0 / 1.045 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008005/0.3039, allocations: 0.5541 MB / 1.046 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.3041, allocations: 124.7 kB / 1.046 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.674e-05/0.3041, allocations: 12 kB / 1.046 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.3044, allocations: 11.98 kB / 1.046 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.65e-05/0.3044, allocations: 20.03 kB / 1.046 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.3044, allocations: 15.94 kB / 1.046 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002053/0.3046, allocations: 207 kB / 1.046 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3047, allocations: 0 / 1.046 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004704/0.3051, allocations: 103.9 kB / 1.047 GB, free: 11.81 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001204/0.3053, allocations: 111.2 kB / 1.047 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008883/0.3061, allocations: 0.6169 MB / 1.047 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.3062, allocations: 4 kB / 1.047 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005636/0.3067, allocations: 472.6 kB / 1.048 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004874/0.3072, allocations: 70.48 kB / 1.048 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.3086, allocations: 0.7693 MB / 1.048 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004038/0.309, allocations: 0.8311 MB / 1.049 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.296e-05/0.3091, allocations: 23.44 kB / 1.049 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of SimCode: time 1.333e-06/0.3091, allocations: 0 / 1.049 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of Templates: time 0.01158/0.3207, allocations: 8.654 MB / 1.058 GB, free: 156 kB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches