Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DCLines,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.213/2.213, 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.0009808/0.0009808, allocations: 180.9 kB / 492.3 MB, free: 0.6172 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.438/1.438, allocations: 221.3 MB / 0.7871 GB, free: 12.97 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.0008486/0.0008486, allocations: 95.41 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.956e-05/2.96e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2497, allocations: 142.3 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9711/1.221, allocations: 201.3 MB / 1.409 GB, free: 15.47 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003607/1.221, allocations: 87.52 kB / 1.409 GB, free: 15.43 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.5145/1.736, allocations: 218.6 MB / 1.623 GB, free: 492 kB / 1.026 GB Notification: Performance of FrontEnd: time 1.303e-06/1.736, allocations: 0 / 1.623 GB, free: 492 kB / 1.026 GB Notification: Performance of Transformations before backend: time 0.0004487/1.736, allocations: 83.92 kB / 1.623 GB, free: 408 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.01084/1.747, allocations: 3.422 MB / 1.626 GB, free: 12.88 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 7.764e-05/1.747, allocations: 8.031 kB / 1.626 GB, free: 12.87 MB / 1.042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001602/1.749, allocations: 350.2 kB / 1.626 GB, free: 12.52 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01857/1.767, allocations: 3.21 MB / 1.63 GB, free: 9.297 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009086/1.777, allocations: 2.299 MB / 1.632 GB, free: 6.926 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002538/1.777, allocations: 177.4 kB / 1.632 GB, free: 6.75 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00136/1.778, allocations: 235.9 kB / 1.632 GB, free: 6.52 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01084/1.789, allocations: 3.827 MB / 1.636 GB, free: 2.551 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-05/1.789, allocations: 3.938 kB / 1.636 GB, free: 2.547 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009101/1.79, allocations: 104 kB / 1.636 GB, free: 2.445 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002057/1.79, allocations: 148.8 kB / 1.636 GB, free: 2.297 MB / 1.042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007505/1.798, allocations: 3.529 MB / 1.64 GB, free: 14.75 MB / 1.057 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02625/1.824, allocations: 14.36 MB / 1.654 GB, free: 15.22 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007325/1.832, allocations: 2.831 MB / 1.656 GB, free: 12.37 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001682/1.833, allocations: 1.046 MB / 1.657 GB, free: 11.32 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000133/1.833, allocations: 25.3 kB / 1.657 GB, free: 11.3 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00231/1.836, allocations: 1.363 MB / 1.659 GB, free: 9.871 MB / 1.073 GB Notification: Performance of pre-optimization done (n=163): time 3.867e-06/1.836, allocations: 4 kB / 1.659 GB, free: 9.867 MB / 1.073 GB Notification: Performance of matching and sorting (n=250): time 0.1138/1.95, allocations: 28.99 MB / 1.687 GB, free: 12.82 MB / 1.104 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004582/1.95, allocations: 0.8983 MB / 1.688 GB, free: 11.71 MB / 1.104 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004404/1.955, allocations: 1.955 MB / 1.69 GB, free: 9.746 MB / 1.104 GB Notification: Performance of collectPreVariables (initialization): time 0.0004296/1.955, allocations: 81.69 kB / 1.69 GB, free: 9.66 MB / 1.104 GB Notification: Performance of collectInitialEqns (initialization): time 0.001599/1.957, allocations: 1.426 MB / 1.691 GB, free: 8.219 MB / 1.104 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009512/1.958, allocations: 0.8162 MB / 1.692 GB, free: 7.391 MB / 1.104 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002865/1.958, allocations: 48 kB / 1.692 GB, free: 7.344 MB / 1.104 GB Notification: Performance of setup shared object (initialization): time 0.000213/1.958, allocations: 406.6 kB / 1.693 GB, free: 6.941 MB / 1.104 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002234/1.96, allocations: 1.25 MB / 1.694 GB, free: 5.688 MB / 1.104 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002525/1.963, allocations: 1.645 MB / 1.695 GB, free: 3.906 MB / 1.104 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002448/1.965, allocations: 1.485 MB / 1.697 GB, free: 2.367 MB / 1.104 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/1.965, allocations: 0 / 1.697 GB, free: 2.367 MB / 1.104 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01001/1.975, allocations: 4.776 MB / 1.702 GB, free: 13.5 MB / 1.12 GB Notification: Performance of prepare postOptimizeDAE: time 0.001069/1.976, allocations: 2.447 MB / 1.704 GB, free: 10.79 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/1.977, allocations: 11.95 kB / 1.704 GB, free: 10.77 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006125/1.983, allocations: 1.758 MB / 1.706 GB, free: 9.004 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003283/1.986, allocations: 0.593 MB / 1.706 GB, free: 8.41 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01429/2, allocations: 9.034 MB / 1.715 GB, free: 15.21 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004704/2.005, allocations: 415.4 kB / 1.715 GB, free: 14.8 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006092/2.006, allocations: 95.97 kB / 1.716 GB, free: 14.71 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/2.006, allocations: 4 kB / 1.716 GB, free: 14.7 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01117/2.017, allocations: 4.372 MB / 1.72 GB, free: 10.25 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.414e-05/2.017, allocations: 11.98 kB / 1.72 GB, free: 10.24 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005065/2.022, allocations: 1.763 MB / 1.722 GB, free: 8.469 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003353/2.025, allocations: 0.6124 MB / 1.722 GB, free: 7.855 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02165/2.047, allocations: 13.26 MB / 1.735 GB, free: 10.32 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004793/2.052, allocations: 415.5 kB / 1.735 GB, free: 9.91 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006383/2.053, allocations: 91.97 kB / 1.736 GB, free: 9.82 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.001193/2.054, allocations: 245.1 kB / 1.736 GB, free: 9.578 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001283/2.055, allocations: 336 kB / 1.736 GB, free: 9.246 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00145/2.057, allocations: 392.1 kB / 1.736 GB, free: 8.855 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.728e-05/2.057, allocations: 28 kB / 1.737 GB, free: 8.828 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.025e-05/2.057, allocations: 12 kB / 1.737 GB, free: 8.816 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-05/2.057, allocations: 11.95 kB / 1.737 GB, free: 8.805 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006725/2.064, allocations: 3.184 MB / 1.74 GB, free: 5.57 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.303e-05/2.064, allocations: 3.984 kB / 1.74 GB, free: 5.566 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002777/2.066, allocations: 0.5189 MB / 1.74 GB, free: 5.047 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005956/2.072, allocations: 1.657 MB / 1.742 GB, free: 3.383 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003963/2.073, allocations: 55.92 kB / 1.742 GB, free: 3.328 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7858/2.859, allocations: 13.73 MB / 1.755 GB, free: 277.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/2.859, allocations: 0 / 1.755 GB, free: 277.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009962/2.869, allocations: 4.411 MB / 1.76 GB, free: 277.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002208/2.871, allocations: 0.668 MB / 1.76 GB, free: 277.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004735/2.871, allocations: 52.53 kB / 1.76 GB, free: 277.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003126/2.874, allocations: 411.1 kB / 1.761 GB, free: 277.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001124/2.876, allocations: 302.9 kB / 1.761 GB, free: 277.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002146/2.876, allocations: 75.52 kB / 1.761 GB, free: 277.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.00255/2.878, allocations: 1.489 MB / 1.762 GB, free: 277.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.41e-07/2.878, allocations: 1 kB / 1.762 GB, free: 277.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005021/2.883, allocations: 1.586 MB / 1.764 GB, free: 277.1 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.01035/2.894, allocations: 5.059 MB / 1.769 GB, free: 276.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01642/2.91, allocations: 7.715 MB / 1.776 GB, free: 274.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.408e-05/2.91, allocations: 3.125 kB / 1.776 GB, free: 274.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.007128/2.917, allocations: 2.798 MB / 1.779 GB, free: 274.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005708/2.923, allocations: 1.007 MB / 1.78 GB, free: 274.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01267/2.936, allocations: 5.599 MB / 1.786 GB, free: 273.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002527/2.938, allocations: 2.329 MB / 1.788 GB, free: 272.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.004107/2.943, allocations: 0.7694 MB / 1.789 GB, free: 272.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001751/2.944, allocations: 1.298 MB / 1.79 GB, free: 272.5 MB / 1.151 GB Notification: Performance of SimCode: time 2.184e-06/2.944, allocations: 0 / 1.79 GB, free: 272.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1582/3.103, allocations: 102.3 MB / 1.89 GB, free: 269.1 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/3.103, allocations: 182.4 kB / 1.89 GB, free: 268.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.842/8.945, allocations: 0 / 1.89 GB, free: 268.8 MB / 1.151 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat does not exist to compare? outputFormat=mat