Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.434/1.434, allocations: 249.5 MB / 257 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 187.4 kB / 316.3 MB, free: 3.211 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.649/1.649, allocations: 205.3 MB / 0.5671 GB, free: 15.81 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008731/0.0008729, allocations: 96.86 kB / 0.6714 GB, free: 4.914 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.449e-05/2.453e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2218, allocations: 106.3 MB / 0.8853 GB, free: 12.15 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7216/0.9435, allocations: 158.1 MB / 1.04 GB, free: 13.43 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.9438, allocations: 94.2 kB / 1.04 GB, free: 13.38 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Interfaces/Source.mo:30:9-30: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 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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.0396/0.9834, allocations: 16.01 MB / 1.055 GB, free: 220 kB / 0.6667 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9834, allocations: 0 / 1.055 GB, free: 220 kB / 0.6667 GB Notification: Performance of Transformations before backend: time 3.053e-05/0.9835, allocations: 8 kB / 1.055 GB, free: 212 kB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001074/0.9846, allocations: 0.5414 MB / 1.056 GB, free: 15.64 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.9846, allocations: 16.03 kB / 1.056 GB, free: 15.62 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00113/0.9858, allocations: 139.4 kB / 1.056 GB, free: 15.49 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004704/0.9862, allocations: 286.4 kB / 1.056 GB, free: 15.2 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.9863, allocations: 12 kB / 1.056 GB, free: 15.18 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.899e-05/0.9863, allocations: 16 kB / 1.056 GB, free: 15.17 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004602/0.9868, allocations: 271.5 kB / 1.057 GB, free: 15 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005847/0.9874, allocations: 404.2 kB / 1.057 GB, free: 14.66 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.9874, allocations: 4 kB / 1.057 GB, free: 14.65 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/0.9875, allocations: 0 / 1.057 GB, free: 14.65 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.169e-05/0.9875, allocations: 31.98 kB / 1.057 GB, free: 14.62 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002315/0.9898, allocations: 2.117 MB / 1.059 GB, free: 12.48 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003866/0.9902, allocations: 234.7 kB / 1.059 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/0.9905, allocations: 107.6 kB / 1.06 GB, free: 12.18 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.284e-05/0.9905, allocations: 8 kB / 1.06 GB, free: 12.18 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.254e-05/0.9906, allocations: 34.56 kB / 1.06 GB, free: 12.13 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=14): time 1.743e-06/0.9906, allocations: 0 / 1.06 GB, free: 12.13 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14): time 0.0004008/0.991, allocations: 156 kB / 1.06 GB, free: 12 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.991, allocations: 51.41 kB / 1.06 GB, free: 11.94 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.9913, allocations: 186.9 kB / 1.06 GB, free: 11.77 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.9913, allocations: 25.7 kB / 1.06 GB, free: 11.74 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.9915, allocations: 213.7 kB / 1.06 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.17e-05/0.9915, allocations: 46.17 kB / 1.06 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-06/0.9915, allocations: 0 / 1.06 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.9917, allocations: 329.2 kB / 1.061 GB, free: 11.19 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.973e-05/0.9918, allocations: 60.33 kB / 1.061 GB, free: 11.15 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/0.9919, allocations: 134.6 kB / 1.061 GB, free: 11 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001631/0.9921, allocations: 79.17 kB / 1.061 GB, free: 10.95 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.9921, allocations: 4 kB / 1.061 GB, free: 10.95 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003799/0.9925, allocations: 228.1 kB / 1.061 GB, free: 10.75 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.9926, allocations: 12.06 kB / 1.061 GB, free: 10.74 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.9926, allocations: 8.062 kB / 1.061 GB, free: 10.73 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001599/0.9927, allocations: 24.09 kB / 1.061 GB, free: 10.71 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001923/0.9929, allocations: 50.67 kB / 1.061 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.994, allocations: 1.27 MB / 1.062 GB, free: 9.32 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.9942, allocations: 15.78 kB / 1.062 GB, free: 9.305 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/0.9943, allocations: 15.06 kB / 1.062 GB, free: 9.293 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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.0001041/0.9944, allocations: 109 kB / 1.062 GB, free: 9.18 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002616/0.9946, allocations: 156.2 kB / 1.063 GB, free: 9.043 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.797e-05/0.9947, allocations: 15.81 kB / 1.063 GB, free: 9.027 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.713e-05/0.9948, allocations: 27.27 kB / 1.063 GB, free: 9.012 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.9948, allocations: 4 kB / 1.063 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.9948, allocations: 3.953 kB / 1.063 GB, free: 9.004 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.9948, allocations: 0 / 1.063 GB, free: 9.004 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008864/0.9957, allocations: 0.6465 MB / 1.063 GB, free: 8.363 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.9957, allocations: 0 / 1.063 GB, free: 8.363 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.012e-05/0.9958, allocations: 20 kB / 1.063 GB, free: 8.344 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.881e-05/0.9959, allocations: 28.16 kB / 1.063 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.9959, allocations: 0 / 1.063 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009414/0.9969, allocations: 1.271 MB / 1.065 GB, free: 6.98 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.9969, allocations: 0 / 1.065 GB, free: 6.98 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003629/0.9972, allocations: 366.9 kB / 1.065 GB, free: 6.586 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.9974, allocations: 108.6 kB / 1.065 GB, free: 6.465 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.6e-05/0.9974, allocations: 0 / 1.065 GB, free: 6.465 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.9976, allocations: 19.89 kB / 1.065 GB, free: 6.445 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.2e-05/0.9976, allocations: 23.25 kB / 1.065 GB, free: 6.426 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.9976, allocations: 4 kB / 1.065 GB, free: 6.422 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001259/0.9978, allocations: 151.4 kB / 1.065 GB, free: 6.301 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.683e-06/0.9978, allocations: 0 / 1.065 GB, free: 6.301 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004342/0.9982, allocations: 75.81 kB / 1.065 GB, free: 6.227 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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.0008241/0.999, allocations: 1.307 MB / 1.067 GB, free: 4.887 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004291/0.9995, allocations: 255.2 kB / 1.067 GB, free: 4.664 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.9995, allocations: 0 / 1.067 GB, free: 4.664 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002044/0.9997, allocations: 162.9 kB / 1.067 GB, free: 4.512 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/1, allocations: 51.08 kB / 1.067 GB, free: 4.473 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009578/1.001, allocations: 442.7 kB / 1.067 GB, free: 4.027 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/1.002, allocations: 0.8051 MB / 1.068 GB, free: 3.199 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.000168/1.002, allocations: 42.03 kB / 1.068 GB, free: 3.156 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/1.002, allocations: 75.86 kB / 1.068 GB, free: 3.133 MB / 0.6823 GB Notification: Performance of SimCode: time 6.51e-07/1.002, allocations: 0 / 1.068 GB, free: 3.133 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02283/1.025, allocations: 4.02 MB / 1.072 GB, free: 15.16 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001863/1.025, allocations: 154.8 kB / 1.072 GB, free: 14.95 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.61/2.635, allocations: 0 / 1.072 GB, free: 14.95 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)