Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.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.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",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.353/2.353, allocations: 390.5 MB / 398 MB, free: 10.93 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.0014/0.0014, allocations: 176.8 kB / 491.2 MB, free: 1.57 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.619/1.619, allocations: 221.5 MB / 0.7868 GB, free: 13.35 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.0009192/0.000919, allocations: 91.95 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.754e-05/1.757e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2943, allocations: 143 MB / 1.212 GB, free: 39.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.08/1.375, allocations: 182.6 MB / 1.391 GB, free: 15.16 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/1.375, allocations: 93.94 kB / 1.391 GB, free: 15.14 MB / 0.823 GB [/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);. [/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/DC/Sensors/GeneralizedSensor.mo:39:3-39: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 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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39: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.05387/1.429, allocations: 25.72 MB / 1.416 GB, free: 12.33 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.963e-06/1.429, allocations: 0 / 1.416 GB, free: 12.33 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.198e-05/1.429, allocations: 12 kB / 1.416 GB, free: 12.32 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001168/1.43, allocations: 0.6266 MB / 1.417 GB, free: 11.67 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/1.43, allocations: 8.031 kB / 1.417 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001169/1.431, allocations: 159.6 kB / 1.417 GB, free: 11.51 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006089/1.432, allocations: 336.9 kB / 1.417 GB, free: 11.16 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/1.432, allocations: 12 kB / 1.417 GB, free: 11.15 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.272e-05/1.432, allocations: 20 kB / 1.417 GB, free: 11.13 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005423/1.433, allocations: 348 kB / 1.417 GB, free: 10.91 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007037/1.433, allocations: 474.6 kB / 1.418 GB, free: 10.52 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/1.433, allocations: 0 / 1.418 GB, free: 10.52 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.567e-05/1.433, allocations: 0 / 1.418 GB, free: 10.52 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.891e-05/1.434, allocations: 32.53 kB / 1.418 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002665/1.436, allocations: 2.328 MB / 1.42 GB, free: 8.172 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000494/1.437, allocations: 254.7 kB / 1.42 GB, free: 8 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/1.437, allocations: 105.2 kB / 1.421 GB, free: 7.93 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/1.437, allocations: 7.953 kB / 1.421 GB, free: 7.922 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/1.437, allocations: 33.94 kB / 1.421 GB, free: 7.883 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 1.723e-06/1.437, allocations: 0 / 1.421 GB, free: 7.883 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.001603/1.439, allocations: 0.786 MB / 1.421 GB, free: 7.164 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/1.439, allocations: 55.41 kB / 1.421 GB, free: 7.098 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002797/1.439, allocations: 228 kB / 1.422 GB, free: 6.906 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/1.439, allocations: 25.7 kB / 1.422 GB, free: 6.875 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/1.439, allocations: 240.3 kB / 1.422 GB, free: 6.672 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.306e-05/1.439, allocations: 69.53 kB / 1.422 GB, free: 6.609 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.378e-05/1.439, allocations: 0 / 1.422 GB, free: 6.609 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001619/1.439, allocations: 340.1 kB / 1.422 GB, free: 6.281 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/1.439, allocations: 95.25 kB / 1.422 GB, free: 6.219 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002087/1.44, allocations: 183 kB / 1.422 GB, free: 6.043 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001728/1.44, allocations: 122.2 kB / 1.423 GB, free: 5.965 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/1.44, allocations: 0 / 1.423 GB, free: 5.965 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006778/1.441, allocations: 399.6 kB / 1.423 GB, free: 5.641 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/1.441, allocations: 8 kB / 1.423 GB, free: 5.633 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/1.441, allocations: 0 / 1.423 GB, free: 5.633 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003382/1.441, allocations: 92.19 kB / 1.423 GB, free: 5.547 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002734/1.441, allocations: 59.91 kB / 1.423 GB, free: 5.488 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003411/1.445, allocations: 3.899 MB / 1.427 GB, free: 1.441 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002619/1.445, allocations: 4 kB / 1.427 GB, free: 1.438 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.622e-05/1.445, allocations: 15.19 kB / 1.427 GB, free: 1.426 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001555/1.445, allocations: 116.9 kB / 1.427 GB, free: 1.305 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005983/1.446, allocations: 311.2 kB / 1.427 GB, free: 1.047 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.121e-05/1.446, allocations: 23.72 kB / 1.427 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.972e-05/1.446, allocations: 36.64 kB / 1.427 GB, free: 1.008 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/1.446, allocations: 0 / 1.427 GB, free: 1.008 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/1.446, allocations: 4 kB / 1.427 GB, free: 1.004 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/1.446, allocations: 7.984 kB / 1.427 GB, free: 0.9961 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004559/1.446, allocations: 334.4 kB / 1.428 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/1.446, allocations: 0 / 1.428 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002033/1.447, allocations: 39.91 kB / 1.428 GB, free: 0.6562 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002986/1.447, allocations: 83.89 kB / 1.428 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/1.447, allocations: 8 kB / 1.428 GB, free: 0.5703 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003488/1.45, allocations: 3.893 MB / 1.432 GB, free: 12.52 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/1.451, allocations: 0 / 1.432 GB, free: 12.52 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008794/1.451, allocations: 0.5269 MB / 1.432 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001535/1.452, allocations: 119.6 kB / 1.432 GB, free: 11.96 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.822e-05/1.452, allocations: 7.953 kB / 1.432 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/1.452, allocations: 4 kB / 1.432 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.161e-05/1.452, allocations: 19.47 kB / 1.432 GB, free: 11.93 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/1.452, allocations: 15.31 kB / 1.432 GB, free: 11.92 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001883/1.452, allocations: 170.8 kB / 1.433 GB, free: 11.79 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.21e-07/1.452, allocations: 0 / 1.433 GB, free: 11.79 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0005809/1.453, allocations: 91.98 kB / 1.433 GB, free: 11.7 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 15 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001139/1.454, allocations: 1.058 MB / 1.434 GB, free: 10.72 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000853/1.455, allocations: 0.569 MB / 1.434 GB, free: 10.2 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/1.455, allocations: 3.938 kB / 1.434 GB, free: 10.2 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0005061/1.455, allocations: 435.8 kB / 1.435 GB, free: 9.789 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003978/1.456, allocations: 56.98 kB / 1.435 GB, free: 9.746 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/1.457, allocations: 0.5732 MB / 1.435 GB, free: 9.191 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004898/1.457, allocations: 0.8446 MB / 1.436 GB, free: 8.332 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002113/1.458, allocations: 59.23 kB / 1.436 GB, free: 8.273 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/1.458, allocations: 107.6 kB / 1.436 GB, free: 8.242 MB / 0.8542 GB Notification: Performance of SimCode: time 4.6e-07/1.458, allocations: 3.938 kB / 1.436 GB, free: 8.238 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03001/1.488, allocations: 6.206 MB / 1.442 GB, free: 2.082 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002664/1.488, allocations: 139.5 kB / 1.442 GB, free: 1.887 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.098/3.586, allocations: 2.625 kB / 1.442 GB, free: 1.887 MB / 0.8542 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat does not exist to compare? outputFormat=mat