Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.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 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.598/1.598, allocations: 297.8 MB / 313.7 MB, free: 116 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009841/0.0009841, allocations: 182.9 kB / 384.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 223.2 MB / 0.6626 GB, free: 4.297 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007326/0.0007326, allocations: 107.5 kB / 0.7808 GB, free: 50.38 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003764, allocations: 16 kB / 0.9088 GB, free: 2.879 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6089/0.6093, allocations: 120.3 MB / 1.026 GB, free: 55.9 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1822/0.7915, allocations: 167.6 MB / 1.19 GB, free: 10.2 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.7918, allocations: 89.78 kB / 1.19 GB, free: 10.12 MB / 0.7605 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13: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.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 9.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.02811/0.8199, allocations: 12.82 MB / 1.203 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.483e-06/0.8199, allocations: 1.188 kB / 1.203 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 1.589e-05/0.8199, allocations: 4 kB / 1.203 GB, free: 13.43 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006624/0.8206, allocations: 493.8 kB / 1.203 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.8207, allocations: 8.031 kB / 1.203 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005866/0.8213, allocations: 84.58 kB / 1.203 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003672/0.8216, allocations: 246.4 kB / 1.203 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/0.8217, allocations: 20.67 kB / 1.203 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/0.8217, allocations: 24.31 kB / 1.203 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004691/0.8222, allocations: 284.6 kB / 1.204 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.8222, allocations: 192 / 1.204 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.998e-05/0.8223, allocations: 15.88 kB / 1.204 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.378e-05/0.8223, allocations: 16.38 kB / 1.204 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003272/0.8226, allocations: 201.3 kB / 1.204 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00158/0.8242, allocations: 1.465 MB / 1.205 GB, free: 10.33 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000237/0.8245, allocations: 175.7 kB / 1.205 GB, free: 10.13 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.522e-05/0.8245, allocations: 32.84 kB / 1.206 GB, free: 10.1 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 7.023e-06/0.8245, allocations: 4 kB / 1.206 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.8246, allocations: 38.5 kB / 1.206 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.8246, allocations: 0 / 1.206 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of matching and sorting (n=7): time 0.0004484/0.825, allocations: 225 kB / 1.206 GB, free: 9.805 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.8251, allocations: 51.56 kB / 1.206 GB, free: 9.742 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.8253, allocations: 201.4 kB / 1.206 GB, free: 9.535 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.8253, allocations: 25.7 kB / 1.206 GB, free: 9.504 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.161e-05/0.8254, allocations: 175.6 kB / 1.206 GB, free: 9.328 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.8254, allocations: 19.66 kB / 1.206 GB, free: 9.309 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.551e-06/0.8254, allocations: 4 kB / 1.206 GB, free: 9.305 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001035/0.8255, allocations: 330.8 kB / 1.207 GB, free: 8.973 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.902e-05/0.8256, allocations: 35.91 kB / 1.207 GB, free: 8.938 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.557e-05/0.8257, allocations: 105.4 kB / 1.207 GB, free: 8.805 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001761/0.8259, allocations: 144.5 kB / 1.207 GB, free: 8.633 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.8259, allocations: 4 kB / 1.207 GB, free: 8.629 MB / 0.7761 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003081/0.8262, allocations: 186.2 kB / 1.207 GB, free: 8.438 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.8262, allocations: 5.094 kB / 1.207 GB, free: 8.434 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.8262, allocations: 4 kB / 1.207 GB, free: 8.43 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001729/0.8264, allocations: 30.72 kB / 1.207 GB, free: 8.398 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.8265, allocations: 23.98 kB / 1.207 GB, free: 8.375 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000993/0.8275, allocations: 1.321 MB / 1.208 GB, free: 6.922 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.8277, allocations: 15.84 kB / 1.208 GB, free: 6.906 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.8277, allocations: 8.156 kB / 1.208 GB, free: 6.898 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001271/0.8278, allocations: 153.7 kB / 1.209 GB, free: 6.738 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.704e-05/0.8279, allocations: 23.73 kB / 1.209 GB, free: 6.715 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.371e-05/0.8279, allocations: 21.34 kB / 1.209 GB, free: 6.695 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.8279, allocations: 1.406 kB / 1.209 GB, free: 6.695 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.8279, allocations: 0 / 1.209 GB, free: 6.695 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.8279, allocations: 1.438 kB / 1.209 GB, free: 6.695 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004605/0.8284, allocations: 451.2 kB / 1.209 GB, free: 6.195 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.654e-06/0.8284, allocations: 1.828 kB / 1.209 GB, free: 6.195 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.562e-05/0.8285, allocations: 4 kB / 1.209 GB, free: 6.191 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.56e-05/0.8285, allocations: 24.84 kB / 1.209 GB, free: 6.164 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.575e-06/0.8286, allocations: 0 / 1.209 GB, free: 6.164 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008263/0.8294, allocations: 1.313 MB / 1.21 GB, free: 4.723 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.8294, allocations: 0 / 1.21 GB, free: 4.723 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002198/0.8296, allocations: 222.2 kB / 1.211 GB, free: 4.488 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 6.861e-05/0.8297, allocations: 90.45 kB / 1.211 GB, free: 4.383 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.945e-05/0.8297, allocations: 8 kB / 1.211 GB, free: 4.375 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.8298, allocations: 7.844 kB / 1.211 GB, free: 4.367 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.017e-05/0.8299, allocations: 10.67 kB / 1.211 GB, free: 4.359 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.882e-06/0.8299, allocations: 4.844 kB / 1.211 GB, free: 4.355 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001181/0.83, allocations: 144.9 kB / 1.211 GB, free: 4.215 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.41e-07/0.83, allocations: 0 / 1.211 GB, free: 4.215 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003006/0.8303, allocations: 51.84 kB / 1.211 GB, free: 4.164 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (6): * Single equations (assignments): 5 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001044/0.8304, allocations: 99.78 kB / 1.211 GB, free: 4.059 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003267/0.8308, allocations: 211 kB / 1.211 GB, free: 3.84 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.8308, allocations: 1.312 kB / 1.211 GB, free: 3.84 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.000135/0.8309, allocations: 151.2 kB / 1.211 GB, free: 3.68 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.8313, allocations: 23.98 kB / 1.211 GB, free: 3.656 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005924/0.8319, allocations: 432.2 kB / 1.212 GB, free: 3.207 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.8322, allocations: 0.7478 MB / 1.212 GB, free: 2.434 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0001097/0.8323, allocations: 30.47 kB / 1.212 GB, free: 2.41 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.936e-05/0.8323, allocations: 15.44 kB / 1.212 GB, free: 2.395 MB / 0.7761 GB Notification: Performance of SimCode: time 2.1e-07/0.8323, allocations: 0 / 1.212 GB, free: 2.395 MB / 0.7761 GB Notification: Performance of Templates: time 0.004206/0.8365, allocations: 1.657 MB / 1.214 GB, free: 0.8164 MB / 0.7761 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)