Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource",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.275/2.275, allocations: 387.4 MB / 394.9 MB, free: 13.32 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.0009975/0.0009973, allocations: 184.9 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.474/1.474, allocations: 221.5 MB / 0.7824 GB, free: 1.012 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.0008242/0.0008244, allocations: 91.95 kB / 0.9219 GB, free: 2.258 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.178e-05/2.181e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2539, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8493/1.103, allocations: 176.1 MB / 1.378 GB, free: 18.27 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/1.104, allocations: 94.91 kB / 1.378 GB, free: 18.27 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.03005/1.134, allocations: 15.19 MB / 1.393 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.643e-06/1.134, allocations: 0 / 1.393 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.538e-05/1.134, allocations: 3.844 kB / 1.393 GB, free: 28.59 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006494/1.134, allocations: 491.2 kB / 1.393 GB, free: 28.15 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/1.134, allocations: 11.34 kB / 1.393 GB, free: 28.15 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005982/1.135, allocations: 85.61 kB / 1.393 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002775/1.135, allocations: 259.5 kB / 1.394 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/1.135, allocations: 7.781 kB / 1.394 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.898e-05/1.135, allocations: 11.53 kB / 1.394 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002562/1.136, allocations: 170.9 kB / 1.394 GB, free: 27.86 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003196/1.136, allocations: 277.7 kB / 1.394 GB, free: 27.73 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/1.136, allocations: 3.938 kB / 1.394 GB, free: 27.73 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.313e-05/1.136, allocations: 0 / 1.394 GB, free: 27.73 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.595e-05/1.136, allocations: 12.16 kB / 1.394 GB, free: 27.73 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/1.137, allocations: 1.436 MB / 1.396 GB, free: 26.43 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003154/1.137, allocations: 192.3 kB / 1.396 GB, free: 26.3 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.195e-05/1.138, allocations: 30.23 kB / 1.396 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/1.138, allocations: 3.938 kB / 1.396 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.803e-05/1.138, allocations: 42.11 kB / 1.396 GB, free: 26.24 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.273e-06/1.138, allocations: 0 / 1.396 GB, free: 26.24 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002502/1.138, allocations: 104.1 kB / 1.396 GB, free: 26.19 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.754e-05/1.138, allocations: 59.22 kB / 1.396 GB, free: 26.12 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/1.138, allocations: 163.7 kB / 1.396 GB, free: 26.02 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/1.138, allocations: 25.7 kB / 1.396 GB, free: 25.98 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.469e-05/1.138, allocations: 179.2 kB / 1.396 GB, free: 25.84 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/1.138, allocations: 31.02 kB / 1.396 GB, free: 25.82 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.414e-06/1.138, allocations: 0 / 1.396 GB, free: 25.82 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.835e-05/1.138, allocations: 329.1 kB / 1.397 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.258e-05/1.138, allocations: 37.02 kB / 1.397 GB, free: 25.49 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.556e-05/1.138, allocations: 99.62 kB / 1.397 GB, free: 25.4 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.813e-05/1.139, allocations: 57.03 kB / 1.397 GB, free: 25.39 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/1.139, allocations: 0 / 1.397 GB, free: 25.39 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002298/1.139, allocations: 164.7 kB / 1.397 GB, free: 25.32 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/1.139, allocations: 11.67 kB / 1.397 GB, free: 25.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/1.139, allocations: 7.984 kB / 1.397 GB, free: 25.31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001422/1.139, allocations: 27.48 kB / 1.397 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/1.139, allocations: 38.77 kB / 1.397 GB, free: 25.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000798/1.14, allocations: 1.259 MB / 1.398 GB, free: 24.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001279/1.14, allocations: 19.47 kB / 1.398 GB, free: 24.03 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/1.14, allocations: 11.8 kB / 1.398 GB, free: 24.03 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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 7.554e-05/1.14, allocations: 108.3 kB / 1.398 GB, free: 23.92 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001693/1.14, allocations: 122.8 kB / 1.399 GB, free: 23.86 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.436e-05/1.14, allocations: 19.58 kB / 1.399 GB, free: 23.84 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.829e-05/1.14, allocations: 20.53 kB / 1.399 GB, free: 23.84 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/1.14, allocations: 0 / 1.399 GB, free: 23.84 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/1.14, allocations: 3.984 kB / 1.399 GB, free: 23.83 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/1.14, allocations: 0 / 1.399 GB, free: 23.83 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004068/1.141, allocations: 419.3 kB / 1.399 GB, free: 23.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/1.141, allocations: 3.984 kB / 1.399 GB, free: 23.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.305e-05/1.141, allocations: 15.69 kB / 1.399 GB, free: 23.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.885e-05/1.141, allocations: 23.94 kB / 1.399 GB, free: 23.49 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/1.141, allocations: 0 / 1.399 GB, free: 23.49 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007121/1.142, allocations: 1.258 MB / 1.4 GB, free: 22.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/1.142, allocations: 0 / 1.4 GB, free: 22.25 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001793/1.142, allocations: 215.6 kB / 1.401 GB, free: 22.09 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.482e-05/1.142, allocations: 99.91 kB / 1.401 GB, free: 21.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/1.142, allocations: 7.984 kB / 1.401 GB, free: 21.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/1.142, allocations: 3.906 kB / 1.401 GB, free: 21.97 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.869e-05/1.142, allocations: 7.609 kB / 1.401 GB, free: 21.97 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/1.142, allocations: 3.656 kB / 1.401 GB, free: 21.97 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.844e-05/1.142, allocations: 134.9 kB / 1.401 GB, free: 21.89 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.142, allocations: 0 / 1.401 GB, free: 21.89 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003028/1.143, allocations: 50.47 kB / 1.401 GB, free: 21.88 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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.0004418/1.143, allocations: 0.7455 MB / 1.402 GB, free: 21.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003214/1.143, allocations: 206.9 kB / 1.402 GB, free: 21.06 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/1.143, allocations: 4.125 kB / 1.402 GB, free: 21.06 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001453/1.144, allocations: 142.6 kB / 1.402 GB, free: 20.95 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/1.144, allocations: 30.12 kB / 1.402 GB, free: 20.94 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00054/1.144, allocations: 298.7 kB / 1.402 GB, free: 20.74 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/1.145, allocations: 0.764 MB / 1.403 GB, free: 20 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.576e-05/1.145, allocations: 21.23 kB / 1.403 GB, free: 20 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.366e-05/1.145, allocations: 61.47 kB / 1.403 GB, free: 19.98 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.145, allocations: 192 / 1.403 GB, free: 19.98 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01857/1.163, allocations: 3 MB / 1.406 GB, free: 18.57 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001301/1.164, allocations: 156.1 kB / 1.406 GB, free: 18.37 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.637/2.801, allocations: 0 / 1.406 GB, free: 18.37 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource.fmu > Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat does not exist to compare? outputFormat=mat