Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.38/2.38, allocations: 390.3 MB / 405.3 MB, free: 13.51 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.001164/0.001164, allocations: 181 kB / 498.1 MB, free: 5.746 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.688/1.688, allocations: 223.2 MB / 0.7948 GB, free: 17.89 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.00122/0.00122, allocations: 93.06 kB / 0.9346 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003709/0.0003709, allocations: 7.531 kB / 1.084 GB, free: 221.6 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3442, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2277/0.572, allocations: 177.7 MB / 1.396 GB, free: 264 kB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003196/0.5723, allocations: 95.94 kB / 1.397 GB, free: 168 kB / 0.8855 GB [/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/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.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/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);. Notification: Performance of FrontEnd - DAE generated: time 0.05854/0.6309, allocations: 25.89 MB / 1.422 GB, free: 5.895 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.645e-06/0.6309, allocations: 0 / 1.422 GB, free: 5.895 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.12e-05/0.6309, allocations: 11.94 kB / 1.422 GB, free: 5.883 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001132/0.6321, allocations: 0.636 MB / 1.422 GB, free: 5.195 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.6321, allocations: 8.031 kB / 1.422 GB, free: 5.188 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008419/0.633, allocations: 119.3 kB / 1.423 GB, free: 5.07 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006316/0.6336, allocations: 330 kB / 1.423 GB, free: 4.711 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.113e-05/0.6337, allocations: 54.7 kB / 1.423 GB, free: 4.652 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.244e-05/0.6338, allocations: 32 kB / 1.423 GB, free: 4.621 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008541/0.6346, allocations: 0.4968 MB / 1.423 GB, free: 4.102 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.6347, allocations: 0 / 1.423 GB, free: 4.102 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.557e-05/0.6347, allocations: 16 kB / 1.423 GB, free: 4.086 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-05/0.6348, allocations: 28.94 kB / 1.423 GB, free: 4.059 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006923/0.6355, allocations: 395.6 kB / 1.424 GB, free: 3.672 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002698/0.6382, allocations: 2.208 MB / 1.426 GB, free: 1.23 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008296/0.639, allocations: 274.6 kB / 1.426 GB, free: 0.9531 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 3.601e-05/0.6391, allocations: 11.98 kB / 1.426 GB, free: 0.9414 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/0.6391, allocations: 30.56 kB / 1.426 GB, free: 0.9023 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=19): time 2.675e-06/0.6391, allocations: 8 kB / 1.426 GB, free: 0.8945 MB / 0.9167 GB Notification: Performance of matching and sorting (n=19): time 0.001669/0.6408, allocations: 0.5887 MB / 1.427 GB, free: 264 kB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.6409, allocations: 51.41 kB / 1.427 GB, free: 200 kB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.6806/1.321, allocations: 200.7 kB / 1.427 GB, free: 187.6 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 9.028e-05/1.322, allocations: 30.67 kB / 1.427 GB, free: 187.6 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001944/1.322, allocations: 214.6 kB / 1.427 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 8.251e-05/1.322, allocations: 63.41 kB / 1.427 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.61e-05/1.322, allocations: 5.031 kB / 1.427 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 9.195e-05/1.322, allocations: 331.1 kB / 1.428 GB, free: 187.2 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/1.322, allocations: 98.81 kB / 1.428 GB, free: 187.2 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002707/1.323, allocations: 181.9 kB / 1.428 GB, free: 187.1 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002616/1.323, allocations: 127.2 kB / 1.428 GB, free: 187.1 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/1.323, allocations: 0.875 kB / 1.428 GB, free: 187.1 MB / 0.9167 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000869/1.324, allocations: 395 kB / 1.429 GB, free: 187 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.000191/1.324, allocations: 0.877 MB / 1.429 GB, free: 186.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/1.324, allocations: 2.75 kB / 1.429 GB, free: 186.1 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004867/1.324, allocations: 106 kB / 1.429 GB, free: 186.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002345/1.325, allocations: 56.08 kB / 1.43 GB, free: 186.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002199/1.327, allocations: 2.061 MB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002938/1.327, allocations: 37.77 kB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.631e-05/1.327, allocations: 9.203 kB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/1.327, allocations: 3.906 kB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000803/1.328, allocations: 325.6 kB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/1.328, allocations: 2.594 kB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003022/1.328, allocations: 80.55 kB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002639/1.329, allocations: 63.81 kB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001782/1.33, allocations: 1.521 MB / 1.434 GB, free: 183 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002343/1.331, allocations: 32.69 kB / 1.434 GB, free: 183 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/1.331, allocations: 10.5 kB / 1.434 GB, free: 183 MB / 0.9167 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 (27): * Single equations (assignments): 25 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000244/1.331, allocations: 248.5 kB / 1.434 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.453e-05/1.331, allocations: 26.73 kB / 1.434 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.862e-05/1.331, allocations: 28.59 kB / 1.434 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/1.331, allocations: 2.406 kB / 1.434 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/1.331, allocations: 0 / 1.434 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/1.331, allocations: 2.203 kB / 1.434 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004466/1.332, allocations: 386.9 kB / 1.434 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/1.332, allocations: 1.125 kB / 1.434 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/1.332, allocations: 29.77 kB / 1.434 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003701/1.332, allocations: 105.1 kB / 1.434 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/1.332, allocations: 3.875 kB / 1.434 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002333/1.335, allocations: 2.832 MB / 1.437 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/1.335, allocations: 0.7031 kB / 1.437 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007263/1.335, allocations: 420.2 kB / 1.438 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/1.335, allocations: 117 kB / 1.438 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.467e-05/1.335, allocations: 1.438 kB / 1.438 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/1.336, allocations: 18.47 kB / 1.438 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.156e-05/1.336, allocations: 24.62 kB / 1.438 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.467e-05/1.336, allocations: 4.484 kB / 1.438 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001422/1.336, allocations: 160.1 kB / 1.438 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.1e-07/1.336, allocations: 0 / 1.438 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0006026/1.336, allocations: 172.5 kB / 1.438 GB, free: 179.7 MB / 0.9167 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 (16): * Single equations (assignments): 14 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001134/1.337, allocations: 109.2 kB / 1.438 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001715/1.338, allocations: 0.668 MB / 1.439 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/1.338, allocations: 6.406 kB / 1.439 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0006763/1.339, allocations: 373.2 kB / 1.439 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003131/1.339, allocations: 47.59 kB / 1.439 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000918/1.34, allocations: 0.6813 MB / 1.44 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/1.341, allocations: 0.8193 MB / 1.441 GB, free: 178.1 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002151/1.341, allocations: 61.31 kB / 1.441 GB, free: 178.1 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.722e-05/1.341, allocations: 16.5 kB / 1.441 GB, free: 178.1 MB / 0.9167 GB Notification: Performance of SimCode: time 3.01e-07/1.341, allocations: 2.625 kB / 1.441 GB, free: 178.1 MB / 0.9167 GB Notification: Performance of Templates: time 0.008793/1.35, allocations: 3.978 MB / 1.445 GB, free: 177.9 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)