Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",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.184/2.184, allocations: 387.1 MB / 399.7 MB, free: 9.512 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.00103/0.00103, allocations: 180.9 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.396/1.396, allocations: 221.3 MB / 0.7872 GB, free: 12.84 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.0009405/0.0009407, allocations: 94.89 kB / 0.9267 GB, free: 13.93 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.752e-05/2.773e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2413, allocations: 142.3 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8496/1.091, allocations: 166.3 MB / 1.375 GB, free: 18.64 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002003/1.091, allocations: 78.19 kB / 1.375 GB, free: 18.64 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);. Notification: Performance of FrontEnd - DAE generated: time 0.01417/1.105, allocations: 6.396 MB / 1.381 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.082e-06/1.105, allocations: 0 / 1.381 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.405e-05/1.105, allocations: 3.719 kB / 1.381 GB, free: 33.8 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004281/1.106, allocations: 472.4 kB / 1.382 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/1.106, allocations: 7.375 kB / 1.382 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.268e-05/1.106, allocations: 44.91 kB / 1.382 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001901/1.106, allocations: 25.81 kB / 1.382 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001988/1.106, allocations: 213.7 kB / 1.382 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.574e-05/1.106, allocations: 29.73 kB / 1.382 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/1.106, allocations: 14.75 kB / 1.382 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002234/1.107, allocations: 145.8 kB / 1.382 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/1.107, allocations: 0 / 1.382 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/1.107, allocations: 3.25 kB / 1.382 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/1.107, allocations: 8.016 kB / 1.382 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/1.107, allocations: 80.81 kB / 1.382 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006795/1.108, allocations: 0.6349 MB / 1.383 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001833/1.108, allocations: 57.36 kB / 1.383 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.135e-05/1.108, allocations: 19.89 kB / 1.383 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/1.108, allocations: 3.844 kB / 1.383 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001295/1.108, allocations: 132.8 kB / 1.383 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 2.184e-06/1.108, allocations: 0 / 1.383 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002143/1.108, allocations: 126.3 kB / 1.383 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/1.108, allocations: 140.3 kB / 1.383 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/1.108, allocations: 175.1 kB / 1.383 GB, free: 32 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/1.108, allocations: 29.61 kB / 1.383 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.449e-05/1.108, allocations: 140.9 kB / 1.384 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/1.109, allocations: 19.33 kB / 1.384 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.745e-06/1.109, allocations: 3.5 kB / 1.384 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.519e-05/1.109, allocations: 326 kB / 1.384 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.388e-05/1.109, allocations: 30.72 kB / 1.384 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.483e-05/1.109, allocations: 104 kB / 1.384 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.175e-05/1.109, allocations: 104.8 kB / 1.384 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/1.109, allocations: 0 / 1.384 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000238/1.109, allocations: 228.4 kB / 1.384 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/1.109, allocations: 63.36 kB / 1.384 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/1.109, allocations: 7.969 kB / 1.384 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/1.109, allocations: 3.953 kB / 1.384 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/1.109, allocations: 31.23 kB / 1.384 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/1.109, allocations: 7.844 kB / 1.384 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/1.109, allocations: 25.92 kB / 1.384 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/1.109, allocations: 10.31 kB / 1.384 GB, free: 31.12 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,$PRE.voltageControl.ctrl.connected,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.424e-05/1.11, allocations: 147 kB / 1.385 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.102e-05/1.11, allocations: 15.62 kB / 1.385 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.05e-05/1.11, allocations: 21.23 kB / 1.385 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/1.11, allocations: 0 / 1.385 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/1.11, allocations: 3.953 kB / 1.385 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/1.11, allocations: 0 / 1.385 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001234/1.11, allocations: 213.1 kB / 1.385 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/1.11, allocations: 48 / 1.385 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.568e-05/1.11, allocations: 11.8 kB / 1.385 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/1.11, allocations: 0 / 1.385 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/1.11, allocations: 15.16 kB / 1.385 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/1.11, allocations: 0 / 1.385 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/1.11, allocations: 7.922 kB / 1.385 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002398/1.11, allocations: 197.5 kB / 1.385 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.757e-05/1.11, allocations: 84.86 kB / 1.385 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.727e-05/1.11, allocations: 6.656 kB / 1.385 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.419e-05/1.11, allocations: 15.77 kB / 1.385 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.943e-05/1.11, allocations: 11.33 kB / 1.385 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/1.11, allocations: 11.81 kB / 1.385 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.981e-05/1.111, allocations: 129.4 kB / 1.385 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.111, allocations: 0 / 1.385 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002226/1.111, allocations: 30.22 kB / 1.385 GB, free: 30.41 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004835/1.111, allocations: 0.7401 MB / 1.386 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002143/1.111, allocations: 203.4 kB / 1.386 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/1.111, allocations: 0 / 1.386 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.656e-05/1.112, allocations: 97.19 kB / 1.386 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001788/1.112, allocations: 18.83 kB / 1.386 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005342/1.112, allocations: 231.5 kB / 1.387 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/1.113, allocations: 0.7207 MB / 1.387 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.094e-05/1.113, allocations: 20.05 kB / 1.387 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.436e-05/1.113, allocations: 37.45 kB / 1.387 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.113, allocations: 0 / 1.387 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01327/1.126, allocations: 2.657 MB / 1.39 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001379/1.126, allocations: 157.2 kB / 1.39 GB, free: 27.2 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.55/2.676, allocations: 0 / 1.39 GB, free: 27.2 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat does not exist to compare? outputFormat=mat