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.001024/0.001024, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.008792/0.008792, allocations: 172.2 kB / 16.26 MB, free: 6.676 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.561/1.561, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.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.856/2.856, allocations: 437.8 MB / 0.7121 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005789/0.000579, allocations: 8.188 kB / 0.8728 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7098/0.7104, allocations: 153.8 MB / 1.023 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005688/0.7161, allocations: 4 MB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003339/0.7195, allocations: 1.839 MB / 1.029 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003713/0.7199, allocations: 11.94 kB / 1.029 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003643/0.7203, allocations: 67.42 kB / 1.029 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0009663/0.7213, allocations: 250.9 kB / 1.029 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008754/0.7221, allocations: 231.5 kB / 1.029 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001228/0.7234, allocations: 0.8374 MB / 1.03 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008243/0.7242, allocations: 435.4 kB / 1.03 GB, free: 8.207 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005059/0.7247, allocations: 203.2 kB / 1.031 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007532/0.7255, allocations: 255 kB / 1.031 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.805e-05/0.7256, allocations: 23.94 kB / 1.031 GB, free: 7.734 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006892/0.7263, allocations: 307.3 kB / 1.031 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002202/0.7265, allocations: 123.7 kB / 1.031 GB, free: 7.312 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003659/0.7269, allocations: 224.6 kB / 1.032 GB, free: 7.086 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.7279, allocations: 0.6092 MB / 1.032 GB, free: 6.477 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.728, allocations: 0 / 1.032 GB, free: 6.477 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.904e-06/0.728, allocations: 0 / 1.032 GB, free: 6.477 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.031e-05/0.728, allocations: 0 / 1.032 GB, free: 6.477 MB / 0.7794 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.001456/0.7295, allocations: 0.6474 MB / 1.033 GB, free: 5.777 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.7295, allocations: 8.031 kB / 1.033 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001186/0.7307, allocations: 152.3 kB / 1.033 GB, free: 5.621 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006184/0.7313, allocations: 342.3 kB / 1.033 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.349e-05/0.7314, allocations: 21.38 kB / 1.033 GB, free: 5.227 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.984e-05/0.7315, allocations: 36.38 kB / 1.033 GB, free: 5.191 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008859/0.7324, allocations: 0.5356 MB / 1.034 GB, free: 4.617 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.7324, allocations: 0 / 1.034 GB, free: 4.617 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.607e-05/0.7325, allocations: 12 kB / 1.034 GB, free: 4.605 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-05/0.7325, allocations: 32.64 kB / 1.034 GB, free: 4.574 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006486/0.7332, allocations: 390.3 kB / 1.034 GB, free: 4.191 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002904/0.7361, allocations: 2.411 MB / 1.037 GB, free: 1.559 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005154/0.7366, allocations: 270.3 kB / 1.037 GB, free: 1.289 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.7368, allocations: 112.8 kB / 1.037 GB, free: 1.176 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.7368, allocations: 4 kB / 1.037 GB, free: 1.172 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.7369, allocations: 34.56 kB / 1.037 GB, free: 1.129 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.803e-06/0.7369, allocations: 0 / 1.037 GB, free: 1.129 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.002312/0.7392, allocations: 1.13 MB / 1.038 GB, free: 15.9 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.7393, allocations: 55.39 kB / 1.038 GB, free: 15.84 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00031/0.7396, allocations: 300.4 kB / 1.038 GB, free: 15.53 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.7396, allocations: 37.7 kB / 1.039 GB, free: 15.49 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.7398, allocations: 231.6 kB / 1.039 GB, free: 15.26 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 7.562e-05/0.7398, allocations: 82.84 kB / 1.039 GB, free: 15.18 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.291e-05/0.7399, allocations: 29.7 kB / 1.039 GB, free: 15.14 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.74, allocations: 338.8 kB / 1.039 GB, free: 14.8 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.7402, allocations: 100.6 kB / 1.039 GB, free: 14.7 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.7404, allocations: 191.7 kB / 1.039 GB, free: 14.47 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/0.7408, allocations: 315.5 kB / 1.04 GB, free: 14.13 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.7409, allocations: 0 / 1.04 GB, free: 14.13 MB / 0.795 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007714/0.7416, allocations: 443.1 kB / 1.04 GB, free: 13.68 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.7417, allocations: 10.06 kB / 1.04 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.7417, allocations: 11.94 kB / 1.04 GB, free: 13.66 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003754/0.7421, allocations: 94.44 kB / 1.04 GB, free: 13.56 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/0.7424, allocations: 63.91 kB / 1.04 GB, free: 13.5 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00313/0.7455, allocations: 4.079 MB / 1.044 GB, free: 9.02 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.7458, allocations: 8 kB / 1.044 GB, free: 9.012 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.7458, allocations: 8 kB / 1.044 GB, free: 9.004 MB / 0.795 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.000246/0.746, allocations: 194.5 kB / 1.045 GB, free: 8.805 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.971e-05/0.7461, allocations: 31.62 kB / 1.045 GB, free: 8.773 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.27e-05/0.7462, allocations: 38.31 kB / 1.045 GB, free: 8.734 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.7462, allocations: 4 kB / 1.045 GB, free: 8.73 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.7462, allocations: 0 / 1.045 GB, free: 8.73 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.7463, allocations: 7.984 kB / 1.045 GB, free: 8.723 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004653/0.7467, allocations: 405.3 kB / 1.045 GB, free: 8.277 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.7467, allocations: 0 / 1.045 GB, free: 8.277 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.7469, allocations: 27.98 kB / 1.045 GB, free: 8.25 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003006/0.7472, allocations: 98.48 kB / 1.045 GB, free: 8.145 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.7473, allocations: 7.984 kB / 1.045 GB, free: 8.137 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002878/0.7502, allocations: 4.076 MB / 1.049 GB, free: 3.656 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.7502, allocations: 0 / 1.049 GB, free: 3.656 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000812/0.751, allocations: 0.5506 MB / 1.05 GB, free: 3.082 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001364/0.7511, allocations: 124.8 kB / 1.05 GB, free: 2.941 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.608e-05/0.7512, allocations: 7.938 kB / 1.05 GB, free: 2.934 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.7514, allocations: 15.98 kB / 1.05 GB, free: 2.918 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.722e-05/0.7514, allocations: 15.92 kB / 1.05 GB, free: 2.902 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.7515, allocations: 11.98 kB / 1.05 GB, free: 2.891 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002099/0.7517, allocations: 211.1 kB / 1.05 GB, free: 2.688 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7517, allocations: 0 / 1.05 GB, free: 2.688 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004749/0.7522, allocations: 100 kB / 1.05 GB, free: 2.59 MB / 0.795 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.0001355/0.7523, allocations: 107.2 kB / 1.05 GB, free: 2.477 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008624/0.7532, allocations: 0.6105 MB / 1.051 GB, free: 1.828 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.7532, allocations: 0 / 1.051 GB, free: 1.828 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005038/0.7537, allocations: 480.1 kB / 1.051 GB, free: 1.32 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005253/0.7542, allocations: 79.34 kB / 1.051 GB, free: 1.246 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.7555, allocations: 0.8833 MB / 1.052 GB, free: 348 kB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004827/0.756, allocations: 0.8309 MB / 1.053 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002152/0.7563, allocations: 62.92 kB / 1.053 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.494e-05/0.7563, allocations: 27.42 kB / 1.053 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of SimCode: time 8.22e-07/0.7563, allocations: 3.938 kB / 1.053 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of Templates: time 0.009228/0.7656, allocations: 4.219 MB / 1.057 GB, free: 11.21 MB / 0.8106 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/jenkins/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