Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad",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.645/2.645, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001418/0.001418, allocations: 187.9 kB / 0.4901 GB, free: 2.223 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.721/1.721, allocations: 223.1 MB / 0.7992 GB, free: 14.72 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.001066/0.001066, allocations: 90.33 kB / 0.9396 GB, free: 1.902 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.000354, allocations: 10.56 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2735, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2127/0.4863, allocations: 178.3 MB / 1.403 GB, free: 7.125 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003191/0.4867, allocations: 95.95 kB / 1.403 GB, free: 7.031 MB / 0.9011 GB [/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/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/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.5715/1.058, allocations: 23.9 MB / 1.427 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.803e-06/1.058, allocations: 0 / 1.427 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.156e-05/1.058, allocations: 9.938 kB / 1.427 GB, free: 182.6 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.000928/1.059, allocations: 0.6219 MB / 1.427 GB, free: 182.1 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/1.059, allocations: 10.34 kB / 1.427 GB, free: 182.1 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.039e-05/1.059, allocations: 69.8 kB / 1.427 GB, free: 182.1 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007006/1.06, allocations: 101.8 kB / 1.428 GB, free: 182.1 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003664/1.06, allocations: 303.9 kB / 1.428 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/1.06, allocations: 18.89 kB / 1.428 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/1.06, allocations: 30.2 kB / 1.428 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006864/1.061, allocations: 481 kB / 1.428 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/1.061, allocations: 5.531 kB / 1.428 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/1.061, allocations: 11.22 kB / 1.428 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.372e-05/1.061, allocations: 34.45 kB / 1.428 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006302/1.062, allocations: 381.2 kB / 1.429 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001882/1.064, allocations: 2.054 MB / 1.431 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005588/1.064, allocations: 229.4 kB / 1.431 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/1.064, allocations: 4.625 kB / 1.431 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/1.064, allocations: 37.56 kB / 1.431 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=18): time 1.753e-06/1.064, allocations: 0 / 1.431 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of matching and sorting (n=18): time 0.001052/1.066, allocations: 461.5 kB / 1.431 GB, free: 180 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.102e-05/1.066, allocations: 56.84 kB / 1.432 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002372/1.066, allocations: 236.8 kB / 1.432 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/1.066, allocations: 31.45 kB / 1.432 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/1.066, allocations: 217.9 kB / 1.432 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 4.324e-05/1.066, allocations: 57.98 kB / 1.432 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.373e-05/1.066, allocations: 6.906 kB / 1.432 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.886e-05/1.066, allocations: 340.3 kB / 1.432 GB, free: 179.3 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002535/1.066, allocations: 103.1 kB / 1.432 GB, free: 179.3 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002961/1.067, allocations: 209.4 kB / 1.433 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002806/1.067, allocations: 139.2 kB / 1.433 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/1.067, allocations: 1.125 kB / 1.433 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007555/1.068, allocations: 376.4 kB / 1.433 GB, free: 179.1 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002194/1.068, allocations: 1.316 MB / 1.434 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/1.068, allocations: 2.5 kB / 1.434 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001837/1.068, allocations: 33.62 kB / 1.434 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003136/1.068, allocations: 74.5 kB / 1.435 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000268/1.069, allocations: 0.5567 MB / 1.435 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002711/1.069, allocations: 45.84 kB / 1.435 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.33e-05/1.069, allocations: 15.33 kB / 1.435 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 8.075e-06/1.069, allocations: 2.062 kB / 1.435 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006292/1.07, allocations: 309.5 kB / 1.435 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/1.07, allocations: 3.406 kB / 1.435 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.143e-06/1.07, allocations: 5.484 kB / 1.435 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002963/1.07, allocations: 75.44 kB / 1.436 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/1.07, allocations: 12.27 kB / 1.436 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002196/1.07, allocations: 47.09 kB / 1.436 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/1.07, allocations: 10.09 kB / 1.436 GB, free: 177.2 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (32): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001795/1.071, allocations: 243.6 kB / 1.436 GB, free: 177 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.15e-05/1.071, allocations: 29.14 kB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.27e-05/1.071, allocations: 34.69 kB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/1.071, allocations: 8.766 kB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.071, allocations: 1.156 kB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/1.071, allocations: 1.125 kB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003917/1.071, allocations: 349.8 kB / 1.436 GB, free: 176.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/1.071, allocations: 1.875 kB / 1.436 GB, free: 176.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/1.071, allocations: 44.41 kB / 1.436 GB, free: 176.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.902e-05/1.071, allocations: 32.62 kB / 1.436 GB, free: 176.7 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/1.071, allocations: 3.062 kB / 1.436 GB, free: 176.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000729/1.072, allocations: 1.328 MB / 1.438 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/1.072, allocations: 1.438 kB / 1.438 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005957/1.073, allocations: 380.8 kB / 1.438 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 9.916e-05/1.073, allocations: 116 kB / 1.438 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.896e-05/1.073, allocations: 4.766 kB / 1.438 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/1.073, allocations: 30.19 kB / 1.438 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.599e-05/1.073, allocations: 13.44 kB / 1.438 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/1.073, allocations: 4.156 kB / 1.438 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001644/1.073, allocations: 180.8 kB / 1.438 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.7e-07/1.073, allocations: 3.281 kB / 1.438 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0005543/1.074, allocations: 141.5 kB / 1.438 GB, free: 175.1 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 (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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007766/1.075, allocations: 0.9167 MB / 1.439 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0009699/1.076, allocations: 424.2 kB / 1.44 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/1.076, allocations: 0 / 1.44 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0003509/1.076, allocations: 236.6 kB / 1.44 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003687/1.077, allocations: 66.19 kB / 1.44 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003174/1.08, allocations: 3.809 MB / 1.444 GB, free: 171.4 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/1.08, allocations: 0.8078 MB / 1.445 GB, free: 170.7 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002789/1.08, allocations: 72.86 kB / 1.445 GB, free: 170.7 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/1.08, allocations: 87.77 kB / 1.445 GB, free: 170.7 MB / 0.9167 GB Notification: Performance of SimCode: time 6.81e-07/1.08, allocations: 0 / 1.445 GB, free: 170.7 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02078/1.101, allocations: 5.517 MB / 1.45 GB, free: 170.4 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001563/1.101, allocations: 210.1 kB / 1.45 GB, free: 170.1 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.838/2.939, allocations: 4.594 kB / 1.45 GB, free: 170.1 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat does not exist to compare? outputFormat=mat