Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.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.RCModel,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.262/2.262, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.00118/0.00118, allocations: 180.7 kB / 487.4 MB, free: 5.039 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.362/1.362, allocations: 221.5 MB / 0.7824 GB, free: 0.9883 MB / 0.5417 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.89 kB / 0.9219 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.688e-05/1.717e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2282, allocations: 142.4 MB / 1.206 GB, free: 43.88 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7908/1.019, allocations: 181.8 MB / 1.384 GB, free: 17.45 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/1.019, allocations: 95.55 kB / 1.384 GB, free: 17.43 MB / 0.823 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/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 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/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.0494/1.069, allocations: 25.72 MB / 1.409 GB, free: 20.27 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.734e-06/1.069, allocations: 0 / 1.409 GB, free: 20.27 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.765e-05/1.069, allocations: 11.91 kB / 1.409 GB, free: 20.26 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.0009513/1.07, allocations: 0.6199 MB / 1.409 GB, free: 19.62 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/1.07, allocations: 8.031 kB / 1.409 GB, free: 19.62 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001075/1.071, allocations: 163.9 kB / 1.41 GB, free: 19.46 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004917/1.071, allocations: 342.9 kB / 1.41 GB, free: 19.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.836e-05/1.071, allocations: 8 kB / 1.41 GB, free: 19.11 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.756e-05/1.071, allocations: 20 kB / 1.41 GB, free: 19.09 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004606/1.072, allocations: 333.4 kB / 1.41 GB, free: 18.88 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005553/1.073, allocations: 476 kB / 1.411 GB, free: 18.49 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/1.073, allocations: 0 / 1.411 GB, free: 18.49 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.762e-05/1.073, allocations: 4 kB / 1.411 GB, free: 18.49 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.526e-05/1.073, allocations: 32.33 kB / 1.411 GB, free: 18.46 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/1.075, allocations: 2.328 MB / 1.413 GB, free: 16.15 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004053/1.075, allocations: 253.6 kB / 1.413 GB, free: 15.98 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/1.075, allocations: 104.4 kB / 1.413 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/1.075, allocations: 352 / 1.413 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/1.075, allocations: 49.12 kB / 1.413 GB, free: 15.86 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 1.052e-06/1.075, allocations: 0 / 1.413 GB, free: 15.86 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.001278/1.077, allocations: 0.7869 MB / 1.414 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.748e-05/1.077, allocations: 51.41 kB / 1.414 GB, free: 15.08 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/1.077, allocations: 223.5 kB / 1.414 GB, free: 14.89 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.885e-05/1.077, allocations: 29.7 kB / 1.414 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.7e-05/1.077, allocations: 234.6 kB / 1.415 GB, free: 14.66 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.439e-05/1.077, allocations: 78.09 kB / 1.415 GB, free: 14.59 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.373e-05/1.077, allocations: 0 / 1.415 GB, free: 14.59 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001069/1.077, allocations: 333.6 kB / 1.415 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/1.077, allocations: 97.88 kB / 1.415 GB, free: 14.2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000175/1.077, allocations: 178.3 kB / 1.415 GB, free: 14.04 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001932/1.078, allocations: 121.8 kB / 1.415 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/1.078, allocations: 4 kB / 1.415 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006134/1.078, allocations: 391.9 kB / 1.416 GB, free: 13.63 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/1.078, allocations: 8 kB / 1.416 GB, free: 13.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/1.078, allocations: 4 kB / 1.416 GB, free: 13.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003157/1.079, allocations: 91.98 kB / 1.416 GB, free: 13.54 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002613/1.079, allocations: 67.28 kB / 1.416 GB, free: 13.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002571/1.081, allocations: 3.91 MB / 1.42 GB, free: 9.406 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002527/1.082, allocations: 0 / 1.42 GB, free: 9.406 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/1.082, allocations: 12 kB / 1.42 GB, free: 9.395 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.0001033/1.082, allocations: 124.6 kB / 1.42 GB, free: 9.27 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005175/1.082, allocations: 304.6 kB / 1.42 GB, free: 9.016 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.002e-05/1.082, allocations: 23.72 kB / 1.42 GB, free: 8.992 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.713e-05/1.083, allocations: 38.45 kB / 1.42 GB, free: 8.977 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/1.083, allocations: 4 kB / 1.42 GB, free: 8.973 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/1.083, allocations: 0 / 1.42 GB, free: 8.973 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/1.083, allocations: 0 / 1.42 GB, free: 8.973 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003981/1.083, allocations: 342.1 kB / 1.421 GB, free: 8.668 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/1.083, allocations: 0 / 1.421 GB, free: 8.668 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/1.083, allocations: 31.98 kB / 1.421 GB, free: 8.637 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002771/1.083, allocations: 101.2 kB / 1.421 GB, free: 8.543 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/1.083, allocations: 0 / 1.421 GB, free: 8.543 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00247/1.086, allocations: 3.891 MB / 1.425 GB, free: 4.508 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/1.086, allocations: 0 / 1.425 GB, free: 4.508 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006715/1.087, allocations: 0.5261 MB / 1.425 GB, free: 4.074 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/1.087, allocations: 119.2 kB / 1.425 GB, free: 3.945 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.971e-05/1.087, allocations: 4.109 kB / 1.425 GB, free: 3.941 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001866/1.087, allocations: 8 kB / 1.425 GB, free: 3.934 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.47e-05/1.087, allocations: 18.84 kB / 1.425 GB, free: 3.918 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/1.087, allocations: 9.188 kB / 1.425 GB, free: 3.91 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001536/1.087, allocations: 170 kB / 1.425 GB, free: 3.777 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.087, allocations: 0 / 1.425 GB, free: 3.777 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004602/1.088, allocations: 88 kB / 1.425 GB, free: 3.691 MB / 0.8386 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.0009311/1.089, allocations: 1.073 MB / 1.427 GB, free: 2.703 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000678/1.089, allocations: 0.5523 MB / 1.427 GB, free: 2.199 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/1.089, allocations: 4 kB / 1.427 GB, free: 2.195 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004757/1.09, allocations: 452 kB / 1.427 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003703/1.09, allocations: 52.61 kB / 1.428 GB, free: 1.73 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/1.091, allocations: 0.5734 MB / 1.428 GB, free: 1.172 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/1.092, allocations: 0.8457 MB / 1.429 GB, free: 320 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001954/1.092, allocations: 59.23 kB / 1.429 GB, free: 260 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/1.092, allocations: 106.4 kB / 1.429 GB, free: 228 kB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/1.092, allocations: 0 / 1.429 GB, free: 228 kB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02318/1.115, allocations: 6.22 MB / 1.435 GB, free: 10.05 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001896/1.115, allocations: 129.2 kB / 1.435 GB, free: 9.863 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.006/3.122, allocations: 0 / 1.435 GB, free: 9.863 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat does not exist to compare? outputFormat=mat