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.254/2.254, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001006/0.001006, allocations: 188.8 kB / 487.4 MB, free: 5.066 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.469/1.469, allocations: 221.5 MB / 0.7824 GB, free: 1.035 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 98.08 kB / 0.9219 GB, free: 2.273 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.72e-05/1.722e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2804, allocations: 142.4 MB / 1.206 GB, free: 43.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9478/1.228, allocations: 181.8 MB / 1.383 GB, free: 17.64 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/1.229, allocations: 84.92 kB / 1.384 GB, free: 17.63 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.05126/1.28, allocations: 25.73 MB / 1.409 GB, free: 20.75 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.393e-06/1.28, allocations: 0 / 1.409 GB, free: 20.75 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.177e-05/1.28, allocations: 8 kB / 1.409 GB, free: 20.74 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.001143/1.281, allocations: 0.6152 MB / 1.409 GB, free: 20.11 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/1.281, allocations: 12.56 kB / 1.409 GB, free: 20.09 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001187/1.282, allocations: 163.9 kB / 1.409 GB, free: 19.93 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005394/1.283, allocations: 336.5 kB / 1.41 GB, free: 19.6 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/1.283, allocations: 12 kB / 1.41 GB, free: 19.59 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.692e-05/1.283, allocations: 20 kB / 1.41 GB, free: 19.57 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004913/1.283, allocations: 335.9 kB / 1.41 GB, free: 19.36 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006088/1.284, allocations: 473 kB / 1.411 GB, free: 18.97 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/1.284, allocations: 7.938 kB / 1.411 GB, free: 18.96 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.633e-05/1.284, allocations: 0 / 1.411 GB, free: 18.96 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.696e-05/1.284, allocations: 24.77 kB / 1.411 GB, free: 18.94 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002245/1.286, allocations: 2.344 MB / 1.413 GB, free: 16.62 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004073/1.287, allocations: 248.1 kB / 1.413 GB, free: 16.46 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/1.287, allocations: 97.14 kB / 1.413 GB, free: 16.39 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.278e-05/1.287, allocations: 352 / 1.413 GB, free: 16.39 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.944e-05/1.287, allocations: 45.95 kB / 1.413 GB, free: 16.34 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 1.092e-06/1.287, allocations: 0 / 1.413 GB, free: 16.34 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.001369/1.288, allocations: 0.7843 MB / 1.414 GB, free: 15.62 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.216e-05/1.288, allocations: 63.34 kB / 1.414 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/1.289, allocations: 223 kB / 1.414 GB, free: 15.37 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/1.289, allocations: 29.69 kB / 1.414 GB, free: 15.33 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/1.289, allocations: 234.6 kB / 1.415 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.677e-05/1.289, allocations: 73.34 kB / 1.415 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.27e-05/1.289, allocations: 0 / 1.415 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.00013/1.289, allocations: 337.6 kB / 1.415 GB, free: 14.74 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/1.289, allocations: 93.38 kB / 1.415 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/1.289, allocations: 178 kB / 1.415 GB, free: 14.51 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/1.289, allocations: 127.9 kB / 1.415 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/1.29, allocations: 0 / 1.415 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006421/1.29, allocations: 398.9 kB / 1.416 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/1.29, allocations: 4 kB / 1.416 GB, free: 14.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/1.29, allocations: 4 kB / 1.416 GB, free: 14.1 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003423/1.291, allocations: 89.47 kB / 1.416 GB, free: 14.01 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002719/1.291, allocations: 75.33 kB / 1.416 GB, free: 13.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003208/1.294, allocations: 3.895 MB / 1.42 GB, free: 9.891 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002289/1.294, allocations: 8.219 kB / 1.42 GB, free: 9.883 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.266e-05/1.294, allocations: 8 kB / 1.42 GB, free: 9.875 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.0001241/1.294, allocations: 120.2 kB / 1.42 GB, free: 9.754 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.713e-05/1.295, allocations: 27.62 kB / 1.42 GB, free: 9.727 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.689e-05/1.295, allocations: 34.58 kB / 1.42 GB, free: 9.711 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/1.295, allocations: 4 kB / 1.42 GB, free: 9.707 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/1.295, allocations: 0 / 1.42 GB, free: 9.707 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/1.295, allocations: 4 kB / 1.42 GB, free: 9.703 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005252/1.295, allocations: 340 kB / 1.42 GB, free: 9.402 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/1.295, allocations: 4 kB / 1.42 GB, free: 9.398 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001999/1.295, allocations: 31.97 kB / 1.42 GB, free: 9.367 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003238/1.296, allocations: 86.95 kB / 1.42 GB, free: 9.285 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.991e-05/1.296, allocations: 4 kB / 1.42 GB, free: 9.281 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002996/1.299, allocations: 3.897 MB / 1.424 GB, free: 5.242 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.299, allocations: 0 / 1.424 GB, free: 5.242 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007392/1.3, allocations: 0.5225 MB / 1.425 GB, free: 4.812 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001755/1.3, allocations: 123.5 kB / 1.425 GB, free: 4.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.336e-05/1.3, allocations: 3.953 kB / 1.425 GB, free: 4.676 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/1.3, allocations: 4 kB / 1.425 GB, free: 4.672 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.939e-05/1.3, allocations: 31.58 kB / 1.425 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/1.3, allocations: 8 kB / 1.425 GB, free: 4.637 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001648/1.3, allocations: 169.5 kB / 1.425 GB, free: 4.504 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.3, allocations: 4 kB / 1.425 GB, free: 4.5 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005374/1.301, allocations: 88 kB / 1.425 GB, free: 4.414 MB / 0.8386 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.0001769/1.301, allocations: 99.23 kB / 1.425 GB, free: 4.309 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008683/1.302, allocations: 0.562 MB / 1.426 GB, free: 3.797 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.302, allocations: 0 / 1.426 GB, free: 3.797 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004758/1.302, allocations: 448.9 kB / 1.426 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004137/1.303, allocations: 57.77 kB / 1.426 GB, free: 3.332 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/1.304, allocations: 498.1 kB / 1.427 GB, free: 2.867 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005239/1.305, allocations: 0.8438 MB / 1.428 GB, free: 2.008 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000236/1.305, allocations: 51.25 kB / 1.428 GB, free: 1.957 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.492e-05/1.305, allocations: 23.44 kB / 1.428 GB, free: 1.934 MB / 0.8386 GB Notification: Performance of SimCode: time 4.71e-07/1.305, allocations: 4 kB / 1.428 GB, free: 1.93 MB / 0.8386 GB Notification: Performance of Templates: time 0.008055/1.313, allocations: 3.679 MB / 1.431 GB, free: 14.3 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