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.192/2.192, allocations: 387.1 MB / 399.7 MB, free: 9.473 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.001612/0.001612, allocations: 180 kB / 492.3 MB, free: 0.6211 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.538/1.538, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.000928/0.0009279, allocations: 93.61 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.974e-05/3.978e-05, allocations: 3.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2858, allocations: 142.3 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9388/1.225, allocations: 201.4 MB / 1.409 GB, free: 15.42 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/1.225, allocations: 88.08 kB / 1.409 GB, free: 15.38 MB / 0.8386 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.6092/1.834, allocations: 220.2 MB / 1.624 GB, free: 14.86 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.835e-06/1.834, allocations: 0 / 1.624 GB, free: 14.86 MB / 1.042 GB Notification: Performance of Transformations before backend: time 0.0006278/1.835, allocations: 79.92 kB / 1.624 GB, free: 14.78 MB / 1.042 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.01745/1.852, allocations: 3.688 MB / 1.628 GB, free: 10.99 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/1.852, allocations: 8.031 kB / 1.628 GB, free: 10.98 MB / 1.042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001801/1.854, allocations: 354.2 kB / 1.628 GB, free: 10.63 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01785/1.872, allocations: 3.218 MB / 1.631 GB, free: 7.402 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009147/1.881, allocations: 2.561 MB / 1.634 GB, free: 4.77 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005463/1.882, allocations: 466.4 kB / 1.634 GB, free: 4.25 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001548/1.883, allocations: 243.9 kB / 1.635 GB, free: 4.012 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01192/1.895, allocations: 3.932 MB / 1.638 GB, free: 15.94 MB / 1.057 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.577e-05/1.896, allocations: 7.984 kB / 1.638 GB, free: 15.93 MB / 1.057 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001054/1.897, allocations: 99.98 kB / 1.639 GB, free: 15.83 MB / 1.057 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000216/1.897, allocations: 144.8 kB / 1.639 GB, free: 15.69 MB / 1.057 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008075/1.905, allocations: 3.592 MB / 1.642 GB, free: 12.08 MB / 1.057 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02925/1.934, allocations: 14.85 MB / 1.657 GB, free: 12.06 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006516/1.941, allocations: 2.683 MB / 1.659 GB, free: 9.363 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001999/1.943, allocations: 1.116 MB / 1.66 GB, free: 8.246 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000197/1.943, allocations: 17.3 kB / 1.66 GB, free: 8.23 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002608/1.946, allocations: 1.432 MB / 1.662 GB, free: 6.734 MB / 1.073 GB Notification: Performance of pre-optimization done (n=163): time 6.112e-06/1.946, allocations: 0 / 1.662 GB, free: 6.734 MB / 1.073 GB Notification: Performance of matching and sorting (n=250): time 0.1228/2.069, allocations: 29.55 MB / 1.691 GB, free: 9.125 MB / 1.104 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004504/2.069, allocations: 0.8983 MB / 1.692 GB, free: 8.016 MB / 1.104 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004682/2.074, allocations: 1.951 MB / 1.693 GB, free: 6.055 MB / 1.104 GB Notification: Performance of collectPreVariables (initialization): time 0.0006562/2.074, allocations: 81.7 kB / 1.694 GB, free: 5.969 MB / 1.104 GB Notification: Performance of collectInitialEqns (initialization): time 0.001678/2.076, allocations: 1.438 MB / 1.695 GB, free: 4.516 MB / 1.104 GB Notification: Performance of collectInitialBindings (initialization): time 0.001214/2.077, allocations: 0.8202 MB / 1.696 GB, free: 3.684 MB / 1.104 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003724/2.078, allocations: 44 kB / 1.696 GB, free: 3.641 MB / 1.104 GB Notification: Performance of setup shared object (initialization): time 0.0002297/2.078, allocations: 398.7 kB / 1.696 GB, free: 3.246 MB / 1.104 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002631/2.081, allocations: 1.406 MB / 1.698 GB, free: 1.836 MB / 1.104 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002992/2.084, allocations: 1.809 MB / 1.699 GB, free: 15.89 MB / 1.12 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003106/2.087, allocations: 1.618 MB / 1.701 GB, free: 14.22 MB / 1.12 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/2.087, allocations: 0 / 1.701 GB, free: 14.22 MB / 1.12 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01461/2.101, allocations: 5.468 MB / 1.706 GB, free: 8.66 MB / 1.12 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001347/2.102, allocations: 160.5 kB / 1.706 GB, free: 8.473 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-05/2.102, allocations: 7.953 kB / 1.706 GB, free: 8.465 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01007/2.112, allocations: 2.883 MB / 1.709 GB, free: 5.57 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003232/2.115, allocations: 0.5696 MB / 1.71 GB, free: 5 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03795/2.153, allocations: 16.96 MB / 1.726 GB, free: 3.777 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004982/2.158, allocations: 435.5 kB / 1.727 GB, free: 3.352 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006776/2.159, allocations: 83.98 kB / 1.727 GB, free: 3.27 MB / 1.135 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.001126/2.16, allocations: 256.1 kB / 1.727 GB, free: 3.016 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001196/2.161, allocations: 344 kB / 1.727 GB, free: 2.676 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/2.162, allocations: 380.1 kB / 1.728 GB, free: 2.297 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.894e-05/2.162, allocations: 24 kB / 1.728 GB, free: 2.273 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.742e-05/2.162, allocations: 12.19 kB / 1.728 GB, free: 2.262 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.652e-05/2.162, allocations: 11.95 kB / 1.728 GB, free: 2.25 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00671/2.169, allocations: 3.652 MB / 1.731 GB, free: 14.54 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.394e-05/2.169, allocations: 0 / 1.731 GB, free: 14.54 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002715/2.172, allocations: 0.5072 MB / 1.732 GB, free: 14.03 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00975/2.182, allocations: 2.792 MB / 1.735 GB, free: 11.22 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006738/2.182, allocations: 55.97 kB / 1.735 GB, free: 11.17 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.8151/2.998, allocations: 16.8 MB / 1.751 GB, free: 278.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/2.998, allocations: 0 / 1.751 GB, free: 278.2 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0133/3.011, allocations: 5.125 MB / 1.756 GB, free: 278 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002793/3.014, allocations: 0.7032 MB / 1.757 GB, free: 277.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009348/3.015, allocations: 50.62 kB / 1.757 GB, free: 277.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003916/3.019, allocations: 424.7 kB / 1.757 GB, free: 277.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001602/3.02, allocations: 362.5 kB / 1.758 GB, free: 277.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002475/3.021, allocations: 67.12 kB / 1.758 GB, free: 277.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002861/3.023, allocations: 1.49 MB / 1.759 GB, free: 277.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.21e-07/3.023, allocations: 0 / 1.759 GB, free: 277.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004908/3.028, allocations: 1.066 MB / 1.76 GB, free: 277.7 MB / 1.151 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 {8 64} Notification: Performance of Backend phase and start with SimCode phase: time 0.01497/3.043, allocations: 5.765 MB / 1.766 GB, free: 276.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01865/3.062, allocations: 5.387 MB / 1.771 GB, free: 276.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.564e-05/3.062, allocations: 2.719 kB / 1.771 GB, free: 276.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01539/3.078, allocations: 3.47 MB / 1.774 GB, free: 275.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00666/3.084, allocations: 1.016 MB / 1.775 GB, free: 275.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01619/3.1, allocations: 5.708 MB / 1.781 GB, free: 274.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002822/3.103, allocations: 2.299 MB / 1.783 GB, free: 273.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003619/3.107, allocations: 0.5127 MB / 1.784 GB, free: 273.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002314/3.109, allocations: 1.324 MB / 1.785 GB, free: 273.7 MB / 1.151 GB Notification: Performance of SimCode: time 1.643e-06/3.109, allocations: 4.312 kB / 1.785 GB, free: 273.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1691/3.278, allocations: 97.35 MB / 1.88 GB, free: 270.5 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002429/3.279, allocations: 186 kB / 1.88 GB, free: 270.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.362/8.641, allocations: 10.56 kB / 1.88 GB, free: 270.2 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