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.374/2.374, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.00131/0.00131, allocations: 183.6 kB / 0.4901 GB, free: 2.25 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.633/1.633, allocations: 223.1 MB / 0.7992 GB, free: 14.74 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.0009575/0.0009577, allocations: 102.4 kB / 0.9396 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000416/0.0004161, allocations: 8.375 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3869/0.3874, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2506/0.638, allocations: 192.8 MB / 1.418 GB, free: 8.625 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.6384, allocations: 103.9 kB / 1.418 GB, free: 8.523 MB / 0.9167 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.858/1.496, allocations: 50.21 MB / 1.467 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.715e-06/1.496, allocations: 7.469 kB / 1.467 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0001111/1.497, allocations: 16.98 kB / 1.467 GB, free: 179.2 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.003582/1.5, allocations: 1.01 MB / 1.468 GB, free: 178.4 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 7.826e-05/1.5, allocations: 12.12 kB / 1.468 GB, free: 178.4 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004839/1.501, allocations: 94.05 kB / 1.468 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003794/1.505, allocations: 0.6279 MB / 1.468 GB, free: 178 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001672/1.506, allocations: 0.5945 MB / 1.469 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.124e-05/1.506, allocations: 36.52 kB / 1.469 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002036/1.507, allocations: 50.72 kB / 1.469 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00219/1.509, allocations: 1.007 MB / 1.47 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.593e-05/1.509, allocations: 3.938 kB / 1.47 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-05/1.509, allocations: 27.77 kB / 1.47 GB, free: 176.8 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.534e-05/1.509, allocations: 44.5 kB / 1.47 GB, free: 176.8 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002345/1.511, allocations: 1.009 MB / 1.471 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004483/1.516, allocations: 3.556 MB / 1.475 GB, free: 172.4 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/1.517, allocations: 0.5103 MB / 1.475 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 3.733e-05/1.517, allocations: 11.92 kB / 1.475 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/1.517, allocations: 46.56 kB / 1.475 GB, free: 171.8 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=31): time 2.395e-06/1.517, allocations: 0 / 1.475 GB, free: 171.8 MB / 0.9167 GB Notification: Performance of matching and sorting (n=43): time 0.006548/1.524, allocations: 2.282 MB / 1.477 GB, free: 169.5 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.328e-05/1.524, allocations: 136.5 kB / 1.477 GB, free: 169.3 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007291/1.525, allocations: 0.4955 MB / 1.478 GB, free: 168.8 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 5.509e-05/1.525, allocations: 41.7 kB / 1.478 GB, free: 168.8 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002084/1.525, allocations: 352.2 kB / 1.478 GB, free: 168.4 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/1.525, allocations: 149.8 kB / 1.478 GB, free: 168.3 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.973e-05/1.525, allocations: 12 kB / 1.479 GB, free: 168.3 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001222/1.525, allocations: 370.7 kB / 1.479 GB, free: 167.9 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006161/1.526, allocations: 272.9 kB / 1.479 GB, free: 167.6 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006519/1.527, allocations: 408.3 kB / 1.48 GB, free: 167.2 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006883/1.527, allocations: 314.1 kB / 1.48 GB, free: 166.9 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/1.527, allocations: 4 kB / 1.48 GB, free: 166.9 MB / 0.9167 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002161/1.529, allocations: 0.9589 MB / 1.481 GB, free: 165.9 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002756/1.53, allocations: 1.227 MB / 1.482 GB, free: 164.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/1.53, allocations: 4 kB / 1.482 GB, free: 164.6 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009532/1.531, allocations: 256.9 kB / 1.482 GB, free: 164.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00063/1.531, allocations: 123.8 kB / 1.482 GB, free: 164.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00367/1.535, allocations: 5.967 MB / 1.488 GB, free: 157.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007691/1.536, allocations: 56.02 kB / 1.488 GB, free: 157.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.098e-05/1.536, allocations: 23.98 kB / 1.488 GB, free: 157.7 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/1.536, allocations: 4 kB / 1.488 GB, free: 157.6 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002083/1.538, allocations: 1.073 MB / 1.489 GB, free: 156.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/1.538, allocations: 8 kB / 1.489 GB, free: 156.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006208/1.539, allocations: 205.3 kB / 1.489 GB, free: 156.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006314/1.539, allocations: 135.8 kB / 1.49 GB, free: 156.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004407/1.544, allocations: 8.205 MB / 1.498 GB, free: 147.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007863/1.544, allocations: 59.88 kB / 1.498 GB, free: 147.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.816e-05/1.545, allocations: 16.06 kB / 1.498 GB, free: 147.1 MB / 0.9167 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 () * Number of clocked 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.0005643/1.545, allocations: 320.9 kB / 1.498 GB, free: 146.7 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/1.545, allocations: 63.25 kB / 1.498 GB, free: 146.7 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000189/1.545, allocations: 82.36 kB / 1.498 GB, free: 146.6 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/1.546, allocations: 8 kB / 1.498 GB, free: 146.6 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.455e-05/1.546, allocations: 0 / 1.498 GB, free: 146.6 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/1.546, allocations: 0 / 1.498 GB, free: 146.6 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008906/1.546, allocations: 0.6494 MB / 1.499 GB, free: 145.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/1.546, allocations: 4 kB / 1.499 GB, free: 145.9 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000542/1.547, allocations: 95.84 kB / 1.499 GB, free: 145.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000842/1.548, allocations: 249.1 kB / 1.499 GB, free: 145.5 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.146e-05/1.548, allocations: 4 kB / 1.499 GB, free: 145.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004873/1.553, allocations: 8.49 MB / 1.507 GB, free: 136.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/1.553, allocations: 4.031 kB / 1.507 GB, free: 136.2 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0021/1.555, allocations: 0.952 MB / 1.508 GB, free: 135.2 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003997/1.555, allocations: 184.3 kB / 1.509 GB, free: 135 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001366/1.555, allocations: 8 kB / 1.509 GB, free: 135 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005716/1.556, allocations: 51.91 kB / 1.509 GB, free: 135 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/1.556, allocations: 39.94 kB / 1.509 GB, free: 134.9 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.564e-05/1.556, allocations: 15.98 kB / 1.509 GB, free: 134.9 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0005118/1.557, allocations: 399.1 kB / 1.509 GB, free: 134.5 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.1e-07/1.557, allocations: 3.938 kB / 1.509 GB, free: 134.5 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001257/1.558, allocations: 296 kB / 1.509 GB, free: 134.2 MB / 0.9167 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 () * Number of clocked 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.0023/1.56, allocations: 1.517 MB / 1.511 GB, free: 132.7 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.003319/1.564, allocations: 2.086 MB / 1.513 GB, free: 130.5 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/1.564, allocations: 0 / 1.513 GB, free: 130.5 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001206/1.565, allocations: 1.019 MB / 1.514 GB, free: 129.4 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/1.566, allocations: 206.8 kB / 1.514 GB, free: 129.2 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007929/1.574, allocations: 6.271 MB / 1.52 GB, free: 122.8 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004873/1.575, allocations: 0.9976 MB / 1.521 GB, free: 121.8 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0007988/1.575, allocations: 153.4 kB / 1.521 GB, free: 121.6 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003505/1.576, allocations: 235.4 kB / 1.521 GB, free: 121.4 MB / 0.9167 GB Notification: Performance of SimCode: time 2.154e-06/1.576, allocations: 0 / 1.521 GB, free: 121.4 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03662/1.612, allocations: 18.37 MB / 1.539 GB, free: 103.3 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001431/1.613, allocations: 207.2 kB / 1.54 GB, free: 103.1 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.499/4.112, allocations: 7.875 kB / 1.54 GB, free: 103.1 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