Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Resistance,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.165/2.165, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001039/0.00104, allocations: 184.8 kB / 487.4 MB, free: 5.035 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.361/1.361, allocations: 221.5 MB / 0.7824 GB, free: 0.9727 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.0008462/0.0008463, allocations: 95.8 kB / 0.9219 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.105e-05/2.101e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2117, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7877/0.9995, allocations: 174.9 MB / 1.377 GB, free: 18.09 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001888/0.9998, allocations: 96.61 kB / 1.377 GB, free: 18.09 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 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);. Notification: Performance of FrontEnd - DAE generated: time 0.02926/1.029, allocations: 14.79 MB / 1.391 GB, free: 28.82 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.754e-06/1.029, allocations: 0 / 1.391 GB, free: 28.82 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.948e-05/1.029, allocations: 7.875 kB / 1.391 GB, free: 28.82 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006367/1.03, allocations: 470.1 kB / 1.392 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/1.03, allocations: 15.58 kB / 1.392 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006682/1.03, allocations: 70 kB / 1.392 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/1.031, allocations: 246 kB / 1.392 GB, free: 28.13 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/1.031, allocations: 7.688 kB / 1.392 GB, free: 28.13 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/1.031, allocations: 7.812 kB / 1.392 GB, free: 28.13 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002654/1.031, allocations: 170.1 kB / 1.392 GB, free: 28.11 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003235/1.031, allocations: 255.3 kB / 1.393 GB, free: 27.99 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/1.031, allocations: 0 / 1.393 GB, free: 27.99 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/1.032, allocations: 4 kB / 1.393 GB, free: 27.99 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.044e-05/1.032, allocations: 19.84 kB / 1.393 GB, free: 27.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/1.033, allocations: 1.419 MB / 1.394 GB, free: 26.7 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002194/1.033, allocations: 172.4 kB / 1.394 GB, free: 26.57 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.89e-05/1.033, allocations: 28.81 kB / 1.394 GB, free: 26.55 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 7.695e-06/1.033, allocations: 3.906 kB / 1.394 GB, free: 26.55 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.571e-05/1.033, allocations: 30.56 kB / 1.394 GB, free: 26.52 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.663e-06/1.033, allocations: 0 / 1.394 GB, free: 26.52 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002757/1.034, allocations: 100.4 kB / 1.394 GB, free: 26.46 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.37e-05/1.034, allocations: 59.12 kB / 1.394 GB, free: 26.39 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/1.034, allocations: 169.3 kB / 1.395 GB, free: 26.28 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/1.034, allocations: 25.7 kB / 1.395 GB, free: 26.25 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.351e-05/1.034, allocations: 167 kB / 1.395 GB, free: 26.11 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/1.034, allocations: 22.66 kB / 1.395 GB, free: 26.09 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.881e-06/1.034, allocations: 0 / 1.395 GB, free: 26.09 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.517e-05/1.034, allocations: 329.2 kB / 1.395 GB, free: 25.77 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.032e-05/1.034, allocations: 33.2 kB / 1.395 GB, free: 25.77 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.423e-05/1.034, allocations: 91.92 kB / 1.395 GB, free: 25.68 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.53e-05/1.034, allocations: 55 kB / 1.395 GB, free: 25.67 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/1.034, allocations: 0 / 1.395 GB, free: 25.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002312/1.034, allocations: 164.8 kB / 1.395 GB, free: 25.59 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/1.034, allocations: 7.625 kB / 1.395 GB, free: 25.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/1.034, allocations: 0 / 1.395 GB, free: 25.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001458/1.035, allocations: 27.19 kB / 1.395 GB, free: 25.58 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/1.035, allocations: 27.48 kB / 1.395 GB, free: 25.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008252/1.035, allocations: 1.273 MB / 1.397 GB, free: 24.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001169/1.036, allocations: 19.69 kB / 1.397 GB, free: 24.31 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/1.036, allocations: 7.531 kB / 1.397 GB, free: 24.31 MB / 0.8386 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 7.678e-05/1.036, allocations: 105.1 kB / 1.397 GB, free: 24.2 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001779/1.036, allocations: 106.4 kB / 1.397 GB, free: 24.15 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.247e-05/1.036, allocations: 15.45 kB / 1.397 GB, free: 24.14 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.845e-05/1.036, allocations: 20.33 kB / 1.397 GB, free: 24.13 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/1.036, allocations: 3.906 kB / 1.397 GB, free: 24.13 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/1.036, allocations: 0 / 1.397 GB, free: 24.13 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/1.036, allocations: 0 / 1.397 GB, free: 24.13 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000373/1.036, allocations: 404.3 kB / 1.397 GB, free: 23.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/1.036, allocations: 4 kB / 1.397 GB, free: 23.8 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.812e-05/1.036, allocations: 7.688 kB / 1.397 GB, free: 23.8 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.061e-05/1.037, allocations: 23.41 kB / 1.397 GB, free: 23.79 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/1.037, allocations: 96 / 1.397 GB, free: 23.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000703/1.037, allocations: 1.263 MB / 1.399 GB, free: 22.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/1.037, allocations: 0 / 1.399 GB, free: 22.55 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001743/1.037, allocations: 205.9 kB / 1.399 GB, free: 22.39 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.379e-05/1.038, allocations: 88.91 kB / 1.399 GB, free: 22.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.753e-05/1.038, allocations: 4 kB / 1.399 GB, free: 22.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/1.038, allocations: 3.875 kB / 1.399 GB, free: 22.28 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.912e-05/1.038, allocations: 15.31 kB / 1.399 GB, free: 22.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/1.038, allocations: 0 / 1.399 GB, free: 22.27 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.012e-05/1.038, allocations: 122.6 kB / 1.399 GB, free: 22.2 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.038, allocations: 3.938 kB / 1.399 GB, free: 22.19 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003113/1.038, allocations: 53.91 kB / 1.399 GB, free: 22.18 MB / 0.8386 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.0004391/1.039, allocations: 0.7381 MB / 1.4 GB, free: 21.49 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002916/1.039, allocations: 187.5 kB / 1.4 GB, free: 21.37 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/1.039, allocations: 0 / 1.4 GB, free: 21.37 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001221/1.039, allocations: 139.3 kB / 1.4 GB, free: 21.26 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/1.039, allocations: 22.52 kB / 1.4 GB, free: 21.25 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005782/1.04, allocations: 271.8 kB / 1.4 GB, free: 21.07 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/1.04, allocations: 0.7625 MB / 1.401 GB, free: 20.33 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.481e-05/1.04, allocations: 20.62 kB / 1.401 GB, free: 20.32 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.226e-05/1.04, allocations: 53.83 kB / 1.401 GB, free: 20.3 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.04, allocations: 3.844 kB / 1.401 GB, free: 20.3 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01935/1.06, allocations: 2.705 MB / 1.404 GB, free: 19.04 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/1.06, allocations: 140.5 kB / 1.404 GB, free: 18.84 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.547/2.607, allocations: 0 / 1.404 GB, free: 18.84 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat does not exist to compare? outputFormat=mat