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.367/2.367, allocations: 390.3 MB / 402.8 MB, free: 6.715 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.001376/0.001376, allocations: 172.1 kB / 496.1 MB, free: 12.9 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.652/1.652, allocations: 221.3 MB / 0.7915 GB, free: 5.43 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.001049/0.001049, allocations: 80.03 kB / 0.9317 GB, free: 5.742 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.176e-05/4.196e-05, allocations: 0 / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3257, allocations: 143 MB / 1.219 GB, free: 13.46 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.069/1.394, allocations: 202.1 MB / 1.416 GB, free: 2.922 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/1.395, allocations: 94.47 kB / 1.416 GB, free: 2.871 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.5966/1.991, allocations: 218.6 MB / 1.63 GB, free: 10.74 MB / 1.089 GB Notification: Performance of FrontEnd: time 2.735e-06/1.992, allocations: 0 / 1.63 GB, free: 10.74 MB / 1.089 GB Notification: Performance of Transformations before backend: time 0.0005253/1.992, allocations: 87.92 kB / 1.63 GB, free: 10.65 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.01272/2.005, allocations: 3.414 MB / 1.633 GB, free: 7.137 MB / 1.089 GB Notification: Performance of prepare preOptimizeDAE: time 5.799e-05/2.005, allocations: 12.03 kB / 1.633 GB, free: 7.125 MB / 1.089 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001835/2.007, allocations: 346.1 kB / 1.634 GB, free: 6.777 MB / 1.089 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01902/2.026, allocations: 3.214 MB / 1.637 GB, free: 3.555 MB / 1.089 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009787/2.036, allocations: 2.293 MB / 1.639 GB, free: 1.191 MB / 1.089 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003059/2.036, allocations: 176.7 kB / 1.639 GB, free: 1.016 MB / 1.089 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001669/2.038, allocations: 239.9 kB / 1.639 GB, free: 0.7812 MB / 1.089 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0125/2.05, allocations: 3.823 MB / 1.643 GB, free: 12.82 MB / 1.104 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.606e-05/2.05, allocations: 4 kB / 1.643 GB, free: 12.81 MB / 1.104 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004557/2.051, allocations: 104 kB / 1.643 GB, free: 12.71 MB / 1.104 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002259/2.051, allocations: 152.8 kB / 1.643 GB, free: 12.56 MB / 1.104 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008564/2.06, allocations: 3.526 MB / 1.647 GB, free: 9.02 MB / 1.104 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03017/2.09, allocations: 14.37 MB / 1.661 GB, free: 9.477 MB / 1.12 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007176/2.097, allocations: 2.835 MB / 1.664 GB, free: 6.633 MB / 1.12 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001653/2.099, allocations: 1.05 MB / 1.665 GB, free: 5.578 MB / 1.12 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001121/2.099, allocations: 21.3 kB / 1.665 GB, free: 5.559 MB / 1.12 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002213/2.101, allocations: 1.357 MB / 1.666 GB, free: 4.137 MB / 1.12 GB Notification: Performance of pre-optimization done (n=163): time 3.326e-06/2.101, allocations: 0 / 1.666 GB, free: 4.137 MB / 1.12 GB Notification: Performance of matching and sorting (n=250): time 0.1197/2.221, allocations: 28.98 MB / 1.694 GB, free: 7.105 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006565/2.222, allocations: 0.9022 MB / 1.695 GB, free: 5.992 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003964/2.226, allocations: 1.955 MB / 1.697 GB, free: 4.027 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.000575/2.226, allocations: 77.7 kB / 1.697 GB, free: 3.945 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001696/2.228, allocations: 1.43 MB / 1.698 GB, free: 2.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.001098/2.229, allocations: 0.8279 MB / 1.699 GB, free: 1.66 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/2.229, allocations: 44 kB / 1.699 GB, free: 1.617 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0002382/2.229, allocations: 398.6 kB / 1.7 GB, free: 1.223 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.9849/3.214, allocations: 1.25 MB / 1.701 GB, free: 278.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004422/3.219, allocations: 1.657 MB / 1.703 GB, free: 278.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00315/3.222, allocations: 1.475 MB / 1.704 GB, free: 278 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/3.222, allocations: 3.938 kB / 1.704 GB, free: 278 MB / 1.151 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01232/3.234, allocations: 4.77 MB / 1.709 GB, free: 277.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007373/3.235, allocations: 2.455 MB / 1.711 GB, free: 275 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.51e-05/3.235, allocations: 5.375 kB / 1.711 GB, free: 275 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007221/3.242, allocations: 1.761 MB / 1.713 GB, free: 275 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003992/3.246, allocations: 0.5862 MB / 1.713 GB, free: 275 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01807/3.265, allocations: 9.046 MB / 1.722 GB, free: 273.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005185/3.27, allocations: 414.7 kB / 1.723 GB, free: 273.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000601/3.27, allocations: 90.39 kB / 1.723 GB, free: 273.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/3.27, allocations: 3.562 kB / 1.723 GB, free: 273.1 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01134/3.282, allocations: 4.372 MB / 1.727 GB, free: 272.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.086e-05/3.282, allocations: 7.781 kB / 1.727 GB, free: 272.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006089/3.288, allocations: 1.765 MB / 1.729 GB, free: 272.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00395/3.292, allocations: 0.6146 MB / 1.729 GB, free: 272.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02481/3.317, allocations: 13.25 MB / 1.742 GB, free: 270 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005534/3.322, allocations: 414.9 kB / 1.743 GB, free: 270 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005044/3.323, allocations: 88.59 kB / 1.743 GB, free: 270 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 (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.0009309/3.324, allocations: 262.2 kB / 1.743 GB, free: 269.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008214/3.325, allocations: 334.4 kB / 1.743 GB, free: 269.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001217/3.326, allocations: 393.2 kB / 1.744 GB, free: 269.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.474e-05/3.326, allocations: 24.36 kB / 1.744 GB, free: 269.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.373e-05/3.326, allocations: 10.03 kB / 1.744 GB, free: 269.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-05/3.326, allocations: 11.34 kB / 1.744 GB, free: 269.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006686/3.333, allocations: 3.182 MB / 1.747 GB, free: 269.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/3.333, allocations: 0 / 1.747 GB, free: 269.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002907/3.336, allocations: 0.5264 MB / 1.747 GB, free: 269.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006316/3.342, allocations: 1.657 MB / 1.749 GB, free: 269.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004278/3.343, allocations: 56.61 kB / 1.749 GB, free: 269.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02812/3.371, allocations: 13.74 MB / 1.762 GB, free: 266.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/3.371, allocations: 2.469 kB / 1.762 GB, free: 266.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009404/3.38, allocations: 4.417 MB / 1.767 GB, free: 266.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002194/3.382, allocations: 0.664 MB / 1.767 GB, free: 266 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005088/3.383, allocations: 55.08 kB / 1.767 GB, free: 266 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003084/3.386, allocations: 407.4 kB / 1.768 GB, free: 266 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001128/3.387, allocations: 305.3 kB / 1.768 GB, free: 266 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001874/3.387, allocations: 71.69 kB / 1.768 GB, free: 266 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002469/3.39, allocations: 1.499 MB / 1.77 GB, free: 265.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.71e-07/3.39, allocations: 0 / 1.77 GB, free: 265.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005357/3.395, allocations: 1.58 MB / 1.771 GB, free: 265.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 (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.009114/3.404, allocations: 5.063 MB / 1.776 GB, free: 264.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01537/3.42, allocations: 7.71 MB / 1.784 GB, free: 261.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.996e-05/3.42, allocations: 6.125 kB / 1.784 GB, free: 261.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.005923/3.426, allocations: 2.797 MB / 1.786 GB, free: 260.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006166/3.432, allocations: 1.014 MB / 1.787 GB, free: 260.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01663/3.449, allocations: 5.602 MB / 1.793 GB, free: 258.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002296/3.451, allocations: 2.333 MB / 1.795 GB, free: 257.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.004436/3.456, allocations: 0.7609 MB / 1.796 GB, free: 257.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001694/3.457, allocations: 1.295 MB / 1.797 GB, free: 256.4 MB / 1.151 GB Notification: Performance of SimCode: time 1.634e-06/3.457, allocations: 0 / 1.797 GB, free: 256.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1892/3.646, allocations: 102.3 MB / 1.897 GB, free: 235.9 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002659/3.647, allocations: 199 kB / 1.897 GB, free: 235.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.485/10.13, allocations: 0 / 1.897 GB, free: 235.7 MB / 1.151 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