Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.152/2.152, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001018/0.001018, allocations: 188.8 kB / 487.4 MB, free: 5.031 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.414/1.414, allocations: 221.5 MB / 0.7824 GB, free: 0.9141 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009425/0.0009425, allocations: 104.4 kB / 0.9219 GB, free: 2.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.78e-05/1.781e-05, allocations: 0 / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2522, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8086/1.061, allocations: 175.1 MB / 1.377 GB, free: 17.97 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/1.061, allocations: 92.7 kB / 1.377 GB, free: 17.97 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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.04358/1.105, allocations: 21.98 MB / 1.399 GB, free: 25.65 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.282e-06/1.105, allocations: 0 / 1.399 GB, free: 25.65 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.627e-05/1.105, allocations: 3.875 kB / 1.399 GB, free: 25.65 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.0007315/1.105, allocations: 0.5576 MB / 1.399 GB, free: 25.18 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/1.105, allocations: 7.688 kB / 1.399 GB, free: 25.18 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009559/1.106, allocations: 144.2 kB / 1.399 GB, free: 25.12 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/1.107, allocations: 293.7 kB / 1.4 GB, free: 24.87 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/1.107, allocations: 7.844 kB / 1.4 GB, free: 24.87 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.443e-05/1.107, allocations: 19.22 kB / 1.4 GB, free: 24.87 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003691/1.107, allocations: 275.7 kB / 1.4 GB, free: 24.84 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000474/1.108, allocations: 405.4 kB / 1.4 GB, free: 24.66 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/1.108, allocations: 7.875 kB / 1.4 GB, free: 24.65 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.292e-05/1.108, allocations: 0 / 1.4 GB, free: 24.65 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.775e-05/1.108, allocations: 27.23 kB / 1.4 GB, free: 24.64 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/1.109, allocations: 2.123 MB / 1.402 GB, free: 22.77 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002856/1.11, allocations: 240.3 kB / 1.403 GB, free: 22.62 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001998/1.11, allocations: 104.8 kB / 1.403 GB, free: 22.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/1.11, allocations: 3.844 kB / 1.403 GB, free: 22.61 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.677e-05/1.11, allocations: 34.56 kB / 1.403 GB, free: 22.56 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/1.11, allocations: 0 / 1.403 GB, free: 22.56 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0003189/1.11, allocations: 151 kB / 1.403 GB, free: 22.5 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.902e-05/1.11, allocations: 59.19 kB / 1.403 GB, free: 22.43 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/1.111, allocations: 181.8 kB / 1.403 GB, free: 22.33 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/1.111, allocations: 29.69 kB / 1.403 GB, free: 22.29 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/1.111, allocations: 215.3 kB / 1.403 GB, free: 22.12 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/1.111, allocations: 46.52 kB / 1.403 GB, free: 22.09 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.837e-06/1.111, allocations: 4 kB / 1.403 GB, free: 22.09 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001186/1.111, allocations: 328.1 kB / 1.404 GB, free: 21.77 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.043e-05/1.111, allocations: 47.73 kB / 1.404 GB, free: 21.77 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.99e-05/1.111, allocations: 134.1 kB / 1.404 GB, free: 21.65 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.718e-05/1.111, allocations: 77.83 kB / 1.404 GB, free: 21.64 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/1.111, allocations: 4 kB / 1.404 GB, free: 21.63 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003073/1.112, allocations: 227.8 kB / 1.404 GB, free: 21.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/1.112, allocations: 7.844 kB / 1.404 GB, free: 21.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/1.112, allocations: 3.812 kB / 1.404 GB, free: 21.54 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001485/1.112, allocations: 28.59 kB / 1.404 GB, free: 21.53 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/1.112, allocations: 50.2 kB / 1.404 GB, free: 21.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008849/1.113, allocations: 1.263 MB / 1.405 GB, free: 20.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001568/1.113, allocations: 23.38 kB / 1.405 GB, free: 20.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/1.113, allocations: 7.688 kB / 1.405 GB, free: 20.27 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 8.569e-05/1.113, allocations: 113 kB / 1.406 GB, free: 20.15 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002006/1.113, allocations: 154.3 kB / 1.406 GB, free: 20.09 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/1.113, allocations: 15.69 kB / 1.406 GB, free: 20.08 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.13e-05/1.113, allocations: 27.86 kB / 1.406 GB, free: 20.07 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/1.113, allocations: 3.844 kB / 1.406 GB, free: 20.07 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/1.113, allocations: 3.953 kB / 1.406 GB, free: 20.06 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/1.113, allocations: 3.984 kB / 1.406 GB, free: 20.06 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006591/1.114, allocations: 0.6424 MB / 1.406 GB, free: 19.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/1.114, allocations: 3.938 kB / 1.406 GB, free: 19.57 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.498e-05/1.114, allocations: 23.31 kB / 1.406 GB, free: 19.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.735e-05/1.114, allocations: 24.12 kB / 1.406 GB, free: 19.55 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/1.114, allocations: 3.844 kB / 1.406 GB, free: 19.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007306/1.115, allocations: 1.257 MB / 1.408 GB, free: 18.31 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/1.115, allocations: 7.75 kB / 1.408 GB, free: 18.31 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002575/1.115, allocations: 373.3 kB / 1.408 GB, free: 17.98 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.422e-05/1.115, allocations: 107.9 kB / 1.408 GB, free: 17.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.622e-05/1.115, allocations: 3.844 kB / 1.408 GB, free: 17.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/1.116, allocations: 15.64 kB / 1.408 GB, free: 17.86 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.884e-05/1.116, allocations: 18.94 kB / 1.408 GB, free: 17.86 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.248e-06/1.116, allocations: 3.938 kB / 1.408 GB, free: 17.86 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001125/1.116, allocations: 147.9 kB / 1.408 GB, free: 17.77 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.116, allocations: 0 / 1.408 GB, free: 17.77 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003749/1.116, allocations: 73.47 kB / 1.408 GB, free: 17.76 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.0007194/1.117, allocations: 1.311 MB / 1.41 GB, free: 16.5 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000368/1.117, allocations: 249 kB / 1.41 GB, free: 16.38 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/1.117, allocations: 3.875 kB / 1.41 GB, free: 16.38 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001742/1.117, allocations: 165.8 kB / 1.41 GB, free: 16.26 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/1.118, allocations: 46.91 kB / 1.41 GB, free: 16.25 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007604/1.119, allocations: 452.5 kB / 1.411 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003853/1.119, allocations: 0.7981 MB / 1.411 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001376/1.119, allocations: 32.84 kB / 1.411 GB, free: 15.18 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.799e-05/1.119, allocations: 81.94 kB / 1.411 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of SimCode: time 1.714e-06/1.119, allocations: 288 / 1.411 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02229/1.142, allocations: 4.026 MB / 1.415 GB, free: 11.31 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001372/1.142, allocations: 135.4 kB / 1.415 GB, free: 11.12 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.635/2.776, allocations: 0 / 1.415 GB, free: 11.12 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat does not exist to compare? outputFormat=mat