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.001347/0.001347, allocations: 107.8 kB / 16.27 MB, free: 5.988 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.001323/0.001323, allocations: 192.3 kB / 17.2 MB, free: 5.613 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.448/1.448, allocations: 222.9 MB / 240.9 MB, free: 15.19 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.562/2.562, allocations: 437.1 MB / 0.7111 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 64.78 kB / 0.8699 GB, free: 2.164 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2864, allocations: 151.6 MB / 1.018 GB, free: 10.61 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006686/0.2932, allocations: 4.354 MB / 1.022 GB, free: 6.234 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00332/0.2965, allocations: 1.862 MB / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000236/0.2968, allocations: 8 kB / 1.024 GB, free: 4.355 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001751/0.2985, allocations: 0.6084 MB / 1.025 GB, free: 3.746 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.000683/0.2992, allocations: 258.6 kB / 1.025 GB, free: 3.492 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006994/0.2999, allocations: 258 kB / 1.025 GB, free: 3.242 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0007486/0.3007, allocations: 0.6112 MB / 1.026 GB, free: 2.629 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000731/0.3014, allocations: 471 kB / 1.026 GB, free: 2.172 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003011/0.3018, allocations: 243.2 kB / 1.026 GB, free: 1.934 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004519/0.3022, allocations: 271 kB / 1.027 GB, free: 1.668 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.718e-05/0.3023, allocations: 39.94 kB / 1.027 GB, free: 1.629 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000473/0.3028, allocations: 247.5 kB / 1.027 GB, free: 1.387 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.3029, allocations: 151.6 kB / 1.027 GB, free: 1.238 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002458/0.3032, allocations: 222.9 kB / 1.027 GB, free: 1.02 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0007223/0.3039, allocations: 0.5958 MB / 1.028 GB, free: 432 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.3039, allocations: 0 / 1.028 GB, free: 432 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.603e-06/0.304, allocations: 0 / 1.028 GB, free: 432 kB / 0.795 GB Notification: Performance of Transformations before backend: time 8.236e-06/0.304, allocations: 0 / 1.028 GB, free: 432 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.001399/0.3054, allocations: 0.729 MB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.3054, allocations: 8.625 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/0.3064, allocations: 152.3 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004731/0.3069, allocations: 330.4 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.307, allocations: 25.38 kB / 1.029 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.473e-05/0.307, allocations: 32.38 kB / 1.029 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000829/0.3079, allocations: 0.5317 MB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.3079, allocations: 3.938 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.494e-05/0.308, allocations: 20 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.928e-05/0.308, allocations: 32.64 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006584/0.3087, allocations: 386.3 kB / 1.03 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002859/0.3116, allocations: 2.403 MB / 1.032 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005673/0.3121, allocations: 258.5 kB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001703/0.3123, allocations: 104.8 kB / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.3123, allocations: 4 kB / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.3124, allocations: 42.5 kB / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.733e-06/0.3124, allocations: 0 / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23): time 0.002304/0.3147, allocations: 1.128 MB / 1.034 GB, free: 9.793 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.3148, allocations: 59.41 kB / 1.034 GB, free: 9.723 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003411/0.3151, allocations: 308.3 kB / 1.034 GB, free: 9.414 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.3151, allocations: 29.64 kB / 1.034 GB, free: 9.379 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.3153, allocations: 231.6 kB / 1.035 GB, free: 9.148 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.533e-05/0.3154, allocations: 70.91 kB / 1.035 GB, free: 9.078 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.3155, allocations: 65.94 kB / 1.035 GB, free: 9.008 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000159/0.3157, allocations: 346.8 kB / 1.035 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.3158, allocations: 100.6 kB / 1.035 GB, free: 8.562 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.3161, allocations: 187.8 kB / 1.035 GB, free: 8.34 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004315/0.3166, allocations: 324.4 kB / 1.036 GB, free: 7.988 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3166, allocations: 0 / 1.036 GB, free: 7.988 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007777/0.3173, allocations: 449.8 kB / 1.036 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.3174, allocations: 7.984 kB / 1.036 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3174, allocations: 4 kB / 1.036 GB, free: 7.523 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003655/0.3178, allocations: 94.69 kB / 1.036 GB, free: 7.422 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002895/0.3181, allocations: 63.91 kB / 1.036 GB, free: 7.359 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003796/0.3219, allocations: 4.4 MB / 1.04 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002395/0.3221, allocations: 11.98 kB / 1.04 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/0.3221, allocations: 8 kB / 1.04 GB, free: 2.52 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.0002221/0.3224, allocations: 185.7 kB / 1.041 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.025e-05/0.3225, allocations: 35.56 kB / 1.041 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.745e-05/0.3225, allocations: 38.31 kB / 1.041 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.3226, allocations: 4.062 kB / 1.041 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.3226, allocations: 8 kB / 1.041 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3226, allocations: 0 / 1.041 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005171/0.3231, allocations: 401.3 kB / 1.041 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3231, allocations: 0 / 1.041 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002011/0.3233, allocations: 39.91 kB / 1.041 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003116/0.3236, allocations: 90.5 kB / 1.041 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.3237, allocations: 4 kB / 1.041 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00377/0.3274, allocations: 4.384 MB / 1.046 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3275, allocations: 4 kB / 1.046 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009225/0.3284, allocations: 0.5546 MB / 1.046 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001611/0.3286, allocations: 128.7 kB / 1.046 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.823e-05/0.3286, allocations: 4.125 kB / 1.046 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002133/0.3288, allocations: 19.92 kB / 1.046 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.062e-05/0.3289, allocations: 15.98 kB / 1.046 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.3289, allocations: 4 kB / 1.046 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002421/0.3292, allocations: 219 kB / 1.046 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3292, allocations: 0 / 1.046 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004696/0.3296, allocations: 99.94 kB / 1.047 GB, free: 11.77 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.0001538/0.3298, allocations: 103.2 kB / 1.047 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009574/0.3308, allocations: 0.6329 MB / 1.047 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.515e-06/0.3308, allocations: 0 / 1.047 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005773/0.3314, allocations: 473.1 kB / 1.048 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005011/0.3319, allocations: 75.53 kB / 1.048 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.3332, allocations: 0.7563 MB / 1.049 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005819/0.3338, allocations: 0.835 MB / 1.049 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.181e-05/0.3339, allocations: 27.44 kB / 1.049 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of SimCode: time 4.31e-07/0.3339, allocations: 0 / 1.049 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of Templates: time 0.01212/0.346, allocations: 8.658 MB / 1.058 GB, free: 108 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=400 -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