Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.351/2.351, allocations: 390.3 MB / 402.8 MB, free: 6.688 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.001185/0.001184, allocations: 180.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.717/1.717, allocations: 221.3 MB / 0.7915 GB, free: 5.402 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.001065/0.001065, allocations: 95.88 kB / 0.9317 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.814e-05/4.817e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3595, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.3/1.66, allocations: 192.8 MB / 1.407 GB, free: 11.95 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/1.66, allocations: 90.69 kB / 1.407 GB, free: 11.9 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19: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 10.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 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19: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.1223/1.782, allocations: 49.93 MB / 1.456 GB, free: 15.29 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.374e-06/1.783, allocations: 4 kB / 1.456 GB, free: 15.28 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0001165/1.783, allocations: 16 kB / 1.456 GB, free: 15.27 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.002803/1.785, allocations: 0.9043 MB / 1.457 GB, free: 14.31 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 6.441e-05/1.786, allocations: 12.03 kB / 1.457 GB, free: 14.3 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003835/1.786, allocations: 106.4 kB / 1.457 GB, free: 14.19 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003785/1.79, allocations: 0.6249 MB / 1.458 GB, free: 13.56 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001601/1.791, allocations: 0.5779 MB / 1.458 GB, free: 12.95 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.732e-05/1.791, allocations: 41.3 kB / 1.458 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001659/1.792, allocations: 55.89 kB / 1.458 GB, free: 12.85 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/1.793, allocations: 0.8657 MB / 1.459 GB, free: 11.94 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/1.793, allocations: 0 / 1.459 GB, free: 11.94 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-05/1.793, allocations: 23.98 kB / 1.459 GB, free: 11.92 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.396e-05/1.793, allocations: 41.3 kB / 1.459 GB, free: 11.88 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/1.795, allocations: 0.7352 MB / 1.46 GB, free: 11.14 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005129/1.8, allocations: 3.546 MB / 1.463 GB, free: 7.293 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008872/1.801, allocations: 395.3 kB / 1.464 GB, free: 6.895 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002956/1.801, allocations: 177.3 kB / 1.464 GB, free: 6.719 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 4.514e-05/1.801, allocations: 11.97 kB / 1.464 GB, free: 6.707 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/1.801, allocations: 38.56 kB / 1.464 GB, free: 6.66 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=31): time 2.775e-06/1.801, allocations: 0 / 1.464 GB, free: 6.66 MB / 0.9167 GB Notification: Performance of matching and sorting (n=43): time 0.004969/1.806, allocations: 1.596 MB / 1.465 GB, free: 5.035 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/1.806, allocations: 140.5 kB / 1.466 GB, free: 4.867 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007909/1.807, allocations: 0.4956 MB / 1.466 GB, free: 4.363 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 5.356e-05/1.807, allocations: 33.7 kB / 1.466 GB, free: 4.324 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002783/1.808, allocations: 360.1 kB / 1.466 GB, free: 3.965 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/1.808, allocations: 149.8 kB / 1.467 GB, free: 3.816 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.768e-05/1.808, allocations: 8 kB / 1.467 GB, free: 3.809 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.000198/1.808, allocations: 374.8 kB / 1.467 GB, free: 3.434 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000327/1.808, allocations: 181.1 kB / 1.467 GB, free: 3.258 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004057/1.809, allocations: 316.5 kB / 1.467 GB, free: 2.891 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003808/1.809, allocations: 225.5 kB / 1.468 GB, free: 2.672 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/1.809, allocations: 4 kB / 1.468 GB, free: 2.668 MB / 0.9167 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001633/1.811, allocations: 0.7834 MB / 1.468 GB, free: 1.859 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005864/1.811, allocations: 1.225 MB / 1.47 GB, free: 0.5391 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/1.811, allocations: 11.89 kB / 1.47 GB, free: 0.5273 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/1.812, allocations: 253 kB / 1.47 GB, free: 268 kB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006665/1.813, allocations: 127.8 kB / 1.47 GB, free: 140 kB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00518/1.818, allocations: 5.889 MB / 1.476 GB, free: 9.773 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007862/1.819, allocations: 63.91 kB / 1.476 GB, free: 9.711 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.087e-05/1.819, allocations: 19.98 kB / 1.476 GB, free: 9.691 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/1.819, allocations: 4 kB / 1.476 GB, free: 9.688 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001662/1.821, allocations: 0.9054 MB / 1.477 GB, free: 8.707 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/1.821, allocations: 4 kB / 1.477 GB, free: 8.703 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000647/1.822, allocations: 205.3 kB / 1.477 GB, free: 8.484 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006368/1.822, allocations: 131.8 kB / 1.477 GB, free: 8.355 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006523/1.829, allocations: 8.102 MB / 1.485 GB, free: 15.45 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008501/1.83, allocations: 64.06 kB / 1.485 GB, free: 15.39 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.224e-05/1.83, allocations: 19.98 kB / 1.485 GB, free: 15.37 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 41 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000276/1.83, allocations: 137.5 kB / 1.485 GB, free: 15.23 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/1.83, allocations: 75.09 kB / 1.485 GB, free: 15.16 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002735/1.831, allocations: 74.3 kB / 1.485 GB, free: 15.08 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/1.831, allocations: 7.984 kB / 1.485 GB, free: 15.07 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/1.831, allocations: 4 kB / 1.485 GB, free: 15.07 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/1.831, allocations: 7.938 kB / 1.485 GB, free: 15.06 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/1.832, allocations: 0.6417 MB / 1.486 GB, free: 14.37 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/1.832, allocations: 0 / 1.486 GB, free: 14.37 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005439/1.833, allocations: 99.92 kB / 1.486 GB, free: 14.27 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008679/1.833, allocations: 244.9 kB / 1.486 GB, free: 14.02 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.768e-05/1.833, allocations: 7.984 kB / 1.486 GB, free: 14.01 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00681/1.84, allocations: 8.366 MB / 1.494 GB, free: 4.844 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/1.84, allocations: 0 / 1.494 GB, free: 4.844 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/1.842, allocations: 0.7845 MB / 1.495 GB, free: 4.023 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004137/1.842, allocations: 184.2 kB / 1.495 GB, free: 3.824 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/1.842, allocations: 7.953 kB / 1.495 GB, free: 3.816 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005557/1.843, allocations: 55.95 kB / 1.495 GB, free: 3.762 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/1.843, allocations: 39.88 kB / 1.495 GB, free: 3.723 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.22e-05/1.843, allocations: 15.94 kB / 1.496 GB, free: 3.707 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0006135/1.844, allocations: 395.2 kB / 1.496 GB, free: 3.324 MB / 0.948 GB Notification: Performance of sort global known variables: time 3.61e-07/1.844, allocations: 0 / 1.496 GB, free: 3.324 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001316/1.845, allocations: 300 kB / 1.496 GB, free: 3.031 MB / 0.948 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001899/1.847, allocations: 1.345 MB / 1.497 GB, free: 1.641 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002852/1.85, allocations: 1.837 MB / 1.499 GB, free: 15.69 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/1.85, allocations: 0 / 1.499 GB, free: 15.69 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.001109/1.851, allocations: 0.937 MB / 1.5 GB, free: 14.67 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/1.852, allocations: 208.9 kB / 1.5 GB, free: 14.47 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/1.855, allocations: 1.042 MB / 1.501 GB, free: 13.39 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006407/1.855, allocations: 0.9907 MB / 1.502 GB, free: 12.37 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.0007854/1.856, allocations: 181.3 kB / 1.503 GB, free: 12.19 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003381/1.857, allocations: 231.3 kB / 1.503 GB, free: 11.96 MB / 0.9636 GB Notification: Performance of SimCode: time 9.71e-07/1.857, allocations: 0 / 1.503 GB, free: 11.96 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04191/1.898, allocations: 18.93 MB / 1.521 GB, free: 9.336 MB / 0.9792 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002523/1.899, allocations: 183.5 kB / 1.521 GB, free: 9.105 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.58/4.479, allocations: 0 / 1.521 GB, free: 9.105 MB / 0.9792 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat does not exist to compare? outputFormat=mat