Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Resistor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",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.529/2.529, allocations: 393.5 MB / 408.4 MB, free: 11.08 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.001112/0.001112, allocations: 195.8 kB / 0.4902 GB, free: 2.301 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.646/1.646, allocations: 223.1 MB / 0.7992 GB, free: 14.75 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.0009607/0.0009607, allocations: 92.28 kB / 0.9396 GB, free: 1.934 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000357/0.0003571, allocations: 10.88 kB / 1.09 GB, free: 216.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2854, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1992/0.4846, allocations: 176.6 MB / 1.402 GB, free: 8.891 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/0.4849, allocations: 95.92 kB / 1.402 GB, free: 8.797 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.04951/0.5344, allocations: 22.23 MB / 1.424 GB, free: 2.258 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.804e-06/0.5345, allocations: 4 kB / 1.424 GB, free: 2.254 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.288e-05/0.5345, allocations: 8 kB / 1.424 GB, free: 2.246 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001053/0.5356, allocations: 0.5807 MB / 1.424 GB, free: 1.617 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.5356, allocations: 8.031 kB / 1.424 GB, free: 1.609 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001331/0.5358, allocations: 82.47 kB / 1.424 GB, free: 1.52 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001096/0.5369, allocations: 139.5 kB / 1.424 GB, free: 1.383 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000556/0.5374, allocations: 294.4 kB / 1.425 GB, free: 1.059 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.747e-05/0.5375, allocations: 16.66 kB / 1.425 GB, free: 1.043 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.379e-05/0.5375, allocations: 28 kB / 1.425 GB, free: 1.016 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000744/0.5383, allocations: 451.6 kB / 1.425 GB, free: 0.5391 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.5383, allocations: 0 / 1.425 GB, free: 0.5391 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.906e-05/0.5384, allocations: 15.98 kB / 1.425 GB, free: 0.5234 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.625e-05/0.5384, allocations: 32.53 kB / 1.425 GB, free: 500 kB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004854/0.5389, allocations: 317.9 kB / 1.425 GB, free: 184 kB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5543/1.093, allocations: 2.183 MB / 1.428 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003414/1.094, allocations: 254.5 kB / 1.428 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/1.094, allocations: 4.125 kB / 1.428 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.821e-05/1.094, allocations: 34.19 kB / 1.428 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=14): time 2.535e-06/1.094, allocations: 0 / 1.428 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14): time 0.0005869/1.094, allocations: 308.4 kB / 1.428 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.566e-05/1.094, allocations: 52.94 kB / 1.428 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000217/1.095, allocations: 241.7 kB / 1.428 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/1.095, allocations: 28.92 kB / 1.428 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 8.299e-05/1.095, allocations: 210 kB / 1.429 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 3.101e-05/1.095, allocations: 51.61 kB / 1.429 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.029e-05/1.095, allocations: 10.53 kB / 1.429 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 6.215e-05/1.095, allocations: 333 kB / 1.429 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.474e-05/1.095, allocations: 58.48 kB / 1.429 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/1.095, allocations: 141.8 kB / 1.429 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/1.095, allocations: 80.42 kB / 1.429 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/1.095, allocations: 1.531 kB / 1.429 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003537/1.095, allocations: 268.7 kB / 1.43 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/1.095, allocations: 10.27 kB / 1.43 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/1.095, allocations: 3 kB / 1.43 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001572/1.096, allocations: 26.16 kB / 1.43 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002029/1.096, allocations: 52.22 kB / 1.43 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009513/1.097, allocations: 1.32 MB / 1.431 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/1.097, allocations: 31.98 kB / 1.431 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/1.097, allocations: 12.81 kB / 1.431 GB, free: 177.5 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (27): * Single equations (assignments): 26 * 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.0001523/1.097, allocations: 165.7 kB / 1.431 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.394e-05/1.097, allocations: 23.5 kB / 1.431 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.743e-05/1.097, allocations: 30.47 kB / 1.431 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/1.097, allocations: 0 / 1.431 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/1.097, allocations: 0 / 1.431 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/1.097, allocations: 5.516 kB / 1.431 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008211/1.098, allocations: 0.6373 MB / 1.432 GB, free: 177 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/1.098, allocations: 3.531 kB / 1.432 GB, free: 177 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/1.098, allocations: 23.58 kB / 1.432 GB, free: 177 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.75e-05/1.098, allocations: 26.33 kB / 1.432 GB, free: 177 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/1.098, allocations: 8.062 kB / 1.432 GB, free: 177 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006541/1.099, allocations: 1.316 MB / 1.433 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/1.099, allocations: 0.9844 kB / 1.433 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002829/1.099, allocations: 357.7 kB / 1.433 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 8.607e-05/1.099, allocations: 116.3 kB / 1.434 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.704e-05/1.099, allocations: 11.52 kB / 1.434 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/1.1, allocations: 9.531 kB / 1.434 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.783e-05/1.1, allocations: 16.73 kB / 1.434 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/1.1, allocations: 3.812 kB / 1.434 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001754/1.1, allocations: 189.1 kB / 1.434 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.01e-07/1.1, allocations: 2.062 kB / 1.434 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.00039/1.1, allocations: 72.39 kB / 1.434 GB, free: 175.3 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (13): * Single equations (assignments): 12 * 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.0006/1.101, allocations: 1.162 MB / 1.435 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0004954/1.101, allocations: 277 kB / 1.435 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/1.101, allocations: 0 / 1.435 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0001934/1.102, allocations: 185.9 kB / 1.435 GB, free: 174 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/1.102, allocations: 58.75 kB / 1.436 GB, free: 174 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002555/1.105, allocations: 3.163 MB / 1.439 GB, free: 171.7 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/1.105, allocations: 0.7995 MB / 1.439 GB, free: 171 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0001945/1.105, allocations: 47.52 kB / 1.439 GB, free: 171 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/1.105, allocations: 84.22 kB / 1.44 GB, free: 171 MB / 0.9167 GB Notification: Performance of SimCode: time 9.72e-07/1.105, allocations: 0 / 1.44 GB, free: 171 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02213/1.127, allocations: 4.847 MB / 1.444 GB, free: 170.7 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/1.128, allocations: 205.5 kB / 1.444 GB, free: 170.4 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.932/3.059, allocations: 0 / 1.444 GB, free: 170.4 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat does not exist to compare? outputFormat=mat