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.504/2.504, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001594/0.001594, allocations: 172 kB / 0.4901 GB, free: 2.281 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.615/1.615, allocations: 223.1 MB / 0.7992 GB, free: 14.74 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.001224/0.001224, allocations: 102.2 kB / 0.9396 GB, free: 1.949 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000419/0.0004187, allocations: 6.656 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3213, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2297/0.5511, allocations: 176.4 MB / 1.402 GB, free: 9.082 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.5514, allocations: 95.94 kB / 1.402 GB, free: 8.988 MB / 0.9011 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.03457/0.586, allocations: 14.96 MB / 1.416 GB, free: 9.812 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.603e-06/0.586, allocations: 0 / 1.416 GB, free: 9.812 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.181e-05/0.5861, allocations: 4 kB / 1.416 GB, free: 9.809 MB / 0.9167 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.0008036/0.5869, allocations: 0.491 MB / 1.417 GB, free: 9.266 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.5869, allocations: 8.562 kB / 1.417 GB, free: 9.258 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.601e-05/0.587, allocations: 58.53 kB / 1.417 GB, free: 9.191 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006548/0.5877, allocations: 83.66 kB / 1.417 GB, free: 9.109 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004209/0.5881, allocations: 239.5 kB / 1.417 GB, free: 8.836 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.5882, allocations: 16.36 kB / 1.417 GB, free: 8.82 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.713e-05/0.5882, allocations: 16 kB / 1.417 GB, free: 8.805 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004781/0.5887, allocations: 291.9 kB / 1.417 GB, free: 8.5 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.5887, allocations: 4 kB / 1.417 GB, free: 8.496 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.5888, allocations: 8 kB / 1.417 GB, free: 8.488 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.711e-05/0.5888, allocations: 16.36 kB / 1.417 GB, free: 8.473 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003335/0.5891, allocations: 208.6 kB / 1.418 GB, free: 8.27 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.5908, allocations: 1.46 MB / 1.419 GB, free: 6.648 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002545/0.5911, allocations: 175.7 kB / 1.419 GB, free: 6.449 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.5911, allocations: 0 / 1.419 GB, free: 6.449 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.5911, allocations: 34.56 kB / 1.419 GB, free: 6.406 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.5911, allocations: 4 kB / 1.419 GB, free: 6.402 MB / 0.9167 GB Notification: Performance of matching and sorting (n=7): time 0.0005044/0.5916, allocations: 231.3 kB / 1.419 GB, free: 6.148 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.5917, allocations: 51.41 kB / 1.42 GB, free: 6.086 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001983/0.5919, allocations: 177.4 kB / 1.42 GB, free: 5.902 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.5919, allocations: 25.7 kB / 1.42 GB, free: 5.871 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.5921, allocations: 179.7 kB / 1.42 GB, free: 5.688 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.343e-05/0.5921, allocations: 27.64 kB / 1.42 GB, free: 5.66 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.334e-05/0.5921, allocations: 4 kB / 1.42 GB, free: 5.656 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.5923, allocations: 322.8 kB / 1.42 GB, free: 5.332 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.621e-05/0.5923, allocations: 35.98 kB / 1.42 GB, free: 5.297 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.5924, allocations: 96.56 kB / 1.42 GB, free: 5.172 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.822e-05/0.5925, allocations: 55.86 kB / 1.42 GB, free: 5.117 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.5925, allocations: 0 / 1.42 GB, free: 5.117 MB / 0.9167 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003071/0.5929, allocations: 190.1 kB / 1.421 GB, free: 4.922 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.5929, allocations: 8 kB / 1.421 GB, free: 4.914 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.5929, allocations: 4 kB / 1.421 GB, free: 4.91 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000177/0.5931, allocations: 28.8 kB / 1.421 GB, free: 4.879 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.5932, allocations: 32.2 kB / 1.421 GB, free: 4.848 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/0.5943, allocations: 1.323 MB / 1.422 GB, free: 3.391 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.5944, allocations: 27.75 kB / 1.422 GB, free: 3.363 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.5945, allocations: 8 kB / 1.422 GB, free: 3.355 MB / 0.9167 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 () * Number of clocked 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 0.0001522/0.5946, allocations: 142.6 kB / 1.422 GB, free: 3.207 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.027e-05/0.5947, allocations: 11.91 kB / 1.422 GB, free: 3.195 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.864e-05/0.5947, allocations: 25.34 kB / 1.422 GB, free: 3.168 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.5947, allocations: 0 / 1.422 GB, free: 3.168 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.5947, allocations: 0 / 1.422 GB, free: 3.168 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.5947, allocations: 0 / 1.422 GB, free: 3.168 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005303/0.5953, allocations: 455.1 kB / 1.423 GB, free: 2.664 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.5953, allocations: 0 / 1.423 GB, free: 2.664 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.875e-05/0.5953, allocations: 4 kB / 1.423 GB, free: 2.66 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.229e-05/0.5954, allocations: 24.84 kB / 1.423 GB, free: 2.633 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.447e-06/0.5954, allocations: 0 / 1.423 GB, free: 2.633 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009845/0.5964, allocations: 1.319 MB / 1.424 GB, free: 1.184 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.5964, allocations: 0 / 1.424 GB, free: 1.184 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002374/0.5967, allocations: 224.8 kB / 1.424 GB, free: 0.9453 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 8.35e-05/0.5968, allocations: 104.8 kB / 1.424 GB, free: 0.8242 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.5968, allocations: 4 kB / 1.424 GB, free: 0.8203 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.5969, allocations: 0 / 1.424 GB, free: 0.8203 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.594e-05/0.597, allocations: 7.984 kB / 1.424 GB, free: 0.8125 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.597, allocations: 4 kB / 1.424 GB, free: 0.8086 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001238/0.5971, allocations: 144.3 kB / 1.424 GB, free: 0.668 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5971, allocations: 4 kB / 1.424 GB, free: 0.6641 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0003266/0.5974, allocations: 51.84 kB / 1.424 GB, free: 0.6133 MB / 0.9167 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 (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.5794/1.177, allocations: 0.7423 MB / 1.425 GB, free: 184.7 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0005538/1.177, allocations: 207.8 kB / 1.425 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/1.177, allocations: 0 / 1.425 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0001524/1.178, allocations: 153.1 kB / 1.426 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000382/1.178, allocations: 30.48 kB / 1.426 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/1.18, allocations: 2.383 MB / 1.428 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/1.18, allocations: 0.7539 MB / 1.429 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 9.898e-05/1.18, allocations: 24.14 kB / 1.429 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.888e-05/1.18, allocations: 53.72 kB / 1.429 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of SimCode: time 6.91e-07/1.18, allocations: 0 / 1.429 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01488/1.195, allocations: 3.35 MB / 1.432 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002698/1.195, allocations: 206.7 kB / 1.432 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.579/2.774, allocations: 0 / 1.432 GB, free: 181.5 MB / 0.9167 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