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.459/2.459, allocations: 393.5 MB / 408.4 MB, free: 11.01 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.001142/0.001142, allocations: 182.9 kB / 0.4902 GB, free: 2.281 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.658/1.658, allocations: 223.2 MB / 0.7992 GB, free: 14.76 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.001009/0.001009, allocations: 98.02 kB / 0.9396 GB, free: 1.914 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004159/0.0004159, allocations: 10.5 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4328/0.4332, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2614/0.6947, allocations: 183.3 MB / 1.408 GB, free: 2.16 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003567/0.6951, allocations: 95.89 kB / 1.408 GB, free: 2.066 MB / 0.9011 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.7319/1.427, allocations: 26 MB / 1.434 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.984e-06/1.427, allocations: 0 / 1.434 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 3.866e-05/1.427, allocations: 16.42 kB / 1.434 GB, free: 184.6 MB / 0.9167 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.001521/1.429, allocations: 0.6602 MB / 1.434 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/1.429, allocations: 8.875 kB / 1.434 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001308/1.43, allocations: 159.1 kB / 1.435 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006824/1.431, allocations: 336 kB / 1.435 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/1.431, allocations: 28.42 kB / 1.435 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.108e-05/1.431, allocations: 34.81 kB / 1.435 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009185/1.432, allocations: 0.519 MB / 1.435 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/1.432, allocations: 3.312 kB / 1.435 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.398e-05/1.432, allocations: 15.09 kB / 1.435 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.972e-05/1.432, allocations: 27.25 kB / 1.435 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006364/1.433, allocations: 383 kB / 1.436 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002616/1.435, allocations: 2.42 MB / 1.438 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005281/1.436, allocations: 264.6 kB / 1.438 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/1.436, allocations: 1.969 kB / 1.438 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/1.436, allocations: 41.05 kB / 1.438 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=20): time 2.053e-06/1.436, allocations: 3.938 kB / 1.439 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of matching and sorting (n=23): time 0.002172/1.438, allocations: 1.031 MB / 1.44 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/1.438, allocations: 53.34 kB / 1.44 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003267/1.438, allocations: 266.4 kB / 1.44 GB, free: 181.2 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/1.438, allocations: 30.36 kB / 1.44 GB, free: 181.2 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/1.439, allocations: 226.6 kB / 1.44 GB, free: 181.1 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 6.783e-05/1.439, allocations: 84.69 kB / 1.44 GB, free: 181 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.421e-05/1.439, allocations: 10.47 kB / 1.44 GB, free: 181 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 9.634e-05/1.439, allocations: 339.5 kB / 1.44 GB, free: 180.7 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/1.439, allocations: 100.6 kB / 1.441 GB, free: 180.7 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/1.439, allocations: 183.1 kB / 1.441 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002051/1.439, allocations: 137.6 kB / 1.441 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/1.439, allocations: 0.9375 kB / 1.441 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007303/1.44, allocations: 437 kB / 1.441 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/1.44, allocations: 6.641 kB / 1.441 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/1.44, allocations: 3.5 kB / 1.441 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003482/1.441, allocations: 92.25 kB / 1.441 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003096/1.441, allocations: 64.28 kB / 1.441 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002622/1.443, allocations: 4.117 MB / 1.445 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002333/1.444, allocations: 9.25 kB / 1.445 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/1.444, allocations: 17.77 kB / 1.445 GB, free: 176.6 MB / 0.9167 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 (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.0001988/1.444, allocations: 175.8 kB / 1.446 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.888e-05/1.444, allocations: 28.34 kB / 1.446 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.33e-05/1.444, allocations: 39.41 kB / 1.446 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/1.444, allocations: 11.25 kB / 1.446 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/1.444, allocations: 1.875 kB / 1.446 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/1.444, allocations: 0.75 kB / 1.446 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004844/1.445, allocations: 396.4 kB / 1.446 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/1.445, allocations: 1.312 kB / 1.446 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/1.445, allocations: 35.66 kB / 1.446 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002935/1.445, allocations: 89.7 kB / 1.446 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/1.445, allocations: 4.609 kB / 1.446 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002317/1.447, allocations: 4.105 MB / 1.45 GB, free: 172.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/1.448, allocations: 0.9688 kB / 1.45 GB, free: 172.5 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008334/1.448, allocations: 0.5562 MB / 1.451 GB, free: 172.3 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/1.449, allocations: 126.5 kB / 1.451 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.617e-05/1.449, allocations: 5.688 kB / 1.451 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002707/1.449, allocations: 12.95 kB / 1.451 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.195e-05/1.449, allocations: 27.45 kB / 1.451 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/1.449, allocations: 8.844 kB / 1.451 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0002373/1.449, allocations: 205 kB / 1.451 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.553e-06/1.449, allocations: 0 / 1.451 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0005264/1.45, allocations: 103.6 kB / 1.451 GB, free: 172.1 MB / 0.9167 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 (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.0001519/1.45, allocations: 108 kB / 1.451 GB, free: 172 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0008459/1.451, allocations: 0.604 MB / 1.452 GB, free: 171.6 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/1.451, allocations: 4.25 kB / 1.452 GB, free: 171.6 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004824/1.451, allocations: 463.7 kB / 1.452 GB, free: 171.3 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004412/1.452, allocations: 73.05 kB / 1.452 GB, free: 171.3 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/1.453, allocations: 0.8576 MB / 1.453 GB, free: 170.8 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003515/1.453, allocations: 0.8384 MB / 1.454 GB, free: 170.1 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002144/1.454, allocations: 62.56 kB / 1.454 GB, free: 170.1 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.253e-05/1.454, allocations: 22.34 kB / 1.454 GB, free: 170.1 MB / 0.9167 GB Notification: Performance of SimCode: time 4.81e-07/1.454, allocations: 5.031 kB / 1.454 GB, free: 170.1 MB / 0.9167 GB Notification: Performance of Templates: time 0.007767/1.461, allocations: 4.112 MB / 1.458 GB, free: 169.9 MB / 0.9167 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