Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.225/2.225, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001126/0.001126, allocations: 180 kB / 0.4901 GB, free: 2.238 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.625/1.625, allocations: 223.1 MB / 0.7992 GB, free: 14.66 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.001143/0.001142, allocations: 108.1 kB / 0.9396 GB, free: 1.848 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004504/0.0004503, allocations: 18.98 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3407, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2155/0.5563, allocations: 167.1 MB / 1.392 GB, free: 2.238 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004085/0.5568, allocations: 75.97 kB / 1.393 GB, free: 2.164 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.01787/0.5747, allocations: 6.45 MB / 1.399 GB, free: 11.64 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.593e-06/0.5747, allocations: 0 / 1.399 GB, free: 11.64 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 1.852e-05/0.5747, allocations: 4 kB / 1.399 GB, free: 11.63 MB / 0.9011 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.0007972/0.5755, allocations: 474.4 kB / 1.399 GB, free: 11.11 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.5756, allocations: 12.5 kB / 1.399 GB, free: 11.09 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.834e-05/0.5757, allocations: 46.55 kB / 1.399 GB, free: 11.04 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000239/0.5759, allocations: 31.75 kB / 1.399 GB, free: 11.01 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003429/0.5763, allocations: 203.9 kB / 1.4 GB, free: 10.77 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.187e-05/0.5764, allocations: 45.81 kB / 1.4 GB, free: 10.72 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.65e-05/0.5764, allocations: 12 kB / 1.4 GB, free: 10.71 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003364/0.5768, allocations: 148.9 kB / 1.4 GB, free: 10.55 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.5768, allocations: 0 / 1.4 GB, free: 10.55 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.5768, allocations: 7.953 kB / 1.4 GB, free: 10.54 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.927e-05/0.5768, allocations: 12.16 kB / 1.4 GB, free: 10.53 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002297/0.5771, allocations: 96.45 kB / 1.4 GB, free: 10.43 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.5781, allocations: 0.63 MB / 1.401 GB, free: 9.742 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/0.5785, allocations: 58.56 kB / 1.401 GB, free: 9.676 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.5785, allocations: 0 / 1.401 GB, free: 9.676 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000291/0.5788, allocations: 142.9 kB / 1.401 GB, free: 9.512 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=7): time 1.963e-06/0.5788, allocations: 0 / 1.401 GB, free: 9.512 MB / 0.9011 GB Notification: Performance of matching and sorting (n=7): time 0.0005606/0.5794, allocations: 252.2 kB / 1.401 GB, free: 9.234 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.5795, allocations: 132.5 kB / 1.401 GB, free: 9.074 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002143/0.5797, allocations: 170.2 kB / 1.401 GB, free: 8.902 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 3.44e-05/0.5798, allocations: 33.7 kB / 1.401 GB, free: 8.863 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.5799, allocations: 143.7 kB / 1.401 GB, free: 8.715 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 3.003e-05/0.5799, allocations: 19.8 kB / 1.401 GB, free: 8.695 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-06/0.58, allocations: 4 kB / 1.401 GB, free: 8.691 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001829/0.5801, allocations: 322.8 kB / 1.402 GB, free: 8.367 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.5803, allocations: 39.97 kB / 1.402 GB, free: 8.328 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001554/0.5804, allocations: 109.4 kB / 1.402 GB, free: 8.188 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001749/0.5806, allocations: 103.4 kB / 1.402 GB, free: 8.074 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.5806, allocations: 0 / 1.402 GB, free: 8.074 MB / 0.9011 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000456/0.5811, allocations: 248.8 kB / 1.402 GB, free: 7.812 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 7.417e-05/0.5812, allocations: 67.33 kB / 1.402 GB, free: 7.734 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.5812, allocations: 4 kB / 1.402 GB, free: 7.73 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.525e-05/0.5812, allocations: 7.953 kB / 1.402 GB, free: 7.723 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.5814, allocations: 27.98 kB / 1.402 GB, free: 7.695 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.5814, allocations: 7.938 kB / 1.402 GB, free: 7.688 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.5816, allocations: 27.83 kB / 1.402 GB, free: 7.66 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/0.5816, allocations: 16.38 kB / 1.402 GB, free: 7.645 MB / 0.9011 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 () * Number of clocked 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 0.0001914/0.5818, allocations: 165 kB / 1.403 GB, free: 7.469 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.92e-05/0.5818, allocations: 7.906 kB / 1.403 GB, free: 7.461 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.248e-05/0.5819, allocations: 13.41 kB / 1.403 GB, free: 7.445 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/0.5819, allocations: 7.953 kB / 1.403 GB, free: 7.438 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.5819, allocations: 0 / 1.403 GB, free: 7.438 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.5819, allocations: 0 / 1.403 GB, free: 7.438 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002405/0.5822, allocations: 213.5 kB / 1.403 GB, free: 7.18 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.5822, allocations: 0 / 1.403 GB, free: 7.18 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.947e-05/0.5823, allocations: 19.92 kB / 1.403 GB, free: 7.16 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.5823, allocations: 0 / 1.403 GB, free: 7.16 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.5823, allocations: 4 kB / 1.403 GB, free: 7.156 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.5823, allocations: 0 / 1.403 GB, free: 7.156 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.5823, allocations: 3.953 kB / 1.403 GB, free: 7.152 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004535/0.5828, allocations: 226.5 kB / 1.403 GB, free: 6.906 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 7.289e-05/0.5829, allocations: 88.95 kB / 1.403 GB, free: 6.801 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.122e-05/0.5829, allocations: 4 kB / 1.403 GB, free: 6.797 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.55e-05/0.583, allocations: 11.98 kB / 1.403 GB, free: 6.785 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.819e-05/0.5831, allocations: 11.98 kB / 1.403 GB, free: 6.773 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.808e-06/0.5831, allocations: 3.953 kB / 1.403 GB, free: 6.77 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001388/0.5833, allocations: 128.3 kB / 1.403 GB, free: 6.645 MB / 0.9011 GB Notification: Performance of sort global known variables: time 4.01e-07/0.5833, allocations: 0 / 1.403 GB, free: 6.645 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0002861/0.5836, allocations: 36.06 kB / 1.403 GB, free: 6.609 MB / 0.9011 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) * Number of clocked states: 0 () * 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.0008762/0.5844, allocations: 0.7663 MB / 1.404 GB, free: 5.809 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0003855/0.5848, allocations: 218.7 kB / 1.404 GB, free: 5.57 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5849, allocations: 0 / 1.404 GB, free: 5.57 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.585, allocations: 99.39 kB / 1.404 GB, free: 5.461 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.5852, allocations: 20.61 kB / 1.404 GB, free: 5.441 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.588, allocations: 2.424 MB / 1.407 GB, free: 2.918 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.5885, allocations: 0.7168 MB / 1.407 GB, free: 2.176 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001018/0.5886, allocations: 20.75 kB / 1.407 GB, free: 2.156 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.657e-05/0.5887, allocations: 39.36 kB / 1.407 GB, free: 2.117 MB / 0.9011 GB Notification: Performance of SimCode: time 5.92e-07/0.5887, allocations: 0 / 1.407 GB, free: 2.117 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01767/0.6064, allocations: 2.679 MB / 1.41 GB, free: 15.59 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002164/0.6067, allocations: 204.9 kB / 1.41 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.751/2.358, allocations: 0 / 1.41 GB, free: 15.34 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat does not exist to compare? outputFormat=mat