Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource") translateModel(Buildings.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.626/1.626, allocations: 297.8 MB / 313.7 MB, free: 136 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.0009029/0.000903, allocations: 178.9 kB / 384.6 MB, free: 10.84 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.336/1.336, allocations: 223.2 MB / 0.6626 GB, free: 4.262 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.0008074/0.0008073, allocations: 97.39 kB / 0.7808 GB, free: 50.29 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003756/0.0003756, allocations: 16 kB / 0.9088 GB, free: 2.844 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6373/0.6377, allocations: 120.3 MB / 1.026 GB, free: 55.91 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1946/0.8323, allocations: 168.8 MB / 1.191 GB, free: 9.016 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.8326, allocations: 95.94 kB / 1.191 GB, free: 8.922 MB / 0.7605 GB [/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/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/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.03001/0.8627, allocations: 13.23 MB / 1.204 GB, free: 11.83 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.224e-06/0.8627, allocations: 0 / 1.204 GB, free: 11.83 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 2.28e-05/0.8627, allocations: 4 kB / 1.204 GB, free: 11.82 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007568/0.8635, allocations: 0.5074 MB / 1.205 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.8635, allocations: 8.031 kB / 1.205 GB, free: 11.26 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006303/0.8642, allocations: 90.59 kB / 1.205 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003317/0.8645, allocations: 255.3 kB / 1.205 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.8646, allocations: 13.66 kB / 1.205 GB, free: 10.87 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.467e-05/0.8646, allocations: 20.38 kB / 1.205 GB, free: 10.85 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004795/0.8651, allocations: 312.8 kB / 1.205 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.8651, allocations: 8.188 kB / 1.205 GB, free: 10.52 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.8651, allocations: 7.938 kB / 1.205 GB, free: 10.51 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.955e-05/0.8652, allocations: 16.44 kB / 1.205 GB, free: 10.5 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003514/0.8655, allocations: 209.6 kB / 1.205 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.867, allocations: 1.488 MB / 1.207 GB, free: 8.637 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003871/0.8674, allocations: 207.6 kB / 1.207 GB, free: 8.406 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.282e-05/0.8675, allocations: 50.48 kB / 1.207 GB, free: 8.359 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.292e-05/0.8675, allocations: 4 kB / 1.207 GB, free: 8.355 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.8675, allocations: 34.56 kB / 1.207 GB, free: 8.312 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=8): time 1.263e-06/0.8675, allocations: 4 kB / 1.207 GB, free: 8.309 MB / 0.7761 GB Notification: Performance of matching and sorting (n=8): time 0.0005556/0.8681, allocations: 262 kB / 1.207 GB, free: 8.027 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/0.8681, allocations: 51.41 kB / 1.208 GB, free: 7.965 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001822/0.8683, allocations: 208.4 kB / 1.208 GB, free: 7.746 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.8684, allocations: 29.7 kB / 1.208 GB, free: 7.711 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.777e-05/0.8685, allocations: 175.6 kB / 1.208 GB, free: 7.535 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.016e-05/0.8685, allocations: 23.66 kB / 1.208 GB, free: 7.512 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-06/0.8685, allocations: 4 kB / 1.208 GB, free: 7.508 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 9.934e-05/0.8686, allocations: 330.8 kB / 1.208 GB, free: 7.176 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.956e-05/0.8687, allocations: 39.98 kB / 1.208 GB, free: 7.137 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.8688, allocations: 112.5 kB / 1.208 GB, free: 6.996 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.869, allocations: 172.5 kB / 1.209 GB, free: 6.797 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.8691, allocations: 4 kB / 1.209 GB, free: 6.793 MB / 0.7761 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003394/0.8694, allocations: 206 kB / 1.209 GB, free: 6.582 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.8694, allocations: 9.25 kB / 1.209 GB, free: 6.574 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.8694, allocations: 7.938 kB / 1.209 GB, free: 6.566 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001552/0.8696, allocations: 25.12 kB / 1.209 GB, free: 6.539 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.8697, allocations: 35.92 kB / 1.209 GB, free: 6.504 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009132/0.8707, allocations: 1.318 MB / 1.21 GB, free: 5.055 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.8708, allocations: 19.81 kB / 1.21 GB, free: 5.035 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.8708, allocations: 13.5 kB / 1.21 GB, free: 5.023 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 (18): * Single equations (assignments): 17 * 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.0001256/0.871, allocations: 141.8 kB / 1.21 GB, free: 4.875 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.123e-05/0.871, allocations: 19.75 kB / 1.21 GB, free: 4.855 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.149e-05/0.871, allocations: 21.5 kB / 1.21 GB, free: 4.84 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.8711, allocations: 7.938 kB / 1.21 GB, free: 4.832 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.8711, allocations: 3.984 kB / 1.21 GB, free: 4.828 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.8711, allocations: 0 / 1.21 GB, free: 4.828 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005606/0.8716, allocations: 477.9 kB / 1.211 GB, free: 4.305 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.8717, allocations: 3.984 kB / 1.211 GB, free: 4.301 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.841e-05/0.8717, allocations: 19.94 kB / 1.211 GB, free: 4.281 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-05/0.8718, allocations: 16.84 kB / 1.211 GB, free: 4.262 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.8718, allocations: 4 kB / 1.211 GB, free: 4.258 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009738/0.8728, allocations: 1.314 MB / 1.212 GB, free: 2.812 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.8728, allocations: 3.938 kB / 1.212 GB, free: 2.809 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000292/0.8731, allocations: 228.3 kB / 1.212 GB, free: 2.566 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.813e-05/0.8732, allocations: 100.8 kB / 1.212 GB, free: 2.449 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.8733, allocations: 4.594 kB / 1.212 GB, free: 2.445 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001242/0.8734, allocations: 11.98 kB / 1.212 GB, free: 2.434 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.972e-05/0.8734, allocations: 11.98 kB / 1.212 GB, free: 2.422 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/0.8735, allocations: 1.938 kB / 1.212 GB, free: 2.422 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001327/0.8736, allocations: 144.2 kB / 1.213 GB, free: 2.281 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6.082e-06/0.8736, allocations: 0 / 1.213 GB, free: 2.281 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003425/0.874, allocations: 63.78 kB / 1.213 GB, free: 2.219 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 (7): * Single equations (assignments): 6 * 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.0001463/0.8741, allocations: 98.03 kB / 1.213 GB, free: 2.113 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0004481/0.8746, allocations: 231.5 kB / 1.213 GB, free: 1.875 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.8746, allocations: 4.062 kB / 1.213 GB, free: 1.871 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001962/0.8748, allocations: 162.6 kB / 1.213 GB, free: 1.699 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.8752, allocations: 36.14 kB / 1.213 GB, free: 1.668 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007342/0.8759, allocations: 472.2 kB / 1.214 GB, free: 1.188 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.8762, allocations: 0.7596 MB / 1.214 GB, free: 412 kB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0001217/0.8764, allocations: 22.47 kB / 1.214 GB, free: 392 kB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.966e-05/0.8764, allocations: 19.44 kB / 1.214 GB, free: 372 kB / 0.7761 GB Notification: Performance of SimCode: time 2.3e-07/0.8764, allocations: 0 / 1.214 GB, free: 372 kB / 0.7761 GB Notification: Performance of Templates: time 0.004791/0.8812, allocations: 1.765 MB / 1.216 GB, free: 14.67 MB / 0.7917 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)