Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.519/2.519, allocations: 390.5 MB / 398 MB, free: 10.92 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.001131/0.001131, allocations: 180 kB / 491.2 MB, free: 1.605 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.775/1.775, allocations: 221.5 MB / 0.7868 GB, free: 13.38 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.001038/0.001038, allocations: 94.83 kB / 0.9269 GB, free: 13.87 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.296e-05/2.288e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2813, allocations: 143 MB / 1.212 GB, free: 39.57 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.037/1.319, allocations: 182.6 MB / 1.391 GB, free: 15.46 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/1.319, allocations: 84.95 kB / 1.391 GB, free: 15.45 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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.05244/1.372, allocations: 25.73 MB / 1.416 GB, free: 12.73 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.455e-06/1.372, allocations: 4 kB / 1.416 GB, free: 12.73 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.844e-05/1.372, allocations: 8 kB / 1.416 GB, free: 12.72 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.001161/1.373, allocations: 0.6215 MB / 1.416 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/1.373, allocations: 8.031 kB / 1.416 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00113/1.374, allocations: 163 kB / 1.417 GB, free: 11.91 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006017/1.375, allocations: 343.8 kB / 1.417 GB, free: 11.56 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/1.375, allocations: 12 kB / 1.417 GB, free: 11.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.43e-05/1.375, allocations: 23.94 kB / 1.417 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005444/1.375, allocations: 336.8 kB / 1.417 GB, free: 11.31 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007028/1.376, allocations: 473.7 kB / 1.418 GB, free: 10.92 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/1.376, allocations: 0 / 1.418 GB, free: 10.92 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/1.376, allocations: 4 kB / 1.418 GB, free: 10.92 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.144e-05/1.376, allocations: 31.78 kB / 1.418 GB, free: 10.89 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002465/1.379, allocations: 2.325 MB / 1.42 GB, free: 8.574 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004782/1.379, allocations: 250.8 kB / 1.42 GB, free: 8.406 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/1.379, allocations: 99.98 kB / 1.42 GB, free: 8.34 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/1.379, allocations: 7.953 kB / 1.42 GB, free: 8.332 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/1.379, allocations: 38.31 kB / 1.42 GB, free: 8.289 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 1.834e-06/1.379, allocations: 0 / 1.42 GB, free: 8.289 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.001554/1.381, allocations: 0.7884 MB / 1.421 GB, free: 7.57 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/1.381, allocations: 55.41 kB / 1.421 GB, free: 7.504 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002471/1.381, allocations: 220.1 kB / 1.421 GB, free: 7.316 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/1.381, allocations: 25.7 kB / 1.422 GB, free: 7.285 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/1.381, allocations: 241.9 kB / 1.422 GB, free: 7.082 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.921e-05/1.381, allocations: 78.78 kB / 1.422 GB, free: 7.012 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.462e-05/1.381, allocations: 0 / 1.422 GB, free: 7.012 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001264/1.382, allocations: 338.4 kB / 1.422 GB, free: 6.684 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/1.382, allocations: 94.62 kB / 1.422 GB, free: 6.621 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/1.382, allocations: 182.4 kB / 1.422 GB, free: 6.449 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001736/1.382, allocations: 115.3 kB / 1.423 GB, free: 6.375 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/1.382, allocations: 8 kB / 1.423 GB, free: 6.367 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006174/1.383, allocations: 391.4 kB / 1.423 GB, free: 6.051 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/1.383, allocations: 12.03 kB / 1.423 GB, free: 6.039 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/1.383, allocations: 4 kB / 1.423 GB, free: 6.035 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003309/1.383, allocations: 85.77 kB / 1.423 GB, free: 5.957 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/1.383, allocations: 63.89 kB / 1.423 GB, free: 5.895 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002899/1.386, allocations: 3.901 MB / 1.427 GB, free: 1.848 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/1.387, allocations: 4.031 kB / 1.427 GB, free: 1.844 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/1.387, allocations: 12 kB / 1.427 GB, free: 1.832 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.0001153/1.387, allocations: 120.9 kB / 1.427 GB, free: 1.711 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.681e-05/1.387, allocations: 31.62 kB / 1.427 GB, free: 1.68 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.587e-05/1.387, allocations: 33.2 kB / 1.427 GB, free: 1.664 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/1.387, allocations: 0 / 1.427 GB, free: 1.664 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/1.387, allocations: 4 kB / 1.427 GB, free: 1.66 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/1.387, allocations: 3.938 kB / 1.427 GB, free: 1.656 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004039/1.387, allocations: 339.5 kB / 1.427 GB, free: 1.352 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/1.387, allocations: 3.938 kB / 1.427 GB, free: 1.348 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/1.387, allocations: 35.97 kB / 1.427 GB, free: 1.312 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002713/1.388, allocations: 87.95 kB / 1.427 GB, free: 1.23 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/1.388, allocations: 4 kB / 1.428 GB, free: 1.227 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002966/1.391, allocations: 3.898 MB / 1.431 GB, free: 13.18 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.391, allocations: 0 / 1.431 GB, free: 13.18 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007358/1.392, allocations: 0.5189 MB / 1.432 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/1.392, allocations: 119.7 kB / 1.432 GB, free: 12.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.827e-05/1.392, allocations: 16.11 kB / 1.432 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/1.392, allocations: 7.906 kB / 1.432 GB, free: 12.6 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.827e-05/1.392, allocations: 19.34 kB / 1.432 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/1.392, allocations: 4 kB / 1.432 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001775/1.392, allocations: 174.5 kB / 1.432 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.6e-07/1.392, allocations: 3.938 kB / 1.432 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004944/1.393, allocations: 92 kB / 1.432 GB, free: 12.35 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.0001861/1.393, allocations: 107.2 kB / 1.432 GB, free: 12.23 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0008017/1.394, allocations: 0.559 MB / 1.433 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/1.394, allocations: 0 / 1.433 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0004501/1.394, allocations: 434.9 kB / 1.433 GB, free: 11.32 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004094/1.395, allocations: 56.34 kB / 1.433 GB, free: 11.27 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009508/1.396, allocations: 494.9 kB / 1.434 GB, free: 10.82 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000499/1.396, allocations: 0.8396 MB / 1.435 GB, free: 9.961 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002205/1.396, allocations: 63.17 kB / 1.435 GB, free: 9.898 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.274e-05/1.396, allocations: 23.44 kB / 1.435 GB, free: 9.875 MB / 0.8542 GB Notification: Performance of SimCode: time 4.61e-07/1.396, allocations: 0 / 1.435 GB, free: 9.875 MB / 0.8542 GB Notification: Performance of Templates: time 0.007652/1.404, allocations: 3.687 MB / 1.438 GB, free: 6.23 MB / 0.8542 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches