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.464/1.464, allocations: 251.9 MB / 266.9 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001788/0.001788, allocations: 189.9 kB / 326.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.047/2.047, allocations: 205.4 MB / 0.5775 GB, free: 20.57 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.0009287/0.0009285, allocations: 89.17 kB / 0.6821 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003213/0.0003213, allocations: 10.72 kB / 0.7963 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2008, allocations: 106.3 MB / 0.9002 GB, free: 64.23 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1867/0.3875, allocations: 157.9 MB / 1.054 GB, free: 2.117 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002721/0.3878, allocations: 95.95 kB / 1.054 GB, free: 2.023 MB / 0.698 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.4578/0.8456, allocations: 16.19 MB / 1.07 GB, free: 154 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.796e-06/0.8456, allocations: 0.8125 kB / 1.07 GB, free: 154 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.92e-05/0.8456, allocations: 7.609 kB / 1.07 GB, free: 154 MB / 0.698 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.001266/0.8469, allocations: 0.5867 MB / 1.071 GB, free: 153.6 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/0.847, allocations: 8.969 kB / 1.071 GB, free: 153.6 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001339/0.8471, allocations: 74.17 kB / 1.071 GB, free: 153.5 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001144/0.8483, allocations: 139.6 kB / 1.071 GB, free: 153.5 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005045/0.8488, allocations: 291 kB / 1.071 GB, free: 153.3 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.231e-05/0.8488, allocations: 25.19 kB / 1.071 GB, free: 153.3 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.717e-05/0.8489, allocations: 27.86 kB / 1.071 GB, free: 153.3 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007427/0.8497, allocations: 449.2 kB / 1.072 GB, free: 153.2 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.8497, allocations: 5.094 kB / 1.072 GB, free: 153.2 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.173e-05/0.8497, allocations: 17.03 kB / 1.072 GB, free: 153.2 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.707e-05/0.8498, allocations: 22.52 kB / 1.072 GB, free: 153.2 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005466/0.8503, allocations: 320.3 kB / 1.072 GB, free: 153.1 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002154/0.8525, allocations: 2.187 MB / 1.074 GB, free: 151.3 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.8529, allocations: 248.8 kB / 1.075 GB, free: 151.1 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.271e-05/0.8529, allocations: 5.188 kB / 1.075 GB, free: 151.1 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/0.853, allocations: 36.44 kB / 1.075 GB, free: 151.1 MB / 0.698 GB Notification: Performance of pre-optimization done (n=14): time 1.854e-06/0.853, allocations: 0 / 1.075 GB, free: 151.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=14): time 0.0006457/0.8536, allocations: 304.7 kB / 1.075 GB, free: 150.9 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.8537, allocations: 52.47 kB / 1.075 GB, free: 150.8 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.854, allocations: 241.3 kB / 1.075 GB, free: 150.7 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.854, allocations: 34.77 kB / 1.075 GB, free: 150.7 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.8541, allocations: 208.4 kB / 1.075 GB, free: 150.5 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.61e-05/0.8542, allocations: 50.38 kB / 1.075 GB, free: 150.5 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.859e-06/0.8542, allocations: 4.656 kB / 1.075 GB, free: 150.5 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.437e-05/0.8543, allocations: 339.7 kB / 1.076 GB, free: 150.2 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.8544, allocations: 56.31 kB / 1.076 GB, free: 150.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.8545, allocations: 142.3 kB / 1.076 GB, free: 150 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001439/0.8547, allocations: 83.72 kB / 1.076 GB, free: 150 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.8547, allocations: 0.9688 kB / 1.076 GB, free: 150 MB / 0.698 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004453/0.8551, allocations: 273.5 kB / 1.076 GB, free: 149.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.8552, allocations: 10.78 kB / 1.076 GB, free: 149.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.8552, allocations: 2.906 kB / 1.076 GB, free: 149.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001738/0.8554, allocations: 22.47 kB / 1.076 GB, free: 149.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.8556, allocations: 53.97 kB / 1.076 GB, free: 149.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007896/0.8564, allocations: 1.323 MB / 1.078 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/0.8566, allocations: 32.27 kB / 1.078 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/0.8566, allocations: 8.75 kB / 1.078 GB, free: 148.6 MB / 0.698 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 () * Number of clocked 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.0001635/0.8568, allocations: 163.6 kB / 1.078 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.196e-05/0.8569, allocations: 28.28 kB / 1.078 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.892e-05/0.8569, allocations: 30.95 kB / 1.078 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.8569, allocations: 6.188 kB / 1.078 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.8569, allocations: 1.125 kB / 1.078 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.857, allocations: 0 / 1.078 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008248/0.8578, allocations: 0.6373 MB / 1.079 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.8578, allocations: 5.266 kB / 1.079 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.8579, allocations: 21.73 kB / 1.079 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.806e-05/0.858, allocations: 23.53 kB / 1.079 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.8581, allocations: 6.5 kB / 1.079 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007276/0.8588, allocations: 1.317 MB / 1.08 GB, free: 146.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.8588, allocations: 1.469 kB / 1.08 GB, free: 146.6 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003322/0.8592, allocations: 352.9 kB / 1.08 GB, free: 146.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.8593, allocations: 120.8 kB / 1.08 GB, free: 146.3 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3e-05/0.8593, allocations: 5.453 kB / 1.08 GB, free: 146.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.8595, allocations: 19.41 kB / 1.08 GB, free: 146.2 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.261e-05/0.8595, allocations: 13.42 kB / 1.08 GB, free: 146.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.8595, allocations: 8.562 kB / 1.08 GB, free: 146.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001955/0.8597, allocations: 188.1 kB / 1.081 GB, free: 146.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8598, allocations: 0 / 1.081 GB, free: 146.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004669/0.8602, allocations: 80.16 kB / 1.081 GB, free: 146.1 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (13): * Single equations (assignments): 12 * 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.0005995/0.8608, allocations: 1.161 MB / 1.082 GB, free: 145.1 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005504/0.8614, allocations: 279.1 kB / 1.082 GB, free: 144.9 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.8614, allocations: 0 / 1.082 GB, free: 144.9 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002228/0.8616, allocations: 179.2 kB / 1.082 GB, free: 144.8 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004387/0.8621, allocations: 61.97 kB / 1.082 GB, free: 144.8 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002656/0.8648, allocations: 3.175 MB / 1.085 GB, free: 142.2 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.8651, allocations: 0.7937 MB / 1.086 GB, free: 141.5 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002105/0.8653, allocations: 46.84 kB / 1.086 GB, free: 141.4 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.8654, allocations: 82.61 kB / 1.086 GB, free: 141.4 MB / 0.698 GB Notification: Performance of SimCode: time 7.51e-07/0.8655, allocations: 4 kB / 1.086 GB, free: 141.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01884/0.8843, allocations: 4.857 MB / 1.091 GB, free: 139.2 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/0.8845, allocations: 210.9 kB / 1.091 GB, free: 138.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/2.667, allocations: 0.5 kB / 1.091 GB, free: 138.9 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)