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.372/2.372, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.001432/0.001432, allocations: 180.8 kB / 496.1 MB, free: 12.87 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.682/1.682, allocations: 221.3 MB / 0.7915 GB, free: 5.418 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.001024/0.001024, allocations: 91.95 kB / 0.9317 GB, free: 5.727 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.107e-05/4.127e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3355, allocations: 143 MB / 1.219 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.101/1.437, allocations: 178.2 MB / 1.393 GB, free: 9.988 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/1.437, allocations: 86.92 kB / 1.393 GB, free: 9.945 MB / 0.8542 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.05955/1.497, allocations: 23.75 MB / 1.416 GB, free: 6.148 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.753e-06/1.497, allocations: 0 / 1.416 GB, free: 6.148 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.483e-05/1.497, allocations: 12.12 kB / 1.416 GB, free: 6.137 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001145/1.498, allocations: 0.6002 MB / 1.417 GB, free: 5.516 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/1.498, allocations: 8.031 kB / 1.417 GB, free: 5.508 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.266e-05/1.498, allocations: 67.34 kB / 1.417 GB, free: 5.449 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00073/1.499, allocations: 95.5 kB / 1.417 GB, free: 5.355 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004592/1.499, allocations: 298.6 kB / 1.417 GB, free: 5.047 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.16e-05/1.5, allocations: 27.69 kB / 1.417 GB, free: 5.027 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.82e-05/1.5, allocations: 26.88 kB / 1.417 GB, free: 5.008 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007036/1.5, allocations: 439.1 kB / 1.418 GB, free: 4.66 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/1.5, allocations: 7.984 kB / 1.418 GB, free: 4.652 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.083e-05/1.5, allocations: 22.41 kB / 1.418 GB, free: 4.641 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.378e-05/1.5, allocations: 28.72 kB / 1.418 GB, free: 4.613 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004853/1.501, allocations: 318 kB / 1.418 GB, free: 4.398 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002449/1.503, allocations: 2.048 MB / 1.42 GB, free: 2.348 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005048/1.504, allocations: 182.5 kB / 1.42 GB, free: 2.207 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003017/1.504, allocations: 144.5 kB / 1.42 GB, free: 2.098 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/1.504, allocations: 4 kB / 1.42 GB, free: 2.094 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/1.504, allocations: 37.88 kB / 1.42 GB, free: 2.051 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=18): time 2.825e-06/1.504, allocations: 0 / 1.42 GB, free: 2.051 MB / 0.8698 GB Notification: Performance of matching and sorting (n=18): time 0.000502/1.505, allocations: 196.1 kB / 1.421 GB, free: 1.887 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/1.505, allocations: 63.25 kB / 1.421 GB, free: 1.816 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/1.505, allocations: 227.2 kB / 1.421 GB, free: 1.621 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/1.505, allocations: 29.7 kB / 1.421 GB, free: 1.586 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/1.505, allocations: 215.7 kB / 1.421 GB, free: 1.398 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.927e-05/1.505, allocations: 68.97 kB / 1.421 GB, free: 1.34 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.099e-05/1.505, allocations: 2.938 kB / 1.421 GB, free: 1.34 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0002018/1.506, allocations: 332.1 kB / 1.421 GB, free: 1.016 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/1.506, allocations: 67.17 kB / 1.422 GB, free: 0.9727 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/1.506, allocations: 173.6 kB / 1.422 GB, free: 0.7773 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001546/1.506, allocations: 103.7 kB / 1.422 GB, free: 0.7031 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/1.506, allocations: 0 / 1.422 GB, free: 0.7031 MB / 0.8698 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004889/1.507, allocations: 307.8 kB / 1.422 GB, free: 460 kB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006795/1.507, allocations: 1.393 MB / 1.423 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/1.507, allocations: 4 kB / 1.423 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001828/1.508, allocations: 28.78 kB / 1.423 GB, free: 14.94 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/1.508, allocations: 75.89 kB / 1.424 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004507/1.508, allocations: 0.5533 MB / 1.424 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/1.509, allocations: 43.61 kB / 1.424 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.778e-05/1.509, allocations: 19.16 kB / 1.424 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/1.509, allocations: 4 kB / 1.424 GB, free: 14.24 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003563/1.509, allocations: 227.5 kB / 1.424 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/1.509, allocations: 4.469 kB / 1.424 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.372e-06/1.509, allocations: 8 kB / 1.424 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/1.509, allocations: 75.89 kB / 1.424 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/1.509, allocations: 7.938 kB / 1.424 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002218/1.51, allocations: 46.92 kB / 1.424 GB, free: 13.94 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/1.51, allocations: 15.95 kB / 1.425 GB, free: 13.93 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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.000121/1.51, allocations: 119.9 kB / 1.425 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.408e-05/1.51, allocations: 27.09 kB / 1.425 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.851e-05/1.51, allocations: 32.02 kB / 1.425 GB, free: 13.76 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/1.51, allocations: 0 / 1.425 GB, free: 13.76 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/1.51, allocations: 4 kB / 1.425 GB, free: 13.76 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/1.51, allocations: 3.984 kB / 1.425 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/1.511, allocations: 0.7037 MB / 1.425 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/1.511, allocations: 0 / 1.425 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002013/1.511, allocations: 47.16 kB / 1.425 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001058/1.511, allocations: 36.2 kB / 1.425 GB, free: 13 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/1.511, allocations: 3.953 kB / 1.425 GB, free: 13 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/1.513, allocations: 1.313 MB / 1.427 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.513, allocations: 3.938 kB / 1.427 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004495/1.513, allocations: 348.6 kB / 1.427 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000135/1.513, allocations: 116.4 kB / 1.427 GB, free: 11.15 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.963e-05/1.513, allocations: 7.422 kB / 1.427 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001925/1.513, allocations: 19.98 kB / 1.427 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.666e-05/1.513, allocations: 11.05 kB / 1.427 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/1.514, allocations: 15.12 kB / 1.427 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001919/1.514, allocations: 181.9 kB / 1.427 GB, free: 10.96 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.7e-07/1.514, allocations: 0 / 1.427 GB, free: 10.96 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0005721/1.514, allocations: 148.2 kB / 1.428 GB, free: 10.82 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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.0008789/1.515, allocations: 1.011 MB / 1.429 GB, free: 9.82 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0006128/1.516, allocations: 318.3 kB / 1.429 GB, free: 9.582 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.516, allocations: 0 / 1.429 GB, free: 9.582 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002888/1.516, allocations: 189.2 kB / 1.429 GB, free: 9.406 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004147/1.517, allocations: 65.08 kB / 1.429 GB, free: 9.363 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/1.518, allocations: 466 kB / 1.43 GB, free: 8.918 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/1.518, allocations: 0.8102 MB / 1.43 GB, free: 8.082 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0003244/1.518, allocations: 85.97 kB / 1.43 GB, free: 8 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/1.519, allocations: 84.47 kB / 1.43 GB, free: 7.977 MB / 0.8855 GB Notification: Performance of SimCode: time 6.92e-07/1.519, allocations: 0 / 1.43 GB, free: 7.977 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/1.54, allocations: 5.854 MB / 1.436 GB, free: 2.324 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/1.54, allocations: 188.9 kB / 1.436 GB, free: 2.098 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.017/3.557, allocations: 4.062 kB / 1.436 GB, free: 2.094 MB / 0.8855 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