Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.271/2.271, allocations: 387.1 MB / 399.7 MB, free: 9.457 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 176.9 kB / 492.3 MB, free: 0.6172 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 221.3 MB / 0.7871 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008611/0.0008611, allocations: 99.81 kB / 0.9267 GB, free: 13.93 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.76e-05/2.763e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3433, allocations: 142.3 MB / 1.212 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9748/1.318, allocations: 182.5 MB / 1.391 GB, free: 16.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002606/1.319, allocations: 88.58 kB / 1.391 GB, free: 16.28 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.05146/1.37, allocations: 25.82 MB / 1.416 GB, free: 12.17 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.152e-06/1.37, allocations: 4 kB / 1.416 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.347e-05/1.37, allocations: 8 kB / 1.416 GB, free: 12.16 MB / 0.8386 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.0009596/1.371, allocations: 0.6198 MB / 1.417 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/1.371, allocations: 8.031 kB / 1.417 GB, free: 11.51 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00105/1.372, allocations: 159.9 kB / 1.417 GB, free: 11.36 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005403/1.373, allocations: 342.9 kB / 1.417 GB, free: 11.02 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/1.373, allocations: 23.66 kB / 1.417 GB, free: 11 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.619e-05/1.373, allocations: 34.36 kB / 1.417 GB, free: 10.97 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00073/1.374, allocations: 0.5059 MB / 1.418 GB, free: 10.57 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/1.374, allocations: 7.938 kB / 1.418 GB, free: 10.57 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.362e-05/1.374, allocations: 17.67 kB / 1.418 GB, free: 10.56 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-05/1.374, allocations: 27.7 kB / 1.418 GB, free: 10.53 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005308/1.374, allocations: 374.1 kB / 1.418 GB, free: 10.29 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002399/1.377, allocations: 2.419 MB / 1.42 GB, free: 7.891 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004772/1.377, allocations: 254.2 kB / 1.421 GB, free: 7.719 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/1.377, allocations: 108.5 kB / 1.421 GB, free: 7.648 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/1.377, allocations: 7.953 kB / 1.421 GB, free: 7.641 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/1.377, allocations: 34.56 kB / 1.421 GB, free: 7.598 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 2.725e-06/1.377, allocations: 0 / 1.421 GB, free: 7.598 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.001666/1.379, allocations: 0.8557 MB / 1.422 GB, free: 6.832 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/1.379, allocations: 55.41 kB / 1.422 GB, free: 6.766 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/1.379, allocations: 272 kB / 1.422 GB, free: 6.539 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/1.379, allocations: 32.95 kB / 1.422 GB, free: 6.504 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/1.379, allocations: 223.1 kB / 1.422 GB, free: 6.32 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.696e-05/1.38, allocations: 85.33 kB / 1.422 GB, free: 6.246 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.395e-05/1.38, allocations: 6.875 kB / 1.422 GB, free: 6.246 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001113/1.38, allocations: 341.4 kB / 1.423 GB, free: 5.914 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/1.38, allocations: 99.62 kB / 1.423 GB, free: 5.848 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/1.38, allocations: 187.5 kB / 1.423 GB, free: 5.668 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/1.38, allocations: 133.3 kB / 1.423 GB, free: 5.578 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/1.38, allocations: 0 / 1.423 GB, free: 5.578 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006724/1.381, allocations: 432.7 kB / 1.423 GB, free: 5.234 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/1.381, allocations: 8 kB / 1.423 GB, free: 5.227 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/1.381, allocations: 4 kB / 1.423 GB, free: 5.223 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003411/1.381, allocations: 99.33 kB / 1.423 GB, free: 5.129 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/1.382, allocations: 67.09 kB / 1.423 GB, free: 5.066 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002844/1.384, allocations: 4.059 MB / 1.427 GB, free: 0.8125 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/1.385, allocations: 14.97 kB / 1.427 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/1.385, allocations: 15.44 kB / 1.427 GB, free: 0.793 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001083/1.385, allocations: 119.9 kB / 1.428 GB, free: 0.6758 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.02e-05/1.385, allocations: 31.62 kB / 1.428 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.484e-05/1.385, allocations: 41.66 kB / 1.428 GB, free: 0.625 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/1.385, allocations: 7.953 kB / 1.428 GB, free: 0.6172 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/1.385, allocations: 4 kB / 1.428 GB, free: 0.6133 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/1.385, allocations: 3.984 kB / 1.428 GB, free: 0.6094 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004409/1.385, allocations: 396 kB / 1.428 GB, free: 256 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/1.385, allocations: 0 / 1.428 GB, free: 256 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/1.386, allocations: 35.92 kB / 1.428 GB, free: 220 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002754/1.386, allocations: 88.77 kB / 1.428 GB, free: 136 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/1.386, allocations: 3.25 kB / 1.428 GB, free: 136 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002697/1.389, allocations: 4.068 MB / 1.432 GB, free: 11.88 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/1.389, allocations: 0 / 1.432 GB, free: 11.88 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007353/1.389, allocations: 0.5478 MB / 1.433 GB, free: 11.43 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/1.39, allocations: 120.3 kB / 1.433 GB, free: 11.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.63e-05/1.39, allocations: 7.875 kB / 1.433 GB, free: 11.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001947/1.39, allocations: 11.92 kB / 1.433 GB, free: 11.29 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.187e-05/1.39, allocations: 31.42 kB / 1.433 GB, free: 11.26 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/1.39, allocations: 4 kB / 1.433 GB, free: 11.26 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001914/1.39, allocations: 208 kB / 1.433 GB, free: 11.1 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3e-07/1.39, allocations: 0 / 1.433 GB, free: 11.1 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000471/1.391, allocations: 99.62 kB / 1.433 GB, free: 11.01 MB / 0.8542 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000153/1.391, allocations: 111.7 kB / 1.433 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0007348/1.391, allocations: 0.5871 MB / 1.434 GB, free: 10.35 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/1.391, allocations: 0 / 1.434 GB, free: 10.35 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0004411/1.392, allocations: 471 kB / 1.434 GB, free: 9.898 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/1.392, allocations: 73.05 kB / 1.434 GB, free: 9.844 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008627/1.393, allocations: 0.506 MB / 1.435 GB, free: 9.367 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003611/1.394, allocations: 0.8364 MB / 1.436 GB, free: 8.516 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002046/1.394, allocations: 58.94 kB / 1.436 GB, free: 8.461 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.554e-05/1.394, allocations: 27.42 kB / 1.436 GB, free: 8.434 MB / 0.8542 GB Notification: Performance of SimCode: time 6.81e-07/1.394, allocations: 0 / 1.436 GB, free: 8.434 MB / 0.8542 GB Notification: Performance of Templates: time 0.007731/1.402, allocations: 4.132 MB / 1.44 GB, free: 4.352 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches