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.153/2.153, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001221/0.001221, allocations: 176.9 kB / 487.4 MB, free: 4.996 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.457/1.457, allocations: 221.5 MB / 0.7824 GB, free: 0.918 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.001173/0.001173, allocations: 103.8 kB / 0.9219 GB, free: 2.141 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.718e-05/1.713e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2318, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8328/1.065, allocations: 165.6 MB / 1.368 GB, free: 17.93 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/1.065, allocations: 72.33 kB / 1.368 GB, free: 17.93 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.01392/1.079, allocations: 6.375 MB / 1.374 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.843e-06/1.079, allocations: 0 / 1.374 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.223e-05/1.079, allocations: 3.844 kB / 1.374 GB, free: 33.11 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.0004377/1.079, allocations: 459.4 kB / 1.374 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/1.079, allocations: 11.69 kB / 1.375 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002235/1.08, allocations: 24.83 kB / 1.375 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001959/1.08, allocations: 216.8 kB / 1.375 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.642e-05/1.08, allocations: 37.27 kB / 1.375 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.494e-05/1.08, allocations: 3.688 kB / 1.375 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001391/1.08, allocations: 68.67 kB / 1.375 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001802/1.08, allocations: 129.1 kB / 1.375 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/1.08, allocations: 0 / 1.375 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/1.08, allocations: 0 / 1.375 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/1.08, allocations: 10.56 kB / 1.375 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006616/1.081, allocations: 0.5963 MB / 1.376 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/1.081, allocations: 50.89 kB / 1.376 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.129e-05/1.081, allocations: 30.39 kB / 1.376 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/1.081, allocations: 7.406 kB / 1.376 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001372/1.081, allocations: 133.3 kB / 1.376 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.794e-06/1.081, allocations: 0 / 1.376 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002052/1.082, allocations: 81.05 kB / 1.376 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/1.082, allocations: 143.3 kB / 1.376 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001547/1.082, allocations: 160.5 kB / 1.376 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/1.082, allocations: 29.58 kB / 1.376 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.432e-05/1.082, allocations: 138 kB / 1.376 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.167e-05/1.082, allocations: 18.45 kB / 1.376 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.195e-06/1.082, allocations: 0 / 1.376 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001456/1.082, allocations: 329.3 kB / 1.377 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.674e-05/1.082, allocations: 23.88 kB / 1.377 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.191e-05/1.082, allocations: 112.4 kB / 1.377 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.978e-05/1.082, allocations: 36.81 kB / 1.377 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/1.082, allocations: 0 / 1.377 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001994/1.083, allocations: 150.1 kB / 1.377 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.901e-05/1.083, allocations: 70.08 kB / 1.377 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/1.083, allocations: 3.844 kB / 1.377 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/1.083, allocations: 3.906 kB / 1.377 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/1.083, allocations: 28.89 kB / 1.377 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/1.083, allocations: 7.875 kB / 1.377 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/1.083, allocations: 26.23 kB / 1.377 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/1.083, allocations: 7.75 kB / 1.377 GB, free: 30.73 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 9.724e-05/1.083, allocations: 150.2 kB / 1.377 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001399/1.083, allocations: 111.3 kB / 1.377 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.747e-05/1.083, allocations: 11.56 kB / 1.377 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.218e-05/1.083, allocations: 12.83 kB / 1.377 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/1.083, allocations: 0 / 1.377 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/1.083, allocations: 3.953 kB / 1.377 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/1.083, allocations: 4.078 kB / 1.377 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/1.083, allocations: 184.3 kB / 1.378 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/1.083, allocations: 3.047 kB / 1.378 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.782e-05/1.084, allocations: 11.66 kB / 1.378 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/1.084, allocations: 0 / 1.378 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/1.084, allocations: 5.609 kB / 1.378 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/1.084, allocations: 0 / 1.378 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.084, allocations: 3.938 kB / 1.378 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002166/1.084, allocations: 166.5 kB / 1.378 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.467e-05/1.084, allocations: 84.39 kB / 1.378 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.691e-05/1.084, allocations: 3.969 kB / 1.378 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.192e-05/1.084, allocations: 14.89 kB / 1.378 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-05/1.084, allocations: 9.734 kB / 1.378 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/1.084, allocations: 3.844 kB / 1.378 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.002e-05/1.084, allocations: 121.6 kB / 1.378 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.084, allocations: 3.969 kB / 1.378 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002517/1.084, allocations: 27 kB / 1.378 GB, free: 30.09 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.0004403/1.085, allocations: 0.6996 MB / 1.379 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000187/1.085, allocations: 193.2 kB / 1.379 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/1.085, allocations: 0 / 1.379 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.269e-05/1.085, allocations: 93.69 kB / 1.379 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001768/1.085, allocations: 23.75 kB / 1.379 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000561/1.086, allocations: 227.2 kB / 1.379 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/1.086, allocations: 0.7172 MB / 1.38 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.462e-05/1.086, allocations: 25.16 kB / 1.38 GB, free: 28.44 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.435e-05/1.086, allocations: 35.89 kB / 1.38 GB, free: 28.43 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/1.086, allocations: 0 / 1.38 GB, free: 28.43 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01893/1.105, allocations: 2.273 MB / 1.382 GB, free: 28.29 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/1.105, allocations: 142.3 kB / 1.382 GB, free: 28.1 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/2.729, allocations: 0 / 1.382 GB, free: 28.1 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