Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",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.409/2.409, 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.001323/0.001323, allocations: 184 kB / 496.1 MB, free: 12.89 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.658/1.658, allocations: 221.3 MB / 0.7915 GB, free: 5.422 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.001227/0.001227, allocations: 95.89 kB / 0.9317 GB, free: 5.723 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.17e-05/4.181e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3041, allocations: 143 MB / 1.219 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.069/1.374, allocations: 176.4 MB / 1.391 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003294/1.374, allocations: 86.89 kB / 1.391 GB, free: 11.68 MB / 0.8542 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13: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);. Notification: Performance of FrontEnd - DAE generated: time 0.03558/1.41, allocations: 14.83 MB / 1.406 GB, free: 15.29 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.583e-06/1.41, allocations: 0 / 1.406 GB, free: 15.29 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.422e-05/1.41, allocations: 11.94 kB / 1.406 GB, free: 15.27 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008868/1.411, allocations: 476.3 kB / 1.406 GB, free: 14.78 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.791e-05/1.411, allocations: 8.031 kB / 1.406 GB, free: 14.77 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001148/1.411, allocations: 57.55 kB / 1.406 GB, free: 14.71 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000759/1.412, allocations: 83.73 kB / 1.406 GB, free: 14.63 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/1.412, allocations: 246.7 kB / 1.406 GB, free: 14.37 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/1.412, allocations: 14.69 kB / 1.407 GB, free: 14.36 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.094e-05/1.412, allocations: 19.12 kB / 1.407 GB, free: 14.34 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004935/1.413, allocations: 285 kB / 1.407 GB, free: 14.11 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/1.413, allocations: 4 kB / 1.407 GB, free: 14.11 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/1.413, allocations: 11 kB / 1.407 GB, free: 14.11 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.915e-05/1.413, allocations: 20.3 kB / 1.407 GB, free: 14.09 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003442/1.413, allocations: 192 kB / 1.407 GB, free: 13.96 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001808/1.415, allocations: 1.457 MB / 1.408 GB, free: 12.46 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003094/1.415, allocations: 172.2 kB / 1.409 GB, free: 12.29 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.194e-05/1.415, allocations: 34.39 kB / 1.409 GB, free: 12.26 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/1.415, allocations: 8.031 kB / 1.409 GB, free: 12.25 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/1.415, allocations: 34.56 kB / 1.409 GB, free: 12.21 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 3.777e-06/1.415, allocations: 0 / 1.409 GB, free: 12.21 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.000339/1.416, allocations: 114.7 kB / 1.409 GB, free: 12.11 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/1.416, allocations: 55.41 kB / 1.409 GB, free: 12.04 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/1.416, allocations: 177.8 kB / 1.409 GB, free: 11.88 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/1.416, allocations: 29.7 kB / 1.409 GB, free: 11.85 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000116/1.416, allocations: 161.7 kB / 1.409 GB, free: 11.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.803e-05/1.416, allocations: 26.77 kB / 1.409 GB, free: 11.68 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.703e-06/1.416, allocations: 7.938 kB / 1.409 GB, free: 11.67 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001414/1.416, allocations: 325.1 kB / 1.41 GB, free: 11.35 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.305e-05/1.416, allocations: 30.56 kB / 1.41 GB, free: 11.33 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/1.417, allocations: 99.94 kB / 1.41 GB, free: 11.22 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.38e-05/1.417, allocations: 53.67 kB / 1.41 GB, free: 11.18 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/1.417, allocations: 0 / 1.41 GB, free: 11.18 MB / 0.8698 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003275/1.417, allocations: 191.9 kB / 1.41 GB, free: 11.02 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/1.417, allocations: 8 kB / 1.41 GB, free: 11.01 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/1.417, allocations: 7.891 kB / 1.41 GB, free: 11 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001813/1.417, allocations: 28.78 kB / 1.41 GB, free: 10.97 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/1.417, allocations: 24.27 kB / 1.41 GB, free: 10.95 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001299/1.419, allocations: 1.317 MB / 1.411 GB, free: 9.551 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/1.419, allocations: 23.62 kB / 1.411 GB, free: 9.531 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/1.419, allocations: 4 kB / 1.411 GB, free: 9.527 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.798e-05/1.419, allocations: 115.4 kB / 1.411 GB, free: 9.414 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.748e-05/1.419, allocations: 15.81 kB / 1.411 GB, free: 9.398 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.904e-05/1.419, allocations: 20.11 kB / 1.411 GB, free: 9.387 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/1.419, allocations: 0 / 1.411 GB, free: 9.387 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/1.419, allocations: 0 / 1.411 GB, free: 9.387 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/1.419, allocations: 3.984 kB / 1.411 GB, free: 9.383 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005657/1.42, allocations: 448.3 kB / 1.412 GB, free: 8.938 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/1.42, allocations: 0 / 1.412 GB, free: 8.938 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.677e-05/1.42, allocations: 16.05 kB / 1.412 GB, free: 8.922 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.187e-05/1.42, allocations: 15.98 kB / 1.412 GB, free: 8.906 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/1.42, allocations: 7.047 kB / 1.412 GB, free: 8.902 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/1.421, allocations: 1.311 MB / 1.413 GB, free: 7.504 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/1.421, allocations: 4.031 kB / 1.413 GB, free: 7.5 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/1.421, allocations: 220.2 kB / 1.413 GB, free: 7.285 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/1.421, allocations: 88.14 kB / 1.413 GB, free: 7.184 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.976e-05/1.421, allocations: 7.984 kB / 1.413 GB, free: 7.176 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/1.421, allocations: 7.375 kB / 1.413 GB, free: 7.172 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.707e-05/1.421, allocations: 0 / 1.413 GB, free: 7.172 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/1.421, allocations: 4 kB / 1.413 GB, free: 7.168 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001332/1.422, allocations: 145.9 kB / 1.414 GB, free: 7.043 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.51e-07/1.422, allocations: 0 / 1.414 GB, free: 7.043 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003593/1.422, allocations: 58.34 kB / 1.414 GB, free: 6.992 MB / 0.8698 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006409/1.423, allocations: 0.7425 MB / 1.414 GB, free: 6.242 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003879/1.423, allocations: 205.9 kB / 1.415 GB, free: 6.055 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/1.423, allocations: 4 kB / 1.415 GB, free: 6.051 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001539/1.423, allocations: 136.5 kB / 1.415 GB, free: 5.914 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/1.424, allocations: 32.47 kB / 1.415 GB, free: 5.887 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007244/1.424, allocations: 297.5 kB / 1.415 GB, free: 5.586 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004263/1.425, allocations: 0.7504 MB / 1.416 GB, free: 4.812 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0001245/1.425, allocations: 25.31 kB / 1.416 GB, free: 4.789 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.295e-05/1.425, allocations: 54.23 kB / 1.416 GB, free: 4.77 MB / 0.8698 GB Notification: Performance of SimCode: time 3.41e-07/1.425, allocations: 0 / 1.416 GB, free: 4.77 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0186/1.444, allocations: 3.344 MB / 1.419 GB, free: 1.594 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000202/1.444, allocations: 184.9 kB / 1.419 GB, free: 1.359 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/3.132, allocations: 0 / 1.419 GB, free: 1.359 MB / 0.8698 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat does not exist to compare? outputFormat=mat