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.188/2.188, allocations: 387.1 MB / 399.7 MB, free: 9.473 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.001007/0.001007, allocations: 176.9 kB / 492.3 MB, free: 0.6016 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.412/1.412, allocations: 221.3 MB / 0.7871 GB, free: 12.91 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.0008397/0.0008397, allocations: 99.39 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.288e-05/4.31e-05, allocations: 0 / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2816, allocations: 142.4 MB / 1.212 GB, free: 38.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8779/1.16, allocations: 176.7 MB / 1.385 GB, free: 18.61 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/1.16, allocations: 90.88 kB / 1.385 GB, free: 18.59 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.02974/1.19, allocations: 15.23 MB / 1.4 GB, free: 26.47 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.393e-06/1.19, allocations: 0 / 1.4 GB, free: 26.47 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.746e-05/1.19, allocations: 4 kB / 1.4 GB, free: 26.46 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.0005974/1.19, allocations: 0.4928 MB / 1.401 GB, free: 25.95 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/1.19, allocations: 8.031 kB / 1.401 GB, free: 25.94 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.18e-05/1.19, allocations: 52.92 kB / 1.401 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006532/1.191, allocations: 83.64 kB / 1.401 GB, free: 25.8 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/1.191, allocations: 255.8 kB / 1.401 GB, free: 25.53 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/1.191, allocations: 16.19 kB / 1.401 GB, free: 25.52 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.037e-05/1.191, allocations: 18.94 kB / 1.401 GB, free: 25.51 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003899/1.192, allocations: 299.8 kB / 1.401 GB, free: 25.26 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/1.192, allocations: 7.922 kB / 1.401 GB, free: 25.25 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.471e-05/1.192, allocations: 7.75 kB / 1.401 GB, free: 25.25 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.784e-05/1.192, allocations: 16.44 kB / 1.401 GB, free: 25.24 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002722/1.192, allocations: 199.1 kB / 1.401 GB, free: 25.1 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/1.193, allocations: 1.492 MB / 1.403 GB, free: 23.57 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000337/1.194, allocations: 188.1 kB / 1.403 GB, free: 23.39 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.287e-05/1.194, allocations: 38.91 kB / 1.403 GB, free: 23.36 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.203e-05/1.194, allocations: 4 kB / 1.403 GB, free: 23.35 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.643e-05/1.194, allocations: 38.06 kB / 1.403 GB, free: 23.31 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/1.194, allocations: 0 / 1.403 GB, free: 23.31 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002641/1.194, allocations: 120.3 kB / 1.403 GB, free: 23.2 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.228e-05/1.194, allocations: 63.11 kB / 1.403 GB, free: 23.13 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/1.194, allocations: 180.2 kB / 1.404 GB, free: 22.97 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/1.194, allocations: 25.7 kB / 1.404 GB, free: 22.94 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/1.194, allocations: 177.1 kB / 1.404 GB, free: 22.78 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.728e-05/1.194, allocations: 31.3 kB / 1.404 GB, free: 22.75 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.063e-06/1.194, allocations: 3.375 kB / 1.404 GB, free: 22.75 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.998e-05/1.194, allocations: 324 kB / 1.404 GB, free: 22.43 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.145e-05/1.195, allocations: 32.44 kB / 1.404 GB, free: 22.41 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.779e-05/1.195, allocations: 108.8 kB / 1.404 GB, free: 22.29 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.941e-05/1.195, allocations: 57.53 kB / 1.404 GB, free: 22.25 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/1.195, allocations: 0 / 1.404 GB, free: 22.25 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002603/1.195, allocations: 194.3 kB / 1.404 GB, free: 22.09 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/1.195, allocations: 8 kB / 1.404 GB, free: 22.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/1.195, allocations: 3.984 kB / 1.404 GB, free: 22.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001396/1.195, allocations: 32.88 kB / 1.404 GB, free: 22.04 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/1.195, allocations: 31.92 kB / 1.404 GB, free: 22.01 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007981/1.196, allocations: 1.323 MB / 1.406 GB, free: 20.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001258/1.196, allocations: 15.84 kB / 1.406 GB, free: 20.59 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/1.196, allocations: 7.688 kB / 1.406 GB, free: 20.59 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.645e-05/1.196, allocations: 112.2 kB / 1.406 GB, free: 20.48 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.688e-05/1.196, allocations: 19.77 kB / 1.406 GB, free: 20.46 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.347e-05/1.196, allocations: 20.95 kB / 1.406 GB, free: 20.44 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/1.196, allocations: 12.03 kB / 1.406 GB, free: 20.43 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/1.196, allocations: 0 / 1.406 GB, free: 20.43 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.614e-06/1.196, allocations: 0 / 1.406 GB, free: 20.43 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004305/1.197, allocations: 474.4 kB / 1.406 GB, free: 19.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/1.197, allocations: 0 / 1.406 GB, free: 19.97 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.228e-05/1.197, allocations: 15.98 kB / 1.406 GB, free: 19.95 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.609e-05/1.197, allocations: 23.66 kB / 1.406 GB, free: 19.93 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/1.197, allocations: 7.938 kB / 1.406 GB, free: 19.93 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006756/1.198, allocations: 1.297 MB / 1.408 GB, free: 18.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/1.198, allocations: 4.031 kB / 1.408 GB, free: 18.54 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001956/1.198, allocations: 216.8 kB / 1.408 GB, free: 18.33 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.328e-05/1.198, allocations: 100.6 kB / 1.408 GB, free: 18.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/1.198, allocations: 3 kB / 1.408 GB, free: 18.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/1.198, allocations: 11.98 kB / 1.408 GB, free: 18.21 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.943e-05/1.198, allocations: 8.078 kB / 1.408 GB, free: 18.2 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/1.198, allocations: 11.44 kB / 1.408 GB, free: 18.19 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001048/1.198, allocations: 152.6 kB / 1.408 GB, free: 18.06 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.198, allocations: 0 / 1.408 GB, free: 18.06 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002879/1.199, allocations: 54.03 kB / 1.408 GB, free: 18.01 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.0004008/1.199, allocations: 0.7536 MB / 1.409 GB, free: 17.26 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003093/1.199, allocations: 218.9 kB / 1.409 GB, free: 17.06 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/1.199, allocations: 0 / 1.409 GB, free: 17.06 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001544/1.2, allocations: 153.2 kB / 1.409 GB, free: 16.91 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002481/1.2, allocations: 38.98 kB / 1.409 GB, free: 16.88 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005152/1.2, allocations: 312.3 kB / 1.41 GB, free: 16.56 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/1.201, allocations: 0.7586 MB / 1.41 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.623e-05/1.201, allocations: 25.3 kB / 1.41 GB, free: 15.76 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.695e-05/1.201, allocations: 62.92 kB / 1.411 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/1.201, allocations: 0 / 1.411 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0142/1.215, allocations: 3.577 MB / 1.414 GB, free: 12.33 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001559/1.215, allocations: 185 kB / 1.414 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.818/3.033, allocations: 1.969 kB / 1.414 GB, free: 12.09 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