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.547/2.547, allocations: 390.5 MB / 398 MB, free: 10.94 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.001138/0.001138, allocations: 183.4 kB / 491.2 MB, free: 1.543 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.574/1.574, allocations: 221.5 MB / 0.7868 GB, free: 13.26 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.0009303/0.0009303, allocations: 87.95 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.843e-05/1.845e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2545, allocations: 143 MB / 1.212 GB, free: 39.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.005/1.26, allocations: 175.9 MB / 1.384 GB, free: 17.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/1.26, allocations: 91.16 kB / 1.384 GB, free: 17.11 MB / 0.823 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.04589/1.306, allocations: 21.98 MB / 1.406 GB, free: 21.35 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.667e-06/1.306, allocations: 3.984 kB / 1.406 GB, free: 21.34 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.486e-05/1.306, allocations: 8 kB / 1.406 GB, free: 21.34 MB / 0.8386 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.0009866/1.307, allocations: 0.5582 MB / 1.406 GB, free: 20.76 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.089e-05/1.307, allocations: 12.03 kB / 1.406 GB, free: 20.75 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001093/1.308, allocations: 139.3 kB / 1.406 GB, free: 20.61 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/1.309, allocations: 286.4 kB / 1.407 GB, free: 20.32 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/1.309, allocations: 12 kB / 1.407 GB, free: 20.3 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.06e-05/1.309, allocations: 16 kB / 1.407 GB, free: 20.29 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000409/1.309, allocations: 281.9 kB / 1.407 GB, free: 20.11 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005526/1.31, allocations: 404.1 kB / 1.407 GB, free: 19.77 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/1.31, allocations: 3.938 kB / 1.407 GB, free: 19.76 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.363e-05/1.31, allocations: 4 kB / 1.407 GB, free: 19.76 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.952e-05/1.31, allocations: 23.17 kB / 1.407 GB, free: 19.73 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001852/1.312, allocations: 2.112 MB / 1.409 GB, free: 17.6 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003035/1.312, allocations: 241.8 kB / 1.41 GB, free: 17.39 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/1.312, allocations: 111.8 kB / 1.41 GB, free: 17.3 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/1.313, allocations: 0 / 1.41 GB, free: 17.3 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/1.313, allocations: 34.44 kB / 1.41 GB, free: 17.26 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.132e-06/1.313, allocations: 0 / 1.41 GB, free: 17.26 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0003225/1.313, allocations: 149.3 kB / 1.41 GB, free: 17.12 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.267e-05/1.313, allocations: 55.41 kB / 1.41 GB, free: 17.06 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/1.313, allocations: 186.1 kB / 1.41 GB, free: 16.9 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/1.313, allocations: 25.7 kB / 1.41 GB, free: 16.87 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.235e-05/1.313, allocations: 208.9 kB / 1.41 GB, free: 16.68 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.841e-05/1.313, allocations: 57.38 kB / 1.41 GB, free: 16.63 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.215e-06/1.313, allocations: 0 / 1.41 GB, free: 16.63 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001309/1.313, allocations: 332.8 kB / 1.411 GB, free: 16.31 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.983e-05/1.313, allocations: 46.39 kB / 1.411 GB, free: 16.28 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/1.314, allocations: 136.5 kB / 1.411 GB, free: 16.13 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.86e-05/1.314, allocations: 71.16 kB / 1.411 GB, free: 16.08 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/1.314, allocations: 0 / 1.411 GB, free: 16.08 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003075/1.314, allocations: 235.4 kB / 1.411 GB, free: 15.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/1.314, allocations: 4 kB / 1.411 GB, free: 15.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/1.314, allocations: 4 kB / 1.411 GB, free: 15.87 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001519/1.314, allocations: 32.09 kB / 1.411 GB, free: 15.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/1.314, allocations: 43.17 kB / 1.411 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009198/1.315, allocations: 1.257 MB / 1.413 GB, free: 14.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/1.316, allocations: 31.64 kB / 1.413 GB, free: 14.44 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/1.316, allocations: 15.59 kB / 1.413 GB, free: 14.43 MB / 0.8386 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 0.0001083/1.316, allocations: 118.5 kB / 1.413 GB, free: 14.31 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000204/1.316, allocations: 149.3 kB / 1.413 GB, free: 14.18 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.698e-05/1.316, allocations: 19.81 kB / 1.413 GB, free: 14.16 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.191e-05/1.316, allocations: 24.33 kB / 1.413 GB, free: 14.15 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/1.316, allocations: 11.94 kB / 1.413 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/1.316, allocations: 0 / 1.413 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/1.316, allocations: 0 / 1.413 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006617/1.317, allocations: 0.6369 MB / 1.414 GB, free: 13.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/1.317, allocations: 12.17 kB / 1.414 GB, free: 13.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.379e-05/1.317, allocations: 24 kB / 1.414 GB, free: 13.47 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.728e-05/1.317, allocations: 24.22 kB / 1.414 GB, free: 13.45 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/1.317, allocations: 4 kB / 1.414 GB, free: 13.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009631/1.318, allocations: 1.251 MB / 1.415 GB, free: 12.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.967e-06/1.318, allocations: 7.969 kB / 1.415 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004584/1.318, allocations: 371.7 kB / 1.415 GB, free: 11.72 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001223/1.318, allocations: 109.2 kB / 1.415 GB, free: 11.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.402e-05/1.318, allocations: 4 kB / 1.415 GB, free: 11.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/1.319, allocations: 11.98 kB / 1.415 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.691e-05/1.319, allocations: 15.56 kB / 1.415 GB, free: 11.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/1.319, allocations: 8 kB / 1.415 GB, free: 11.57 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001465/1.319, allocations: 150.4 kB / 1.415 GB, free: 11.45 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.71e-07/1.319, allocations: 0 / 1.415 GB, free: 11.45 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004291/1.319, allocations: 75.69 kB / 1.416 GB, free: 11.37 MB / 0.8386 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.001021/1.32, allocations: 1.309 MB / 1.417 GB, free: 10.03 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004823/1.321, allocations: 248.5 kB / 1.417 GB, free: 9.812 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.321, allocations: 0 / 1.417 GB, free: 9.812 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.00021/1.321, allocations: 164.2 kB / 1.417 GB, free: 9.66 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003811/1.321, allocations: 49.19 kB / 1.417 GB, free: 9.621 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009574/1.322, allocations: 454.3 kB / 1.418 GB, free: 9.164 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/1.323, allocations: 0.8 MB / 1.418 GB, free: 8.344 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001574/1.323, allocations: 34.06 kB / 1.418 GB, free: 8.312 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/1.323, allocations: 76.53 kB / 1.419 GB, free: 8.289 MB / 0.8386 GB Notification: Performance of SimCode: time 7.21e-07/1.323, allocations: 4 kB / 1.419 GB, free: 8.285 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/1.348, allocations: 4.016 MB / 1.422 GB, free: 4.309 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000228/1.349, allocations: 142.6 kB / 1.423 GB, free: 4.113 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/3.199, allocations: 0 / 1.423 GB, free: 4.113 MB / 0.8386 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