Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.DCLinesLinearized,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.33/2.33, allocations: 390.3 MB / 402.8 MB, free: 6.699 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.001263/0.001263, allocations: 180.8 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.82/1.82, allocations: 221.3 MB / 0.7915 GB, free: 5.484 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.001029/0.001029, allocations: 83.92 kB / 0.9317 GB, free: 5.801 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.241e-05/3.245e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3378, allocations: 143 MB / 1.219 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.2/1.537, allocations: 202.2 MB / 1.416 GB, free: 2.879 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/1.538, allocations: 92.38 kB / 1.416 GB, free: 2.832 MB / 0.8698 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.5252/2.063, allocations: 220.2 MB / 1.631 GB, free: 9.109 MB / 1.089 GB Notification: Performance of FrontEnd: time 2.725e-06/2.063, allocations: 0 / 1.631 GB, free: 9.109 MB / 1.089 GB Notification: Performance of Transformations before backend: time 0.0003732/2.063, allocations: 79.92 kB / 1.631 GB, free: 9.031 MB / 1.089 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.01229/2.076, allocations: 3.688 MB / 1.635 GB, free: 5.242 MB / 1.089 GB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/2.076, allocations: 8.031 kB / 1.635 GB, free: 5.234 MB / 1.089 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001332/2.077, allocations: 362.1 kB / 1.635 GB, free: 4.871 MB / 1.089 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01733/2.094, allocations: 3.21 MB / 1.639 GB, free: 1.652 MB / 1.089 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008974/2.103, allocations: 2.558 MB / 1.641 GB, free: 15.02 MB / 1.104 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000487/2.104, allocations: 473.7 kB / 1.641 GB, free: 14.5 MB / 1.104 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001216/2.105, allocations: 236 kB / 1.642 GB, free: 14.27 MB / 1.104 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00814/2.113, allocations: 3.94 MB / 1.646 GB, free: 10.18 MB / 1.104 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.559e-05/2.113, allocations: 4 kB / 1.646 GB, free: 10.18 MB / 1.104 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003753/2.114, allocations: 108 kB / 1.646 GB, free: 10.07 MB / 1.104 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001899/2.114, allocations: 144.8 kB / 1.646 GB, free: 9.93 MB / 1.104 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006302/2.12, allocations: 3.596 MB / 1.649 GB, free: 6.32 MB / 1.104 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02596/2.146, allocations: 14.85 MB / 1.664 GB, free: 6.293 MB / 1.12 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00568/2.152, allocations: 2.68 MB / 1.666 GB, free: 3.602 MB / 1.12 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001744/2.154, allocations: 1.108 MB / 1.668 GB, free: 2.492 MB / 1.12 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001434/2.154, allocations: 33.28 kB / 1.668 GB, free: 2.461 MB / 1.12 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00224/2.156, allocations: 1.431 MB / 1.669 GB, free: 0.9648 MB / 1.12 GB Notification: Performance of pre-optimization done (n=163): time 3.457e-06/2.156, allocations: 4 kB / 1.669 GB, free: 0.9609 MB / 1.12 GB Notification: Performance of matching and sorting (n=250): time 0.1203/2.277, allocations: 29.55 MB / 1.698 GB, free: 3.352 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005058/2.277, allocations: 0.8983 MB / 1.699 GB, free: 2.242 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003476/2.281, allocations: 1.955 MB / 1.701 GB, free: 284 kB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0005632/2.281, allocations: 81.7 kB / 1.701 GB, free: 196 kB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.8816/3.163, allocations: 1.43 MB / 1.702 GB, free: 277.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.002363/3.165, allocations: 0.8203 MB / 1.703 GB, free: 277.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003257/3.166, allocations: 49.31 kB / 1.703 GB, free: 277.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0003529/3.166, allocations: 394.5 kB / 1.703 GB, free: 277.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003914/3.17, allocations: 1.411 MB / 1.705 GB, free: 277.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004036/3.174, allocations: 1.802 MB / 1.706 GB, free: 276.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003528/3.177, allocations: 1.617 MB / 1.708 GB, free: 276.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/3.178, allocations: 5.031 kB / 1.708 GB, free: 276.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01588/3.193, allocations: 5.473 MB / 1.713 GB, free: 276.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001418/3.194, allocations: 150.1 kB / 1.714 GB, free: 276 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.346e-05/3.194, allocations: 5.344 kB / 1.714 GB, free: 276 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01147/3.205, allocations: 2.882 MB / 1.716 GB, free: 276 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003495/3.209, allocations: 0.5739 MB / 1.717 GB, free: 276 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04529/3.254, allocations: 16.96 MB / 1.733 GB, free: 273.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006033/3.26, allocations: 427.3 kB / 1.734 GB, free: 273.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007213/3.261, allocations: 87.94 kB / 1.734 GB, free: 273.2 MB / 1.151 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.0007686/3.262, allocations: 251.7 kB / 1.734 GB, free: 273.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001151/3.263, allocations: 335.6 kB / 1.735 GB, free: 272.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001235/3.264, allocations: 383.4 kB / 1.735 GB, free: 272.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.409e-05/3.264, allocations: 25.2 kB / 1.735 GB, free: 272.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.987e-05/3.264, allocations: 12.69 kB / 1.735 GB, free: 272.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-05/3.264, allocations: 15.33 kB / 1.735 GB, free: 272.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00812/3.272, allocations: 3.639 MB / 1.738 GB, free: 272.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.321e-05/3.272, allocations: 1 kB / 1.738 GB, free: 272.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00314/3.276, allocations: 0.5022 MB / 1.739 GB, free: 272.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01232/3.288, allocations: 2.804 MB / 1.742 GB, free: 272.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008851/3.289, allocations: 51.14 kB / 1.742 GB, free: 272.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04326/3.332, allocations: 16.81 MB / 1.758 GB, free: 269.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/3.332, allocations: 3.906 kB / 1.758 GB, free: 269.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01283/3.345, allocations: 5.121 MB / 1.763 GB, free: 269.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002757/3.348, allocations: 0.7006 MB / 1.764 GB, free: 269 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001365/3.349, allocations: 51.22 kB / 1.764 GB, free: 269 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00463/3.354, allocations: 423.1 kB / 1.764 GB, free: 269 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001771/3.356, allocations: 367.2 kB / 1.765 GB, free: 269 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004487/3.356, allocations: 71.34 kB / 1.765 GB, free: 269 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.003772/3.36, allocations: 1.489 MB / 1.766 GB, free: 268.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 7.31e-07/3.36, allocations: 3.906 kB / 1.766 GB, free: 268.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.006426/3.367, allocations: 1.061 MB / 1.767 GB, free: 268.8 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.01401/3.381, allocations: 5.777 MB / 1.773 GB, free: 267.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.02028/3.401, allocations: 5.386 MB / 1.778 GB, free: 266.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-05/3.401, allocations: 7.312 kB / 1.778 GB, free: 266.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01633/3.417, allocations: 3.468 MB / 1.782 GB, free: 264.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007082/3.425, allocations: 1.012 MB / 1.783 GB, free: 264.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01931/3.444, allocations: 5.702 MB / 1.788 GB, free: 262.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003588/3.448, allocations: 2.301 MB / 1.79 GB, free: 261.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.004105/3.452, allocations: 0.5204 MB / 1.791 GB, free: 261.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002604/3.454, allocations: 1.324 MB / 1.792 GB, free: 260.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.423e-06/3.454, allocations: 3.812 kB / 1.792 GB, free: 260.6 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1904/3.645, allocations: 97.36 MB / 1.887 GB, free: 246.9 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/3.645, allocations: 199.3 kB / 1.887 GB, free: 246.6 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.078/9.723, allocations: 0 / 1.887 GB, free: 246.6 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat does not exist to compare? outputFormat=mat