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.516/2.516, allocations: 390.5 MB / 398 MB, free: 10.96 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.001708/0.001708, allocations: 176.9 kB / 491.2 MB, free: 1.621 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.542/1.542, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.0009412/0.0009412, allocations: 98.12 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.964e-05/1.967e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3286, allocations: 143 MB / 1.212 GB, free: 39.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.107/1.436, allocations: 201.5 MB / 1.409 GB, free: 15.77 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/1.436, allocations: 91.94 kB / 1.409 GB, free: 15.72 MB / 0.8386 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.5383/1.975, allocations: 219.1 MB / 1.623 GB, free: 468 kB / 1.026 GB Notification: Performance of FrontEnd: time 2.024e-06/1.975, allocations: 0 / 1.623 GB, free: 468 kB / 1.026 GB Notification: Performance of Transformations before backend: time 0.0003177/1.975, allocations: 79.92 kB / 1.623 GB, free: 388 kB / 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.01267/1.988, allocations: 3.691 MB / 1.627 GB, free: 12.59 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 7.69e-05/1.988, allocations: 8.031 kB / 1.627 GB, free: 12.58 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01871/2.006, allocations: 3.214 MB / 1.63 GB, free: 9.355 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0105/2.017, allocations: 2.554 MB / 1.633 GB, free: 6.73 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006235/2.018, allocations: 385.8 kB / 1.633 GB, free: 6.289 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001903/2.02, allocations: 143.9 kB / 1.633 GB, free: 6.148 MB / 1.042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009591/2.029, allocations: 3.45 MB / 1.636 GB, free: 2.691 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01165/2.041, allocations: 3.599 MB / 1.64 GB, free: 14.96 MB / 1.057 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001072/2.041, allocations: 3.938 kB / 1.64 GB, free: 14.95 MB / 1.057 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001431/2.042, allocations: 4 kB / 1.64 GB, free: 14.95 MB / 1.057 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002503/2.043, allocations: 144.8 kB / 1.64 GB, free: 14.8 MB / 1.057 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0309/2.074, allocations: 14.34 MB / 1.654 GB, free: 15.31 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006428/2.08, allocations: 2.61 MB / 1.657 GB, free: 12.7 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001866/2.082, allocations: 1.069 MB / 1.658 GB, free: 11.62 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002024/2.082, allocations: 21.3 kB / 1.658 GB, free: 11.6 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002558/2.085, allocations: 1.378 MB / 1.659 GB, free: 10.15 MB / 1.073 GB Notification: Performance of pre-optimization done (n=163): time 6.021e-06/2.085, allocations: 0 / 1.659 GB, free: 10.15 MB / 1.073 GB Notification: Performance of matching and sorting (n=250): time 0.02506/2.11, allocations: 8.494 MB / 1.667 GB, free: 1.625 MB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004553/2.11, allocations: 0.8944 MB / 1.668 GB, free: 0.5234 MB / 1.073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004265/2.115, allocations: 1.564 MB / 1.67 GB, free: 14.95 MB / 1.089 GB Notification: Performance of collectPreVariables (initialization): time 0.0006941/2.115, allocations: 33.7 kB / 1.67 GB, free: 14.91 MB / 1.089 GB Notification: Performance of collectInitialEqns (initialization): time 0.001942/2.117, allocations: 1.439 MB / 1.671 GB, free: 13.45 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 0.001312/2.119, allocations: 0.7967 MB / 1.672 GB, free: 12.64 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004396/2.119, allocations: 4 kB / 1.672 GB, free: 12.64 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 0.0002351/2.119, allocations: 394.7 kB / 1.672 GB, free: 12.25 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002502/2.122, allocations: 1.364 MB / 1.674 GB, free: 10.88 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002981/2.125, allocations: 1.735 MB / 1.675 GB, free: 9.016 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002907/2.128, allocations: 1.429 MB / 1.677 GB, free: 7.566 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.477e-05/2.128, allocations: 0 / 1.677 GB, free: 7.566 MB / 1.089 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01351/2.142, allocations: 5.081 MB / 1.682 GB, free: 2.426 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001754/2.142, allocations: 148.5 kB / 1.682 GB, free: 2.25 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.438e-05/2.142, allocations: 4 kB / 1.682 GB, free: 2.246 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01074/2.153, allocations: 2.793 MB / 1.685 GB, free: 15.45 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003312/2.156, allocations: 0.5735 MB / 1.685 GB, free: 14.88 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0385/2.194, allocations: 16.4 MB / 1.701 GB, free: 14.23 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005114/2.2, allocations: 375.5 kB / 1.702 GB, free: 13.86 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000799/2.2, allocations: 91.97 kB / 1.702 GB, free: 13.77 MB / 1.12 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.001186/2.202, allocations: 159.4 kB / 1.702 GB, free: 13.61 MB / 1.12 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01238/2.214, allocations: 4.772 MB / 1.706 GB, free: 8.82 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001421/2.216, allocations: 304.4 kB / 1.707 GB, free: 8.52 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001313/2.217, allocations: 329.2 kB / 1.707 GB, free: 8.188 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.887e-05/2.217, allocations: 24 kB / 1.707 GB, free: 8.164 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.72e-05/2.217, allocations: 15.95 kB / 1.707 GB, free: 8.148 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.354e-05/2.217, allocations: 15.95 kB / 1.707 GB, free: 8.133 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007136/2.224, allocations: 3.266 MB / 1.71 GB, free: 4.824 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-05/2.224, allocations: 0 / 1.71 GB, free: 4.824 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00286/2.227, allocations: 0.4994 MB / 1.711 GB, free: 4.324 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009814/2.237, allocations: 2.765 MB / 1.713 GB, free: 1.551 MB / 1.12 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006051/2.238, allocations: 19.97 kB / 1.713 GB, free: 1.531 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03649/2.274, allocations: 16.36 MB / 1.729 GB, free: 0.918 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/2.274, allocations: 4 kB / 1.729 GB, free: 0.9141 MB / 1.135 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01295/2.287, allocations: 4.897 MB / 1.734 GB, free: 11.98 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002556/2.29, allocations: 0.673 MB / 1.735 GB, free: 11.29 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00142/2.291, allocations: 7.938 kB / 1.735 GB, free: 11.28 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004412/2.296, allocations: 387.4 kB / 1.735 GB, free: 10.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001528/2.297, allocations: 362.8 kB / 1.736 GB, free: 10.55 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004313/2.298, allocations: 71.97 kB / 1.736 GB, free: 10.48 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.00285/2.301, allocations: 1.161 MB / 1.737 GB, free: 9.309 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.012e-06/2.301, allocations: 0 / 1.737 GB, free: 9.309 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005024/2.306, allocations: 0.9414 MB / 1.738 GB, free: 8.367 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 {9 63} Notification: Performance of Backend phase and start with SimCode phase: time 0.01305/2.319, allocations: 5.492 MB / 1.743 GB, free: 2.84 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.7596/3.078, allocations: 5.202 MB / 1.748 GB, free: 281.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/3.078, allocations: 0.5 kB / 1.748 GB, free: 281.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01562/3.094, allocations: 3.357 MB / 1.751 GB, free: 281.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005791/3.1, allocations: 0.8648 MB / 1.752 GB, free: 281.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01615/3.116, allocations: 5.488 MB / 1.758 GB, free: 280 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002904/3.119, allocations: 2.294 MB / 1.76 GB, free: 279.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003397/3.122, allocations: 486.9 kB / 1.76 GB, free: 279.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002032/3.124, allocations: 1.313 MB / 1.762 GB, free: 279.2 MB / 1.151 GB Notification: Performance of SimCode: time 1.182e-06/3.124, allocations: 0 / 1.762 GB, free: 279.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1733/3.298, allocations: 89.53 MB / 1.849 GB, free: 276.4 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/3.298, allocations: 151.6 kB / 1.849 GB, free: 276.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.162/8.46, allocations: 3.188 kB / 1.849 GB, free: 276.2 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