Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DCLines,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines",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.505/2.505, allocations: 393.5 MB / 408.4 MB, free: 10.97 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.001406/0.001405, allocations: 176 kB / 0.4901 GB, free: 2.238 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.581/1.581, allocations: 223.1 MB / 0.7992 GB, free: 14.71 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.0009567/0.0009569, allocations: 91.19 kB / 0.9396 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000405/0.000405, allocations: 7.531 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3689/0.3693, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.977/1.346, allocations: 202.1 MB / 1.427 GB, free: 192.6 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/1.347, allocations: 96.31 kB / 1.427 GB, free: 192.6 MB / 0.9167 GB [/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.5013/1.848, allocations: 219.8 MB / 1.641 GB, free: 15.54 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.535e-06/1.848, allocations: 0 / 1.641 GB, free: 15.54 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0004601/1.849, allocations: 83.92 kB / 1.642 GB, free: 15.46 MB / 0.9323 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.01234/1.861, allocations: 3.94 MB / 1.645 GB, free: 11.41 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/1.861, allocations: 8.562 kB / 1.645 GB, free: 11.4 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001586/1.863, allocations: 358.1 kB / 1.646 GB, free: 11.04 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01735/1.88, allocations: 3.229 MB / 1.649 GB, free: 7.805 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008495/1.888, allocations: 2.308 MB / 1.651 GB, free: 5.426 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002924/1.889, allocations: 180.7 kB / 1.651 GB, free: 5.246 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001667/1.89, allocations: 239.9 kB / 1.652 GB, free: 5.016 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01474/1.905, allocations: 4.688 MB / 1.656 GB, free: 188 kB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-05/1.905, allocations: 3.938 kB / 1.656 GB, free: 184 kB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000999/1.906, allocations: 104 kB / 1.656 GB, free: 80 kB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000223/1.907, allocations: 148.8 kB / 1.656 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01463/1.921, allocations: 5.21 MB / 1.661 GB, free: 10.7 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03047/1.952, allocations: 14.38 MB / 1.675 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0122/1.964, allocations: 3.776 MB / 1.679 GB, free: 7.371 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002448/1.964, allocations: 25.28 kB / 1.679 GB, free: 7.348 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005044/1.969, allocations: 1.822 MB / 1.681 GB, free: 5.461 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=163): time 6.242e-06/1.969, allocations: 0 / 1.681 GB, free: 5.461 MB / 0.9636 GB Notification: Performance of matching and sorting (n=250): time 0.1658/2.135, allocations: 33.52 MB / 1.714 GB, free: 3.707 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004133/2.136, allocations: 0.8944 MB / 1.715 GB, free: 2.602 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004565/2.14, allocations: 1.981 MB / 1.717 GB, free: 0.6133 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007234/2.141, allocations: 81.69 kB / 1.717 GB, free: 0.5273 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001849/2.143, allocations: 1.438 MB / 1.718 GB, free: 15.07 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.001439/2.144, allocations: 0.8124 MB / 1.719 GB, free: 14.25 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000422/2.145, allocations: 48 kB / 1.719 GB, free: 14.2 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0002421/2.145, allocations: 394.7 kB / 1.719 GB, free: 13.81 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005222/2.15, allocations: 1.929 MB / 1.721 GB, free: 11.88 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00558/2.156, allocations: 2.316 MB / 1.723 GB, free: 9.426 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00547/2.161, allocations: 2.144 MB / 1.725 GB, free: 7.23 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.758e-05/2.161, allocations: 3.938 kB / 1.725 GB, free: 7.227 MB / 1.01 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01698/2.178, allocations: 6.126 MB / 1.731 GB, free: 1.008 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009194/2.179, allocations: 2.455 MB / 1.734 GB, free: 14.28 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.05e-05/2.179, allocations: 4 kB / 1.734 GB, free: 14.28 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006469/2.186, allocations: 1.793 MB / 1.736 GB, free: 12.48 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00327/2.189, allocations: 0.6007 MB / 1.736 GB, free: 11.88 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01477/2.204, allocations: 9.51 MB / 1.745 GB, free: 2.207 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004545/2.209, allocations: 423.5 kB / 1.746 GB, free: 1.793 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005783/2.209, allocations: 87.97 kB / 1.746 GB, free: 1.707 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/2.209, allocations: 7.938 kB / 1.746 GB, free: 1.699 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01557/2.225, allocations: 5.73 MB / 1.752 GB, free: 11.89 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.533e-05/2.225, allocations: 4 kB / 1.752 GB, free: 11.88 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0054/2.23, allocations: 1.798 MB / 1.753 GB, free: 10.07 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003578/2.234, allocations: 0.6163 MB / 1.754 GB, free: 9.457 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02242/2.256, allocations: 14.01 MB / 1.768 GB, free: 11.17 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004733/2.261, allocations: 411.4 kB / 1.768 GB, free: 10.77 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000638/2.262, allocations: 87.97 kB / 1.768 GB, free: 10.68 MB / 1.057 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 165 * 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 {10 52} Notification: Performance of prepare postOptimizeDAE: time 0.002522/2.264, allocations: 0.7963 MB / 1.769 GB, free: 9.871 MB / 1.057 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001116/2.266, allocations: 340 kB / 1.769 GB, free: 9.535 MB / 1.057 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001249/2.267, allocations: 388.1 kB / 1.77 GB, free: 9.148 MB / 1.057 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.231e-05/2.267, allocations: 24 kB / 1.77 GB, free: 9.125 MB / 1.057 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-05/2.267, allocations: 8 kB / 1.77 GB, free: 9.117 MB / 1.057 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.523e-05/2.267, allocations: 11.95 kB / 1.77 GB, free: 9.105 MB / 1.057 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006309/2.273, allocations: 3.188 MB / 1.773 GB, free: 5.867 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-05/2.273, allocations: 0 / 1.773 GB, free: 5.867 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002794/2.276, allocations: 0.5228 MB / 1.773 GB, free: 5.344 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006191/2.282, allocations: 1.696 MB / 1.775 GB, free: 3.641 MB / 1.057 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004232/2.283, allocations: 51.97 kB / 1.775 GB, free: 3.59 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02245/2.305, allocations: 14.55 MB / 1.789 GB, free: 4.77 MB / 1.073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/2.305, allocations: 0 / 1.789 GB, free: 4.77 MB / 1.073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01635/2.322, allocations: 5.752 MB / 1.795 GB, free: 14.98 MB / 1.089 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003097/2.325, allocations: 0.6727 MB / 1.795 GB, free: 14.29 MB / 1.089 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001738/2.327, allocations: 48 kB / 1.795 GB, free: 14.24 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004377/2.331, allocations: 403.6 kB / 1.796 GB, free: 13.84 MB / 1.089 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001251/2.332, allocations: 310.6 kB / 1.796 GB, free: 13.54 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003684/2.333, allocations: 80.67 kB / 1.796 GB, free: 13.46 MB / 1.089 GB Notification: Performance of sorting global known variables: time 0.003749/2.336, allocations: 1.517 MB / 1.798 GB, free: 11.95 MB / 1.089 GB Notification: Performance of sort global known variables: time 2.1e-07/2.336, allocations: 0 / 1.798 GB, free: 11.95 MB / 1.089 GB Notification: Performance of remove unused functions: time 0.007191/2.344, allocations: 1.594 MB / 1.799 GB, free: 10.35 MB / 1.089 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 116 * 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 {10 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.01659/2.36, allocations: 6.408 MB / 1.806 GB, free: 3.902 MB / 1.089 GB Notification: Performance of simCode: created initialization part: time 0.02618/2.386, allocations: 9.709 MB / 1.815 GB, free: 10.01 MB / 1.104 GB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/2.386, allocations: 4 kB / 1.815 GB, free: 10.01 MB / 1.104 GB Notification: Performance of simCode: created simulation system equations: time 0.00928/2.396, allocations: 3.492 MB / 1.818 GB, free: 6.484 MB / 1.104 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005783/2.402, allocations: 1.013 MB / 1.819 GB, free: 5.48 MB / 1.104 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06208/2.464, allocations: 29.35 MB / 1.848 GB, free: 6.637 MB / 1.135 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00296/2.467, allocations: 2.323 MB / 1.85 GB, free: 4.277 MB / 1.135 GB Notification: Performance of simCode: alias equations: time 0.00378/2.471, allocations: 0.6348 MB / 1.851 GB, free: 3.637 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002248/2.473, allocations: 1.331 MB / 1.852 GB, free: 2.305 MB / 1.135 GB Notification: Performance of SimCode: time 1.193e-06/2.473, allocations: 4 kB / 1.852 GB, free: 2.301 MB / 1.135 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7717/3.245, allocations: 99 MB / 1.949 GB, free: 270.9 MB / 1.135 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001711/3.245, allocations: 215.5 kB / 1.949 GB, free: 270.7 MB / 1.135 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.858/9.103, allocations: 0 / 1.949 GB, free: 270.7 MB / 1.135 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat does not exist to compare? outputFormat=mat