Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_VariableLoad",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.166/2.166, allocations: 387.4 MB / 394.9 MB, free: 13.42 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.00123/0.00123, allocations: 180.8 kB / 487.4 MB, free: 5.078 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.442/1.442, allocations: 221.5 MB / 0.7824 GB, free: 0.9297 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.0008808/0.0008811, allocations: 95.86 kB / 0.9219 GB, free: 2.16 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.605e-05/1.606e-05, allocations: 0 / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2387, allocations: 142.4 MB / 1.206 GB, free: 43.82 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8435/1.082, allocations: 176.7 MB / 1.379 GB, free: 18.21 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/1.083, allocations: 92.72 kB / 1.379 GB, free: 18.21 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.04694/1.129, allocations: 23.66 MB / 1.402 GB, free: 24.93 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.313e-06/1.129, allocations: 0 / 1.402 GB, free: 24.93 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.879e-05/1.13, allocations: 7.656 kB / 1.402 GB, free: 24.93 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0008231/1.13, allocations: 0.592 MB / 1.402 GB, free: 24.44 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/1.13, allocations: 11.5 kB / 1.402 GB, free: 24.44 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007156/1.131, allocations: 97.44 kB / 1.403 GB, free: 24.39 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003075/1.131, allocations: 292.7 kB / 1.403 GB, free: 24.14 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/1.131, allocations: 11.69 kB / 1.403 GB, free: 24.14 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.826e-05/1.131, allocations: 15.38 kB / 1.403 GB, free: 24.14 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003778/1.132, allocations: 280.8 kB / 1.403 GB, free: 24.11 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004737/1.132, allocations: 402.6 kB / 1.403 GB, free: 23.94 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/1.132, allocations: 7.875 kB / 1.403 GB, free: 23.93 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.021e-05/1.132, allocations: 3.875 kB / 1.403 GB, free: 23.93 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.81e-05/1.132, allocations: 27.55 kB / 1.404 GB, free: 23.93 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/1.134, allocations: 1.986 MB / 1.405 GB, free: 22.22 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003529/1.134, allocations: 186 kB / 1.406 GB, free: 22.17 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/1.135, allocations: 130 kB / 1.406 GB, free: 22.14 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/1.135, allocations: 3.844 kB / 1.406 GB, free: 22.14 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.539e-05/1.135, allocations: 42.06 kB / 1.406 GB, free: 22.1 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.572e-06/1.135, allocations: 0 / 1.406 GB, free: 22.1 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.0003466/1.135, allocations: 185.8 kB / 1.406 GB, free: 22.02 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.498e-05/1.135, allocations: 51.41 kB / 1.406 GB, free: 21.96 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/1.135, allocations: 194 kB / 1.406 GB, free: 21.86 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/1.135, allocations: 25.7 kB / 1.406 GB, free: 21.82 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.438e-05/1.135, allocations: 213.9 kB / 1.406 GB, free: 21.65 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.509e-05/1.135, allocations: 68.72 kB / 1.406 GB, free: 21.6 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.08e-05/1.135, allocations: 0 / 1.406 GB, free: 21.6 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.729e-05/1.136, allocations: 335.5 kB / 1.407 GB, free: 21.27 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.366e-05/1.136, allocations: 58.77 kB / 1.407 GB, free: 21.27 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/1.136, allocations: 179.1 kB / 1.407 GB, free: 21.08 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001099/1.136, allocations: 85.36 kB / 1.407 GB, free: 21.02 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/1.136, allocations: 0 / 1.407 GB, free: 21.02 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003629/1.136, allocations: 269.5 kB / 1.407 GB, free: 20.79 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004227/1.137, allocations: 1.399 MB / 1.409 GB, free: 19.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/1.137, allocations: 4 kB / 1.409 GB, free: 19.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001499/1.137, allocations: 31.78 kB / 1.409 GB, free: 19.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002612/1.137, allocations: 71.89 kB / 1.409 GB, free: 19.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003311/1.137, allocations: 0.5567 MB / 1.409 GB, free: 18.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002347/1.138, allocations: 39.83 kB / 1.409 GB, free: 18.59 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/1.138, allocations: 15.48 kB / 1.409 GB, free: 18.58 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.684e-06/1.138, allocations: 7.938 kB / 1.409 GB, free: 18.57 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002586/1.138, allocations: 188.5 kB / 1.41 GB, free: 18.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-06/1.138, allocations: 4 kB / 1.41 GB, free: 18.43 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.701e-06/1.138, allocations: 8 kB / 1.41 GB, free: 18.42 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002609/1.138, allocations: 78.7 kB / 1.41 GB, free: 18.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/1.138, allocations: 4 kB / 1.41 GB, free: 18.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001952/1.139, allocations: 43.77 kB / 1.41 GB, free: 18.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/1.139, allocations: 11.31 kB / 1.41 GB, free: 18.29 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 9.576e-05/1.139, allocations: 116.9 kB / 1.41 GB, free: 18.17 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002643/1.139, allocations: 179.3 kB / 1.41 GB, free: 18.02 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.005e-05/1.139, allocations: 23.72 kB / 1.41 GB, free: 17.99 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.321e-05/1.139, allocations: 27.7 kB / 1.41 GB, free: 17.98 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/1.139, allocations: 4 kB / 1.41 GB, free: 17.98 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/1.139, allocations: 4 kB / 1.41 GB, free: 17.98 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/1.139, allocations: 3.953 kB / 1.41 GB, free: 17.97 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006942/1.14, allocations: 0.6259 MB / 1.411 GB, free: 17.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/1.14, allocations: 4 kB / 1.411 GB, free: 17.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001886/1.14, allocations: 51.28 kB / 1.411 GB, free: 17.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.469e-05/1.14, allocations: 31.86 kB / 1.411 GB, free: 17.3 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/1.14, allocations: 4 kB / 1.411 GB, free: 17.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007409/1.141, allocations: 1.259 MB / 1.412 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.135e-06/1.141, allocations: 0 / 1.412 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002864/1.141, allocations: 335.4 kB / 1.412 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.481e-05/1.141, allocations: 115.5 kB / 1.412 GB, free: 15.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.529e-05/1.141, allocations: 0 / 1.412 GB, free: 15.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/1.142, allocations: 27.97 kB / 1.413 GB, free: 15.49 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.235e-05/1.142, allocations: 14.59 kB / 1.413 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/1.142, allocations: 4 kB / 1.413 GB, free: 15.47 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001087/1.142, allocations: 154.1 kB / 1.413 GB, free: 15.34 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.142, allocations: 0 / 1.413 GB, free: 15.34 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005336/1.142, allocations: 135.5 kB / 1.413 GB, free: 15.21 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.000577/1.143, allocations: 0.9974 MB / 1.414 GB, free: 14.21 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004642/1.143, allocations: 284.9 kB / 1.414 GB, free: 14 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/1.143, allocations: 4 kB / 1.414 GB, free: 14 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002069/1.144, allocations: 187.9 kB / 1.414 GB, free: 13.83 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003848/1.144, allocations: 54.41 kB / 1.414 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007607/1.145, allocations: 440.6 kB / 1.415 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/1.145, allocations: 0.8103 MB / 1.415 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000247/1.145, allocations: 73.98 kB / 1.416 GB, free: 12.45 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/1.145, allocations: 84.47 kB / 1.416 GB, free: 12.43 MB / 0.8386 GB Notification: Performance of SimCode: time 8.31e-07/1.145, allocations: 0 / 1.416 GB, free: 12.43 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02319/1.169, allocations: 5.053 MB / 1.421 GB, free: 7.418 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001657/1.169, allocations: 136.7 kB / 1.421 GB, free: 7.227 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.723/2.892, allocations: 0 / 1.421 GB, free: 7.227 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Loads_Examples_VariableLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Loads_Examples_VariableLoad.fmu > Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat does not exist to compare? outputFormat=mat