Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.DCLinesLinearized,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",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.148/2.148, allocations: 387.4 MB / 394.9 MB, free: 13.32 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.0009938/0.0009937, allocations: 176.8 kB / 487.4 MB, free: 4.992 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.419/1.419, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 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.0009849/0.0009849, allocations: 91.53 kB / 0.9219 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.589e-05/1.584e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2276, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.811/1.039, allocations: 200.7 MB / 1.402 GB, free: 7.867 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/1.039, allocations: 94.88 kB / 1.402 GB, free: 7.816 MB / 0.823 GB [/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.4936/1.532, allocations: 219.1 MB / 1.616 GB, free: 8.715 MB / 1.026 GB Notification: Performance of FrontEnd: time 3.937e-06/1.533, allocations: 7.938 kB / 1.616 GB, free: 8.707 MB / 1.026 GB Notification: Performance of Transformations before backend: time 0.00028/1.533, allocations: 75.92 kB / 1.616 GB, free: 8.633 MB / 1.026 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.01077/1.544, allocations: 3.691 MB / 1.62 GB, free: 4.84 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/1.544, allocations: 8.031 kB / 1.62 GB, free: 4.832 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01756/1.561, allocations: 3.214 MB / 1.623 GB, free: 1.609 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007471/1.569, allocations: 2.553 MB / 1.625 GB, free: 14.98 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003704/1.569, allocations: 386.4 kB / 1.626 GB, free: 14.54 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008175/1.57, allocations: 140 kB / 1.626 GB, free: 14.4 MB / 1.042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006244/1.576, allocations: 3.453 MB / 1.629 GB, free: 10.94 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006294/1.583, allocations: 3.599 MB / 1.633 GB, free: 7.207 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.699e-05/1.583, allocations: 3.938 kB / 1.633 GB, free: 7.203 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002964/1.583, allocations: 4 kB / 1.633 GB, free: 7.199 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001595/1.583, allocations: 144.8 kB / 1.633 GB, free: 7.055 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02168/1.605, allocations: 14.32 MB / 1.647 GB, free: 7.582 MB / 1.057 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005262/1.61, allocations: 2.613 MB / 1.649 GB, free: 4.953 MB / 1.057 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/1.612, allocations: 1.062 MB / 1.651 GB, free: 3.895 MB / 1.057 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001304/1.612, allocations: 33.25 kB / 1.651 GB, free: 3.859 MB / 1.057 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00195/1.614, allocations: 1.371 MB / 1.652 GB, free: 2.422 MB / 1.057 GB Notification: Performance of pre-optimization done (n=163): time 3.407e-06/1.614, allocations: 0 / 1.652 GB, free: 2.422 MB / 1.057 GB Notification: Performance of matching and sorting (n=250): time 0.02256/1.636, allocations: 8.497 MB / 1.66 GB, free: 9.887 MB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004885/1.637, allocations: 0.8905 MB / 1.661 GB, free: 8.789 MB / 1.073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002767/1.64, allocations: 1.568 MB / 1.663 GB, free: 7.211 MB / 1.073 GB Notification: Performance of collectPreVariables (initialization): time 0.0005387/1.64, allocations: 33.7 kB / 1.663 GB, free: 7.172 MB / 1.073 GB Notification: Performance of collectInitialEqns (initialization): time 0.001438/1.642, allocations: 1.443 MB / 1.664 GB, free: 5.715 MB / 1.073 GB Notification: Performance of collectInitialBindings (initialization): time 0.001061/1.643, allocations: 0.7928 MB / 1.665 GB, free: 4.91 MB / 1.073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002055/1.643, allocations: 0 / 1.665 GB, free: 4.91 MB / 1.073 GB Notification: Performance of setup shared object (initialization): time 0.0002089/1.643, allocations: 394.7 kB / 1.665 GB, free: 4.52 MB / 1.073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002123/1.645, allocations: 1.36 MB / 1.667 GB, free: 3.156 MB / 1.073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002492/1.648, allocations: 1.739 MB / 1.668 GB, free: 1.285 MB / 1.073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002227/1.65, allocations: 1.425 MB / 1.67 GB, free: 15.84 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.468e-06/1.65, allocations: 0 / 1.67 GB, free: 15.84 MB / 1.089 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01232/1.662, allocations: 5.089 MB / 1.675 GB, free: 10.69 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001302/1.662, allocations: 148.5 kB / 1.675 GB, free: 10.52 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/1.662, allocations: 4 kB / 1.675 GB, free: 10.51 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009445/1.672, allocations: 2.789 MB / 1.677 GB, free: 7.715 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003159/1.675, allocations: 0.5774 MB / 1.678 GB, free: 7.137 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03484/1.71, allocations: 16.4 MB / 1.694 GB, free: 6.484 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00462/1.715, allocations: 379.4 kB / 1.694 GB, free: 6.113 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004412/1.715, allocations: 91.97 kB / 1.694 GB, free: 6.023 MB / 1.104 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,48.0%) 52} * Non-linear torn systems: 1 {9 63} Notification: Performance of prepare postOptimizeDAE: time 0.0006212/1.716, allocations: 151.4 kB / 1.695 GB, free: 5.871 MB / 1.104 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01139/1.727, allocations: 4.768 MB / 1.699 GB, free: 1.086 MB / 1.104 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009918/1.728, allocations: 304.4 kB / 1.7 GB, free: 0.7852 MB / 1.104 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009257/1.729, allocations: 333.2 kB / 1.7 GB, free: 460 kB / 1.104 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.656e-05/1.729, allocations: 24 kB / 1.7 GB, free: 436 kB / 1.104 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.579e-05/1.729, allocations: 16 kB / 1.7 GB, free: 420 kB / 1.104 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.358e-05/1.729, allocations: 15.91 kB / 1.7 GB, free: 404 kB / 1.104 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00506/1.734, allocations: 3.273 MB / 1.703 GB, free: 13.08 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/1.734, allocations: 0 / 1.703 GB, free: 13.08 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002712/1.737, allocations: 0.4955 MB / 1.704 GB, free: 12.58 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009407/1.746, allocations: 2.758 MB / 1.706 GB, free: 9.812 MB / 1.12 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004205/1.747, allocations: 27.86 kB / 1.706 GB, free: 9.785 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03512/1.782, allocations: 16.38 MB / 1.722 GB, free: 9.156 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/1.782, allocations: 0 / 1.722 GB, free: 9.156 MB / 1.135 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01151/1.794, allocations: 4.901 MB / 1.727 GB, free: 4.234 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002331/1.796, allocations: 0.6691 MB / 1.728 GB, free: 3.543 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007867/1.797, allocations: 8 kB / 1.728 GB, free: 3.535 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003584/1.8, allocations: 383.4 kB / 1.728 GB, free: 3.16 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001206/1.802, allocations: 366.7 kB / 1.728 GB, free: 2.793 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000221/1.802, allocations: 67.97 kB / 1.729 GB, free: 2.727 MB / 1.135 GB Notification: Performance of sorting global known variables: time 0.001971/1.804, allocations: 1.165 MB / 1.73 GB, free: 1.555 MB / 1.135 GB Notification: Performance of sort global known variables: time 2.3e-07/1.804, allocations: 0 / 1.73 GB, free: 1.555 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.003591/1.807, allocations: 0.9414 MB / 1.731 GB, free: 0.6133 MB / 1.135 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {9 63} Notification: Performance of Backend phase and start with SimCode phase: time 0.01201/1.819, allocations: 5.497 MB / 1.736 GB, free: 11.08 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0179/1.837, allocations: 5.196 MB / 1.741 GB, free: 5.805 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/1.837, allocations: 4.75 kB / 1.741 GB, free: 5.801 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01453/1.852, allocations: 3.359 MB / 1.744 GB, free: 2.41 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004691/1.857, allocations: 0.8691 MB / 1.745 GB, free: 1.547 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6449/2.502, allocations: 5.481 MB / 1.751 GB, free: 281.2 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00277/2.504, allocations: 2.297 MB / 1.753 GB, free: 280.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003048/2.508, allocations: 488 kB / 1.753 GB, free: 280.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001978/2.509, allocations: 1.31 MB / 1.755 GB, free: 280.4 MB / 1.151 GB Notification: Performance of SimCode: time 1.082e-06/2.51, allocations: 3.844 kB / 1.755 GB, free: 280.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1626/2.672, allocations: 89.53 MB / 1.842 GB, free: 277.9 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/2.672, allocations: 137.8 kB / 1.842 GB, free: 277.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.178/7.85, allocations: 0 / 1.842 GB, free: 277.8 MB / 1.151 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat does not exist to compare? outputFormat=mat