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.386/2.386, allocations: 390.3 MB / 402.8 MB, free: 6.625 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.00129/0.00129, allocations: 184.8 kB / 496.1 MB, free: 12.84 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.658/1.658, allocations: 221.3 MB / 0.7915 GB, free: 5.355 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.001021/0.001021, allocations: 92 kB / 0.9317 GB, free: 5.668 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.654e-05/3.678e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3363, allocations: 143 MB / 1.219 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.091/1.427, allocations: 176.5 MB / 1.391 GB, free: 11.57 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/1.428, allocations: 89.89 kB / 1.391 GB, free: 11.52 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.04924/1.477, allocations: 22.05 MB / 1.413 GB, free: 9.09 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.553e-06/1.477, allocations: 0 / 1.413 GB, free: 9.09 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.103e-05/1.477, allocations: 7.938 kB / 1.413 GB, free: 9.082 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0008476/1.478, allocations: 0.5532 MB / 1.413 GB, free: 8.504 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/1.478, allocations: 8.031 kB / 1.413 GB, free: 8.496 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.33e-05/1.478, allocations: 69.09 kB / 1.413 GB, free: 8.438 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001018/1.479, allocations: 143.3 kB / 1.414 GB, free: 8.297 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004344/1.479, allocations: 292 kB / 1.414 GB, free: 7.996 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/1.479, allocations: 19.84 kB / 1.414 GB, free: 7.984 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.916e-05/1.48, allocations: 34.05 kB / 1.414 GB, free: 7.961 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006594/1.48, allocations: 450.1 kB / 1.414 GB, free: 7.602 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/1.48, allocations: 0 / 1.414 GB, free: 7.602 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.772e-05/1.48, allocations: 18.72 kB / 1.414 GB, free: 7.59 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-05/1.48, allocations: 23.5 kB / 1.414 GB, free: 7.566 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004579/1.481, allocations: 310.6 kB / 1.415 GB, free: 7.355 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/1.483, allocations: 2.187 MB / 1.417 GB, free: 5.148 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003745/1.483, allocations: 253.6 kB / 1.417 GB, free: 4.918 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002313/1.484, allocations: 106.9 kB / 1.417 GB, free: 4.836 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/1.484, allocations: 4 kB / 1.417 GB, free: 4.832 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/1.484, allocations: 38.31 kB / 1.417 GB, free: 4.789 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=14): time 1.944e-06/1.484, allocations: 0 / 1.417 GB, free: 4.789 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14): time 0.000438/1.484, allocations: 159 kB / 1.417 GB, free: 4.652 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/1.484, allocations: 55.41 kB / 1.417 GB, free: 4.586 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/1.484, allocations: 240.6 kB / 1.418 GB, free: 4.391 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/1.484, allocations: 32.77 kB / 1.418 GB, free: 4.355 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/1.484, allocations: 205.2 kB / 1.418 GB, free: 4.18 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.698e-05/1.485, allocations: 54.95 kB / 1.418 GB, free: 4.129 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.707e-06/1.485, allocations: 3.875 kB / 1.418 GB, free: 4.129 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001332/1.485, allocations: 337 kB / 1.418 GB, free: 3.801 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.4e-05/1.485, allocations: 53.27 kB / 1.418 GB, free: 3.766 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/1.485, allocations: 143 kB / 1.418 GB, free: 3.609 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001213/1.485, allocations: 79.66 kB / 1.419 GB, free: 3.555 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/1.485, allocations: 0 / 1.419 GB, free: 3.555 MB / 0.8698 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000381/1.485, allocations: 258.1 kB / 1.419 GB, free: 3.34 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/1.485, allocations: 8.062 kB / 1.419 GB, free: 3.332 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/1.485, allocations: 4 kB / 1.419 GB, free: 3.328 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001768/1.486, allocations: 28.16 kB / 1.419 GB, free: 3.301 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001827/1.486, allocations: 47.3 kB / 1.419 GB, free: 3.258 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/1.487, allocations: 1.324 MB / 1.42 GB, free: 1.852 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/1.487, allocations: 31.06 kB / 1.42 GB, free: 1.824 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/1.487, allocations: 11.31 kB / 1.42 GB, free: 1.816 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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 9.094e-05/1.487, allocations: 119.1 kB / 1.42 GB, free: 1.699 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.808e-05/1.487, allocations: 23.72 kB / 1.42 GB, free: 1.676 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.229e-05/1.487, allocations: 28.27 kB / 1.42 GB, free: 1.66 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/1.487, allocations: 4 kB / 1.42 GB, free: 1.656 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/1.487, allocations: 8.016 kB / 1.42 GB, free: 1.648 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/1.487, allocations: 0 / 1.42 GB, free: 1.648 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009278/1.488, allocations: 0.7076 MB / 1.421 GB, free: 0.9492 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/1.488, allocations: 192 / 1.421 GB, free: 0.9492 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.857e-05/1.488, allocations: 23.98 kB / 1.421 GB, free: 0.9258 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.519e-05/1.489, allocations: 32.03 kB / 1.421 GB, free: 0.8945 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/1.489, allocations: 4.188 kB / 1.421 GB, free: 0.8906 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000927/1.489, allocations: 1.314 MB / 1.422 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/1.489, allocations: 8.094 kB / 1.422 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003693/1.49, allocations: 379.5 kB / 1.423 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/1.49, allocations: 111.5 kB / 1.423 GB, free: 14.96 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/1.49, allocations: 7.984 kB / 1.423 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001601/1.49, allocations: 15.25 kB / 1.423 GB, free: 14.94 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.631e-05/1.49, allocations: 11.94 kB / 1.423 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/1.49, allocations: 11 kB / 1.423 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001679/1.49, allocations: 182.6 kB / 1.423 GB, free: 14.78 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.6e-07/1.49, allocations: 0 / 1.423 GB, free: 14.78 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003711/1.491, allocations: 78.25 kB / 1.423 GB, free: 14.71 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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.0008486/1.492, allocations: 1.34 MB / 1.424 GB, free: 13.35 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0004714/1.492, allocations: 273.8 kB / 1.425 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/1.492, allocations: 0 / 1.425 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001997/1.492, allocations: 173.6 kB / 1.425 GB, free: 12.94 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003524/1.493, allocations: 63.83 kB / 1.425 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008492/1.494, allocations: 453.2 kB / 1.425 GB, free: 12.45 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003979/1.494, allocations: 0.8046 MB / 1.426 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001563/1.494, allocations: 42.03 kB / 1.426 GB, free: 11.58 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/1.494, allocations: 85.89 kB / 1.426 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of SimCode: time 4.91e-07/1.494, allocations: 0 / 1.426 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/1.511, allocations: 4.916 MB / 1.431 GB, free: 6.809 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/1.512, allocations: 174.8 kB / 1.431 GB, free: 6.582 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.889/3.401, allocations: 0 / 1.431 GB, free: 6.582 MB / 0.8855 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