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.458/2.458, allocations: 390.5 MB / 398 MB, free: 10.93 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.001066/0.001066, allocations: 186.5 kB / 491.2 MB, free: 1.559 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.771/1.771, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001009/0.001009, allocations: 93.62 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.952e-05/1.956e-05, allocations: 5.562 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3249, allocations: 143 MB / 1.212 GB, free: 39.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.099/1.424, allocations: 192.1 MB / 1.4 GB, free: 8.559 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/1.424, allocations: 94.02 kB / 1.4 GB, free: 8.508 MB / 0.823 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.1092/1.533, allocations: 49.68 MB / 1.449 GB, free: 15.52 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.603e-06/1.533, allocations: 0 / 1.449 GB, free: 15.52 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.926e-05/1.533, allocations: 16.19 kB / 1.449 GB, free: 15.5 MB / 0.8698 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.001669/1.535, allocations: 0.9066 MB / 1.449 GB, free: 14.59 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/1.535, allocations: 8.031 kB / 1.449 GB, free: 14.59 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003269/1.538, allocations: 0.6256 MB / 1.45 GB, free: 13.97 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/1.539, allocations: 0.5868 MB / 1.451 GB, free: 13.43 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/1.539, allocations: 19.94 kB / 1.451 GB, free: 13.41 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.429e-05/1.54, allocations: 35.95 kB / 1.451 GB, free: 13.38 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001088/1.541, allocations: 0.6853 MB / 1.451 GB, free: 12.96 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/1.542, allocations: 0.7952 MB / 1.452 GB, free: 12.34 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/1.542, allocations: 0 / 1.452 GB, free: 12.34 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.209e-05/1.542, allocations: 0 / 1.452 GB, free: 12.34 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.255e-05/1.542, allocations: 44.34 kB / 1.452 GB, free: 12.3 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004146/1.546, allocations: 3.42 MB / 1.456 GB, free: 9.035 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007377/1.547, allocations: 380.4 kB / 1.456 GB, free: 8.766 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002508/1.547, allocations: 170 kB / 1.456 GB, free: 8.656 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.182e-05/1.547, allocations: 7.984 kB / 1.456 GB, free: 8.648 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/1.547, allocations: 41.23 kB / 1.456 GB, free: 8.602 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=31): time 4.368e-06/1.547, allocations: 4 kB / 1.456 GB, free: 8.598 MB / 0.8698 GB Notification: Performance of matching and sorting (n=43): time 0.002502/1.55, allocations: 1.115 MB / 1.457 GB, free: 7.684 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.854e-05/1.55, allocations: 144.4 kB / 1.457 GB, free: 7.516 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004681/1.55, allocations: 383.3 kB / 1.458 GB, free: 7.223 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.03e-05/1.55, allocations: 29.7 kB / 1.458 GB, free: 7.188 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002175/1.551, allocations: 368.3 kB / 1.458 GB, free: 6.918 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/1.551, allocations: 144.8 kB / 1.458 GB, free: 6.793 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.739e-05/1.551, allocations: 0 / 1.458 GB, free: 6.793 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001517/1.551, allocations: 367.9 kB / 1.459 GB, free: 6.445 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/1.551, allocations: 177.7 kB / 1.459 GB, free: 6.34 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003211/1.552, allocations: 304.5 kB / 1.459 GB, free: 6.062 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002966/1.552, allocations: 217.5 kB / 1.459 GB, free: 5.922 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/1.552, allocations: 4 kB / 1.459 GB, free: 5.918 MB / 0.8698 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001343/1.553, allocations: 0.7221 MB / 1.46 GB, free: 5.328 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004766/1.554, allocations: 1.223 MB / 1.461 GB, free: 4.031 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/1.554, allocations: 4 kB / 1.461 GB, free: 4.027 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009106/1.555, allocations: 229.7 kB / 1.461 GB, free: 3.82 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006153/1.555, allocations: 127.7 kB / 1.462 GB, free: 3.699 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004092/1.559, allocations: 5.74 MB / 1.467 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00069/1.56, allocations: 48.02 kB / 1.467 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.228e-05/1.56, allocations: 19.69 kB / 1.467 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/1.56, allocations: 5.562 kB / 1.467 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001367/1.562, allocations: 1.029 MB / 1.468 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/1.562, allocations: 4 kB / 1.468 GB, free: 12.76 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003416/1.562, allocations: 127.9 kB / 1.468 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006401/1.563, allocations: 154 kB / 1.468 GB, free: 12.49 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004846/1.567, allocations: 7.507 MB / 1.476 GB, free: 4.605 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007359/1.568, allocations: 47.94 kB / 1.476 GB, free: 4.559 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.045e-05/1.568, allocations: 27.16 kB / 1.476 GB, free: 4.539 MB / 0.8855 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.0002367/1.568, allocations: 120.8 kB / 1.476 GB, free: 4.414 MB / 0.8855 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001259/1.57, allocations: 0.6268 MB / 1.477 GB, free: 3.898 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/1.57, allocations: 55.34 kB / 1.477 GB, free: 3.844 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002031/1.57, allocations: 73.78 kB / 1.477 GB, free: 3.805 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/1.57, allocations: 4 kB / 1.477 GB, free: 3.801 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/1.57, allocations: 4 kB / 1.477 GB, free: 3.797 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/1.57, allocations: 0 / 1.477 GB, free: 3.797 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007802/1.571, allocations: 0.5699 MB / 1.477 GB, free: 3.324 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/1.571, allocations: 0 / 1.477 GB, free: 3.324 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005146/1.571, allocations: 103.5 kB / 1.477 GB, free: 3.227 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007662/1.572, allocations: 229.1 kB / 1.478 GB, free: 3.016 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.368e-05/1.572, allocations: 7.938 kB / 1.478 GB, free: 3.012 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005847/1.578, allocations: 8.002 MB / 1.485 GB, free: 10.79 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/1.578, allocations: 0 / 1.485 GB, free: 10.79 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/1.58, allocations: 0.7342 MB / 1.486 GB, free: 10.16 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002731/1.58, allocations: 174.5 kB / 1.486 GB, free: 9.996 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.102e-05/1.58, allocations: 7.984 kB / 1.486 GB, free: 9.988 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005009/1.58, allocations: 51.86 kB / 1.486 GB, free: 9.938 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/1.581, allocations: 46.33 kB / 1.486 GB, free: 9.898 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.074e-05/1.581, allocations: 11.5 kB / 1.486 GB, free: 9.891 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003855/1.581, allocations: 303.5 kB / 1.487 GB, free: 9.668 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.51e-07/1.581, allocations: 0 / 1.487 GB, free: 9.668 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.001124/1.582, allocations: 260 kB / 1.487 GB, free: 9.414 MB / 0.9011 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.001601/1.584, allocations: 1.287 MB / 1.488 GB, free: 8.227 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.002319/1.586, allocations: 1.718 MB / 1.49 GB, free: 6.672 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/1.586, allocations: 7.875 kB / 1.49 GB, free: 6.668 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0009363/1.587, allocations: 0.8775 MB / 1.491 GB, free: 5.828 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009033/1.588, allocations: 182.1 kB / 1.491 GB, free: 5.688 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002166/1.59, allocations: 1.011 MB / 1.492 GB, free: 4.754 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006097/1.591, allocations: 0.9916 MB / 1.493 GB, free: 3.758 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0006847/1.591, allocations: 156.9 kB / 1.493 GB, free: 3.602 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002812/1.592, allocations: 236.5 kB / 1.493 GB, free: 3.543 MB / 0.9011 GB Notification: Performance of SimCode: time 1.563e-06/1.592, allocations: 0 / 1.493 GB, free: 3.543 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04355/1.635, allocations: 16.36 MB / 1.509 GB, free: 3.328 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001996/1.636, allocations: 133 kB / 1.509 GB, free: 3.141 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.682/4.318, allocations: 7.969 kB / 1.509 GB, free: 3.133 MB / 0.9167 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