Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.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.DCLine,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine",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.268/2.268, allocations: 390.3 MB / 405.3 MB, free: 13.42 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.001155/0.001155, allocations: 177.1 kB / 498.1 MB, free: 5.684 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.555/1.555, allocations: 223.2 MB / 0.7948 GB, free: 18.82 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.001012/0.001011, allocations: 88.28 kB / 0.9346 GB, free: 7.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003898/0.0003898, allocations: 7.75 kB / 1.084 GB, free: 212.5 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2501, allocations: 142.4 MB / 1.223 GB, free: 89.52 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7537/1.004, allocations: 192 MB / 1.41 GB, free: 77.07 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/1.004, allocations: 92.64 kB / 1.411 GB, free: 77.07 MB / 0.9011 GB [/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);. [/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.1146/1.119, allocations: 50.21 MB / 1.46 GB, free: 71.75 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.342e-06/1.119, allocations: 0 / 1.46 GB, free: 71.75 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 7.589e-05/1.119, allocations: 23.69 kB / 1.46 GB, free: 71.74 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.002337/1.121, allocations: 1.003 MB / 1.461 GB, free: 71.1 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/1.121, allocations: 11.72 kB / 1.461 GB, free: 71.1 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003036/1.122, allocations: 100.4 kB / 1.461 GB, free: 71.06 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003371/1.125, allocations: 0.6283 MB / 1.461 GB, free: 71 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/1.126, allocations: 0.5959 MB / 1.462 GB, free: 70.69 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.752e-05/1.127, allocations: 35.47 kB / 1.462 GB, free: 70.69 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/1.127, allocations: 61.06 kB / 1.462 GB, free: 70.68 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001829/1.129, allocations: 1.006 MB / 1.463 GB, free: 70.52 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/1.129, allocations: 0 / 1.463 GB, free: 70.52 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.483e-05/1.129, allocations: 25.47 kB / 1.463 GB, free: 70.52 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-05/1.129, allocations: 39.89 kB / 1.463 GB, free: 70.51 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002146/1.131, allocations: 1.018 MB / 1.464 GB, free: 70.48 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004365/1.135, allocations: 3.55 MB / 1.467 GB, free: 68.2 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/1.137, allocations: 0.5077 MB / 1.468 GB, free: 68.16 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/1.137, allocations: 3.906 kB / 1.468 GB, free: 68.16 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/1.137, allocations: 41.84 kB / 1.468 GB, free: 68.12 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=31): time 2.404e-06/1.137, allocations: 0 / 1.468 GB, free: 68.12 MB / 0.9011 GB Notification: Performance of matching and sorting (n=43): time 0.006324/1.143, allocations: 2.291 MB / 1.47 GB, free: 67.61 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/1.143, allocations: 139.7 kB / 1.47 GB, free: 67.45 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005917/1.144, allocations: 0.5 MB / 1.471 GB, free: 67.32 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 4.58e-05/1.144, allocations: 36.33 kB / 1.471 GB, free: 67.29 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.000174/1.144, allocations: 363.1 kB / 1.471 GB, free: 67.11 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 9.794e-05/1.144, allocations: 142.5 kB / 1.471 GB, free: 67.02 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.643e-05/1.144, allocations: 10.91 kB / 1.471 GB, free: 67.02 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 8.053e-05/1.144, allocations: 371.8 kB / 1.472 GB, free: 66.7 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000599/1.145, allocations: 272.9 kB / 1.472 GB, free: 66.7 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006194/1.145, allocations: 408.1 kB / 1.472 GB, free: 66.54 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006259/1.146, allocations: 313.5 kB / 1.473 GB, free: 66.52 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.146, allocations: 0 / 1.473 GB, free: 66.52 MB / 0.9011 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002052/1.148, allocations: 0.9545 MB / 1.474 GB, free: 66.36 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002279/1.148, allocations: 1.225 MB / 1.475 GB, free: 65.07 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/1.148, allocations: 3.906 kB / 1.475 GB, free: 65.07 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009165/1.149, allocations: 257 kB / 1.475 GB, free: 65.01 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006044/1.15, allocations: 124.8 kB / 1.475 GB, free: 65 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00333/1.153, allocations: 5.975 MB / 1.481 GB, free: 59.63 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006718/1.154, allocations: 58.38 kB / 1.481 GB, free: 59.62 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.732e-05/1.154, allocations: 22.91 kB / 1.481 GB, free: 59.62 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 8.285e-06/1.154, allocations: 3.938 kB / 1.481 GB, free: 59.62 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002011/1.156, allocations: 1.076 MB / 1.482 GB, free: 59.23 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/1.156, allocations: 3.906 kB / 1.482 GB, free: 59.23 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000592/1.157, allocations: 202.8 kB / 1.482 GB, free: 59.18 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006008/1.157, allocations: 139.9 kB / 1.482 GB, free: 59.17 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004252/1.161, allocations: 8.191 MB / 1.49 GB, free: 51.34 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006613/1.162, allocations: 61.75 kB / 1.491 GB, free: 51.32 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.3e-05/1.162, allocations: 19.52 kB / 1.491 GB, free: 51.32 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004914/1.163, allocations: 315.8 kB / 1.491 GB, free: 51.11 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/1.163, allocations: 62.84 kB / 1.491 GB, free: 51.08 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001795/1.163, allocations: 80.44 kB / 1.491 GB, free: 51.06 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/1.163, allocations: 7.891 kB / 1.491 GB, free: 51.05 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/1.163, allocations: 0 / 1.491 GB, free: 51.05 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/1.163, allocations: 11.84 kB / 1.491 GB, free: 51.05 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007855/1.164, allocations: 0.6493 MB / 1.492 GB, free: 50.7 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/1.164, allocations: 4 kB / 1.492 GB, free: 50.69 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005002/1.164, allocations: 93.3 kB / 1.492 GB, free: 50.67 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007971/1.165, allocations: 250.4 kB / 1.492 GB, free: 50.55 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.723e-05/1.165, allocations: 7.922 kB / 1.492 GB, free: 50.55 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004546/1.17, allocations: 8.482 MB / 1.5 GB, free: 42.6 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/1.17, allocations: 0 / 1.5 GB, free: 42.6 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002008/1.172, allocations: 0.9492 MB / 1.501 GB, free: 42.2 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002869/1.172, allocations: 184.4 kB / 1.501 GB, free: 42.06 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.337e-05/1.172, allocations: 15.33 kB / 1.501 GB, free: 42.05 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004982/1.173, allocations: 50.17 kB / 1.501 GB, free: 42.04 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/1.173, allocations: 43.47 kB / 1.501 GB, free: 42.02 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-05/1.173, allocations: 8.141 kB / 1.501 GB, free: 42.02 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0004263/1.173, allocations: 406.4 kB / 1.502 GB, free: 41.87 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.41e-07/1.173, allocations: 0 / 1.502 GB, free: 41.87 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.001119/1.174, allocations: 302.4 kB / 1.502 GB, free: 41.87 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.00216/1.177, allocations: 1.518 MB / 1.504 GB, free: 40.92 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.003328/1.18, allocations: 2.091 MB / 1.506 GB, free: 39.65 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/1.18, allocations: 8 kB / 1.506 GB, free: 39.64 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.00118/1.181, allocations: 1.016 MB / 1.507 GB, free: 38.88 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009172/1.182, allocations: 203.1 kB / 1.507 GB, free: 38.82 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008936/1.191, allocations: 6.272 MB / 1.513 GB, free: 34.88 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009127/1.192, allocations: 0.9861 MB / 1.514 GB, free: 34.05 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0009387/1.193, allocations: 156.9 kB / 1.514 GB, free: 33.98 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003961/1.193, allocations: 236.5 kB / 1.514 GB, free: 33.95 MB / 0.9011 GB Notification: Performance of SimCode: time 2.554e-06/1.193, allocations: 3.938 kB / 1.514 GB, free: 33.95 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03486/1.228, allocations: 18.36 MB / 1.532 GB, free: 25.29 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001592/1.228, allocations: 210.4 kB / 1.532 GB, free: 25.04 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.513/3.741, allocations: 0 / 1.532 GB, free: 25.04 MB / 0.9011 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat does not exist to compare? outputFormat=mat