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.18/2.18, allocations: 387.1 MB / 399.7 MB, free: 9.441 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.0009966/0.0009965, allocations: 179.8 kB / 492.3 MB, free: 0.6055 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.456/1.456, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.001082/0.001081, allocations: 98.22 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.585e-05/3.613e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2756, allocations: 142.3 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9187/1.194, allocations: 175.7 MB / 1.384 GB, free: 18.73 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/1.195, allocations: 92.34 kB / 1.384 GB, free: 18.72 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.04762/1.242, allocations: 22.06 MB / 1.406 GB, free: 21.63 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.443e-06/1.242, allocations: 0 / 1.406 GB, free: 21.63 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.378e-05/1.242, allocations: 4 kB / 1.406 GB, free: 21.62 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.001102/1.244, allocations: 0.5517 MB / 1.406 GB, free: 21.05 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/1.244, allocations: 8.031 kB / 1.406 GB, free: 21.05 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001421/1.244, allocations: 68.84 kB / 1.406 GB, free: 20.99 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001166/1.245, allocations: 147.3 kB / 1.406 GB, free: 20.84 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005201/1.245, allocations: 294.4 kB / 1.407 GB, free: 20.55 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/1.246, allocations: 23.59 kB / 1.407 GB, free: 20.53 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.501e-05/1.246, allocations: 27.75 kB / 1.407 GB, free: 20.52 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006225/1.246, allocations: 449.3 kB / 1.407 GB, free: 20.15 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/1.246, allocations: 0 / 1.407 GB, free: 20.15 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.095e-05/1.246, allocations: 18.38 kB / 1.407 GB, free: 20.15 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.125e-05/1.246, allocations: 24.55 kB / 1.407 GB, free: 20.12 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004553/1.247, allocations: 312.9 kB / 1.408 GB, free: 19.91 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001974/1.249, allocations: 2.187 MB / 1.41 GB, free: 17.72 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/1.249, allocations: 247.8 kB / 1.41 GB, free: 17.5 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002111/1.249, allocations: 109.7 kB / 1.41 GB, free: 17.41 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.098e-05/1.249, allocations: 4 kB / 1.41 GB, free: 17.41 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/1.249, allocations: 41.38 kB / 1.41 GB, free: 17.36 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 2.234e-06/1.249, allocations: 0 / 1.41 GB, free: 17.36 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0003638/1.25, allocations: 155.5 kB / 1.41 GB, free: 17.23 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/1.25, allocations: 55.41 kB / 1.41 GB, free: 17.16 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002297/1.25, allocations: 241.6 kB / 1.411 GB, free: 16.96 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/1.25, allocations: 29.7 kB / 1.411 GB, free: 16.92 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000106/1.25, allocations: 205.7 kB / 1.411 GB, free: 16.75 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.701e-05/1.25, allocations: 57.91 kB / 1.411 GB, free: 16.7 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/1.25, allocations: 3.812 kB / 1.411 GB, free: 16.7 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001358/1.25, allocations: 329.9 kB / 1.411 GB, free: 16.38 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.191e-05/1.25, allocations: 58.08 kB / 1.411 GB, free: 16.34 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/1.251, allocations: 149.4 kB / 1.411 GB, free: 16.18 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/1.251, allocations: 78.95 kB / 1.411 GB, free: 16.12 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/1.251, allocations: 0 / 1.411 GB, free: 16.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003867/1.251, allocations: 255.4 kB / 1.412 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/1.251, allocations: 8.062 kB / 1.412 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/1.251, allocations: 7.984 kB / 1.412 GB, free: 15.9 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001868/1.251, allocations: 20.92 kB / 1.412 GB, free: 15.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001845/1.252, allocations: 55.16 kB / 1.412 GB, free: 15.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/1.253, allocations: 1.319 MB / 1.413 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/1.253, allocations: 31.34 kB / 1.413 GB, free: 14.4 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/1.253, allocations: 11.98 kB / 1.413 GB, free: 14.39 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.0001104/1.253, allocations: 120.6 kB / 1.413 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.837e-05/1.253, allocations: 23.72 kB / 1.413 GB, free: 14.25 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.644e-05/1.253, allocations: 28.2 kB / 1.413 GB, free: 14.23 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/1.253, allocations: 4 kB / 1.413 GB, free: 14.23 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/1.253, allocations: 4.031 kB / 1.413 GB, free: 14.23 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/1.253, allocations: 7.891 kB / 1.413 GB, free: 14.22 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009379/1.254, allocations: 0.7057 MB / 1.414 GB, free: 13.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/1.254, allocations: 0 / 1.414 GB, free: 13.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.872e-05/1.254, allocations: 27.92 kB / 1.414 GB, free: 13.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.023e-05/1.254, allocations: 24.91 kB / 1.414 GB, free: 13.47 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/1.254, allocations: 7.188 kB / 1.414 GB, free: 13.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001032/1.255, allocations: 1.306 MB / 1.415 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/1.256, allocations: 8.094 kB / 1.415 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004507/1.256, allocations: 388.4 kB / 1.416 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/1.256, allocations: 112.4 kB / 1.416 GB, free: 11.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/1.256, allocations: 4 kB / 1.416 GB, free: 11.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/1.256, allocations: 19.17 kB / 1.416 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.245e-05/1.256, allocations: 11.94 kB / 1.416 GB, free: 11.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/1.256, allocations: 11.88 kB / 1.416 GB, free: 11.5 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.00019/1.257, allocations: 186 kB / 1.416 GB, free: 11.34 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.5e-07/1.257, allocations: 0 / 1.416 GB, free: 11.34 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004074/1.257, allocations: 78.56 kB / 1.416 GB, free: 11.27 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.0008448/1.258, allocations: 1.332 MB / 1.417 GB, free: 9.918 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000467/1.258, allocations: 274.7 kB / 1.418 GB, free: 9.676 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/1.258, allocations: 4 kB / 1.418 GB, free: 9.672 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002107/1.259, allocations: 177.7 kB / 1.418 GB, free: 9.504 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000366/1.259, allocations: 63.88 kB / 1.418 GB, free: 9.457 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009689/1.26, allocations: 457.6 kB / 1.418 GB, free: 9.008 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004236/1.26, allocations: 0.8013 MB / 1.419 GB, free: 8.188 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000174/1.261, allocations: 38.05 kB / 1.419 GB, free: 8.148 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/1.261, allocations: 83.34 kB / 1.419 GB, free: 8.121 MB / 0.8386 GB Notification: Performance of SimCode: time 5.01e-07/1.261, allocations: 4 kB / 1.419 GB, free: 8.117 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01826/1.279, allocations: 4.896 MB / 1.424 GB, free: 3.379 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001802/1.279, allocations: 165.6 kB / 1.424 GB, free: 3.156 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.754/3.033, allocations: 0 / 1.424 GB, free: 3.156 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