Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.118/2.118, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.001162/0.001162, allocations: 184.8 kB / 487.4 MB, free: 5.027 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.415/1.415, allocations: 221.5 MB / 0.7824 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009265/0.0009263, allocations: 103.8 kB / 0.9219 GB, free: 2.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.08e-05/2.083e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.265, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9406/1.206, allocations: 191.3 MB / 1.393 GB, free: 13.95 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/1.206, allocations: 96.8 kB / 1.393 GB, free: 13.93 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 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/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.1093/1.315, allocations: 49.68 MB / 1.441 GB, free: 8.109 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.265e-06/1.315, allocations: 0 / 1.441 GB, free: 8.109 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.674e-05/1.315, allocations: 16 kB / 1.441 GB, free: 8.094 MB / 0.8542 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.001613/1.317, allocations: 0.9025 MB / 1.442 GB, free: 7.191 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/1.317, allocations: 12.03 kB / 1.442 GB, free: 7.18 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003486/1.32, allocations: 0.623 MB / 1.443 GB, free: 6.566 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/1.322, allocations: 0.5871 MB / 1.444 GB, free: 6.031 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/1.322, allocations: 16 kB / 1.444 GB, free: 6.016 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.806e-05/1.322, allocations: 28 kB / 1.444 GB, free: 5.988 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001095/1.323, allocations: 0.6949 MB / 1.444 GB, free: 5.559 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/1.324, allocations: 0.7947 MB / 1.445 GB, free: 4.938 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/1.324, allocations: 0 / 1.445 GB, free: 4.938 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.798e-05/1.324, allocations: 4 kB / 1.445 GB, free: 4.934 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-05/1.324, allocations: 40.03 kB / 1.445 GB, free: 4.898 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004464/1.329, allocations: 3.427 MB / 1.448 GB, free: 1.621 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000739/1.33, allocations: 375.2 kB / 1.449 GB, free: 1.359 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002265/1.33, allocations: 175.1 kB / 1.449 GB, free: 1.246 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.775e-05/1.33, allocations: 4 kB / 1.449 GB, free: 1.242 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/1.33, allocations: 34.78 kB / 1.449 GB, free: 1.203 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=31): time 2.415e-06/1.33, allocations: 8 kB / 1.449 GB, free: 1.195 MB / 0.8542 GB Notification: Performance of matching and sorting (n=43): time 0.002506/1.332, allocations: 1.115 MB / 1.45 GB, free: 284 kB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.258e-05/1.333, allocations: 140.4 kB / 1.45 GB, free: 112 kB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000449/1.333, allocations: 390.8 kB / 1.451 GB, free: 15.81 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.126e-05/1.333, allocations: 25.7 kB / 1.451 GB, free: 15.78 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002088/1.333, allocations: 365.9 kB / 1.451 GB, free: 15.51 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/1.333, allocations: 150.1 kB / 1.451 GB, free: 15.38 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.035e-05/1.333, allocations: 0 / 1.451 GB, free: 15.38 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001599/1.334, allocations: 362.7 kB / 1.451 GB, free: 15.04 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003044/1.334, allocations: 181.3 kB / 1.452 GB, free: 14.93 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003521/1.334, allocations: 296.2 kB / 1.452 GB, free: 14.66 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/1.335, allocations: 221.3 kB / 1.452 GB, free: 14.51 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/1.335, allocations: 0 / 1.452 GB, free: 14.51 MB / 0.8698 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001441/1.336, allocations: 0.7277 MB / 1.453 GB, free: 13.92 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004535/1.336, allocations: 1.22 MB / 1.454 GB, free: 12.62 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/1.336, allocations: 4 kB / 1.454 GB, free: 12.62 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00093/1.337, allocations: 233 kB / 1.454 GB, free: 12.41 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006416/1.338, allocations: 127.2 kB / 1.454 GB, free: 12.29 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00414/1.342, allocations: 5.743 MB / 1.46 GB, free: 6.449 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006585/1.343, allocations: 48.02 kB / 1.46 GB, free: 6.402 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.445e-05/1.343, allocations: 19.75 kB / 1.46 GB, free: 6.387 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/1.343, allocations: 5.719 kB / 1.46 GB, free: 6.383 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001354/1.344, allocations: 1.019 MB / 1.461 GB, free: 5.371 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/1.344, allocations: 4 kB / 1.461 GB, free: 5.367 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003316/1.345, allocations: 133.9 kB / 1.461 GB, free: 5.238 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006546/1.345, allocations: 143.8 kB / 1.461 GB, free: 5.102 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00472/1.35, allocations: 7.513 MB / 1.469 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006473/1.351, allocations: 52.06 kB / 1.469 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.482e-05/1.351, allocations: 23.81 kB / 1.469 GB, free: 13.13 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.0002143/1.351, allocations: 124.5 kB / 1.469 GB, free: 13.01 MB / 0.8855 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001345/1.352, allocations: 0.6221 MB / 1.469 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/1.353, allocations: 59.34 kB / 1.469 GB, free: 12.44 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001906/1.353, allocations: 69.66 kB / 1.47 GB, free: 12.41 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/1.353, allocations: 4 kB / 1.47 GB, free: 12.4 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/1.353, allocations: 4 kB / 1.47 GB, free: 12.4 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/1.353, allocations: 0 / 1.47 GB, free: 12.4 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007479/1.354, allocations: 0.5617 MB / 1.47 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/1.354, allocations: 0 / 1.47 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005254/1.354, allocations: 103.5 kB / 1.47 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008207/1.355, allocations: 238.5 kB / 1.47 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.156e-05/1.355, allocations: 0 / 1.47 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005828/1.361, allocations: 8.015 MB / 1.478 GB, free: 3.383 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/1.361, allocations: 3.938 kB / 1.478 GB, free: 3.379 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001395/1.362, allocations: 0.7328 MB / 1.479 GB, free: 2.758 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002866/1.363, allocations: 178.4 kB / 1.479 GB, free: 2.586 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.033e-05/1.363, allocations: 11.94 kB / 1.479 GB, free: 2.574 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005309/1.363, allocations: 39.95 kB / 1.479 GB, free: 2.535 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/1.363, allocations: 39.81 kB / 1.479 GB, free: 2.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.538e-05/1.363, allocations: 11.12 kB / 1.479 GB, free: 2.492 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003659/1.364, allocations: 308.1 kB / 1.48 GB, free: 2.266 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.9e-07/1.364, allocations: 0 / 1.48 GB, free: 2.266 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001104/1.365, allocations: 260 kB / 1.48 GB, free: 2.012 MB / 0.8855 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.001582/1.366, allocations: 1.291 MB / 1.481 GB, free: 0.8203 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002313/1.369, allocations: 1.724 MB / 1.483 GB, free: 15.26 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/1.369, allocations: 0 / 1.483 GB, free: 15.26 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0008834/1.37, allocations: 0.8894 MB / 1.484 GB, free: 14.41 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008776/1.371, allocations: 169.6 kB / 1.484 GB, free: 14.28 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/1.373, allocations: 1.011 MB / 1.485 GB, free: 13.34 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005502/1.373, allocations: 0.9902 MB / 1.486 GB, free: 12.34 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0006895/1.374, allocations: 168.8 kB / 1.486 GB, free: 12.18 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002616/1.374, allocations: 233.9 kB / 1.486 GB, free: 12.12 MB / 0.9011 GB Notification: Performance of SimCode: time 5.21e-07/1.374, allocations: 0 / 1.486 GB, free: 12.12 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03946/1.414, allocations: 16.37 MB / 1.502 GB, free: 11.91 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/1.414, allocations: 124.3 kB / 1.502 GB, free: 11.72 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.43/3.844, allocations: 0 / 1.502 GB, free: 11.72 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat does not exist to compare? outputFormat=mat