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.148/2.148, 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.001012/0.001012, allocations: 178.9 kB / 492.3 MB, free: 0.6094 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.461/1.461, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.0009198/0.0009198, allocations: 93.3 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.042e-05/3.064e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2436, allocations: 142.4 MB / 1.212 GB, free: 38.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9358/1.179, allocations: 177.4 MB / 1.386 GB, free: 18.5 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/1.18, allocations: 90.12 kB / 1.386 GB, free: 18.48 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.0493/1.229, allocations: 23.74 MB / 1.409 GB, free: 18.84 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.664e-06/1.229, allocations: 0 / 1.409 GB, free: 18.84 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.228e-05/1.229, allocations: 8.188 kB / 1.409 GB, free: 18.83 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.001113/1.23, allocations: 0.6013 MB / 1.41 GB, free: 18.21 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/1.23, allocations: 8.031 kB / 1.41 GB, free: 18.2 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000153/1.231, allocations: 67.59 kB / 1.41 GB, free: 18.14 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008493/1.231, allocations: 107.1 kB / 1.41 GB, free: 18.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004581/1.232, allocations: 295.4 kB / 1.41 GB, free: 17.73 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/1.232, allocations: 23.64 kB / 1.41 GB, free: 17.71 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.929e-05/1.232, allocations: 27.86 kB / 1.41 GB, free: 17.7 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006372/1.233, allocations: 448.9 kB / 1.411 GB, free: 17.34 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/1.233, allocations: 11.92 kB / 1.411 GB, free: 17.33 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.887e-05/1.233, allocations: 11 kB / 1.411 GB, free: 17.32 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-05/1.233, allocations: 28.14 kB / 1.411 GB, free: 17.3 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004595/1.233, allocations: 315.3 kB / 1.411 GB, free: 17.09 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002147/1.235, allocations: 2.06 MB / 1.413 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004885/1.236, allocations: 183.7 kB / 1.413 GB, free: 14.88 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002826/1.236, allocations: 134.6 kB / 1.413 GB, free: 14.78 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/1.236, allocations: 7.938 kB / 1.413 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/1.236, allocations: 33.62 kB / 1.413 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.854e-06/1.236, allocations: 4 kB / 1.413 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.0004798/1.237, allocations: 198.9 kB / 1.413 GB, free: 14.57 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/1.237, allocations: 59.36 kB / 1.413 GB, free: 14.5 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002542/1.237, allocations: 223.5 kB / 1.414 GB, free: 14.31 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/1.237, allocations: 32.77 kB / 1.414 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/1.237, allocations: 208.2 kB / 1.414 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.15e-05/1.237, allocations: 69.64 kB / 1.414 GB, free: 14.03 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.178e-05/1.237, allocations: 10.75 kB / 1.414 GB, free: 14.03 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001406/1.237, allocations: 334.6 kB / 1.414 GB, free: 13.7 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/1.238, allocations: 64.61 kB / 1.414 GB, free: 13.66 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/1.238, allocations: 176.4 kB / 1.415 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/1.238, allocations: 93.33 kB / 1.415 GB, free: 13.39 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.698e-06/1.238, allocations: 0 / 1.415 GB, free: 13.39 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005173/1.239, allocations: 309.5 kB / 1.415 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006534/1.239, allocations: 1.392 MB / 1.416 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/1.239, allocations: 4 kB / 1.416 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001935/1.239, allocations: 31.34 kB / 1.416 GB, free: 11.63 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003024/1.24, allocations: 78.83 kB / 1.416 GB, free: 11.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004259/1.24, allocations: 0.5541 MB / 1.417 GB, free: 10.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003079/1.24, allocations: 48.61 kB / 1.417 GB, free: 10.94 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.843e-05/1.241, allocations: 14.88 kB / 1.417 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/1.241, allocations: 4 kB / 1.417 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000383/1.241, allocations: 231.7 kB / 1.417 GB, free: 10.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/1.241, allocations: 4 kB / 1.417 GB, free: 10.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.933e-06/1.241, allocations: 4 kB / 1.417 GB, free: 10.75 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002896/1.241, allocations: 78.08 kB / 1.417 GB, free: 10.67 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.886e-06/1.241, allocations: 4.375 kB / 1.417 GB, free: 10.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002477/1.242, allocations: 52.17 kB / 1.417 GB, free: 10.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.396e-05/1.242, allocations: 14.81 kB / 1.417 GB, free: 10.61 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 0.0001051/1.242, allocations: 119.9 kB / 1.417 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.674e-05/1.242, allocations: 23.72 kB / 1.418 GB, free: 10.47 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.539e-05/1.242, allocations: 34.45 kB / 1.418 GB, free: 10.45 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/1.242, allocations: 3.938 kB / 1.418 GB, free: 10.45 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.242, allocations: 4 kB / 1.418 GB, free: 10.44 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/1.242, allocations: 3.984 kB / 1.418 GB, free: 10.44 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/1.243, allocations: 0.7016 MB / 1.418 GB, free: 9.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/1.243, allocations: 0 / 1.418 GB, free: 9.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002393/1.243, allocations: 47.97 kB / 1.418 GB, free: 9.723 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001072/1.243, allocations: 29.47 kB / 1.418 GB, free: 9.695 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/1.243, allocations: 3.438 kB / 1.418 GB, free: 9.695 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/1.244, allocations: 1.318 MB / 1.42 GB, free: 8.297 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/1.244, allocations: 0 / 1.42 GB, free: 8.297 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004126/1.245, allocations: 349.8 kB / 1.42 GB, free: 7.965 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/1.245, allocations: 115.8 kB / 1.42 GB, free: 7.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.342e-05/1.245, allocations: 7.984 kB / 1.42 GB, free: 7.832 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/1.245, allocations: 27.48 kB / 1.42 GB, free: 7.809 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/1.245, allocations: 11.61 kB / 1.42 GB, free: 7.801 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/1.245, allocations: 8 kB / 1.42 GB, free: 7.793 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001701/1.245, allocations: 180.4 kB / 1.42 GB, free: 7.645 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.245, allocations: 0 / 1.42 GB, free: 7.645 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006037/1.246, allocations: 145.2 kB / 1.42 GB, free: 7.512 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.0007925/1.247, allocations: 1.015 MB / 1.421 GB, free: 6.508 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006218/1.248, allocations: 315.4 kB / 1.422 GB, free: 6.273 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/1.248, allocations: 0 / 1.422 GB, free: 6.273 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002712/1.248, allocations: 198.5 kB / 1.422 GB, free: 6.09 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004245/1.248, allocations: 64.92 kB / 1.422 GB, free: 6.043 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/1.249, allocations: 467.2 kB / 1.422 GB, free: 5.598 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/1.25, allocations: 0.8103 MB / 1.423 GB, free: 4.77 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003051/1.25, allocations: 85.97 kB / 1.423 GB, free: 4.688 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/1.25, allocations: 86.47 kB / 1.423 GB, free: 4.66 MB / 0.8386 GB Notification: Performance of SimCode: time 6.52e-07/1.25, allocations: 0 / 1.423 GB, free: 4.66 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02441/1.275, allocations: 5.84 MB / 1.429 GB, free: 15.01 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003518/1.275, allocations: 185.3 kB / 1.429 GB, free: 14.78 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.844/3.119, allocations: 0 / 1.429 GB, free: 14.78 MB / 0.8542 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