Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.335/2.335, allocations: 390.5 MB / 398 MB, free: 10.98 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.001306/0.001306, allocations: 183.6 kB / 491.2 MB, free: 1.605 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.635/1.635, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.001096/0.001096, allocations: 98.02 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.037e-05/2.04e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3084, allocations: 143 MB / 1.212 GB, free: 39.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.095/1.403, allocations: 177.5 MB / 1.386 GB, free: 16.83 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/1.404, allocations: 91.38 kB / 1.386 GB, free: 16.81 MB / 0.823 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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0-master/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.04744/1.451, allocations: 23.66 MB / 1.409 GB, free: 18.95 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.014e-06/1.451, allocations: 0 / 1.409 GB, free: 18.95 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.825e-05/1.451, allocations: 4 kB / 1.409 GB, free: 18.95 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.001044/1.452, allocations: 0.604 MB / 1.41 GB, free: 18.32 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/1.452, allocations: 8.031 kB / 1.41 GB, free: 18.32 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007925/1.453, allocations: 99.41 kB / 1.41 GB, free: 18.22 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003382/1.453, allocations: 298.1 kB / 1.41 GB, free: 17.91 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/1.453, allocations: 12 kB / 1.41 GB, free: 17.9 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.259e-05/1.453, allocations: 16 kB / 1.41 GB, free: 17.89 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003931/1.454, allocations: 277.7 kB / 1.41 GB, free: 17.71 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005118/1.454, allocations: 400.2 kB / 1.411 GB, free: 17.38 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/1.454, allocations: 7.984 kB / 1.411 GB, free: 17.37 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/1.454, allocations: 3.984 kB / 1.411 GB, free: 17.37 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.289e-05/1.454, allocations: 36.03 kB / 1.411 GB, free: 17.33 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001708/1.456, allocations: 1.977 MB / 1.413 GB, free: 15.35 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003858/1.457, allocations: 174.5 kB / 1.413 GB, free: 15.22 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002617/1.457, allocations: 140.4 kB / 1.413 GB, free: 15.11 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/1.457, allocations: 7.828 kB / 1.413 GB, free: 15.11 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/1.457, allocations: 34.12 kB / 1.413 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.563e-06/1.457, allocations: 0 / 1.413 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.0004106/1.457, allocations: 187.7 kB / 1.413 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/1.457, allocations: 55.41 kB / 1.413 GB, free: 14.84 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000194/1.458, allocations: 195.2 kB / 1.413 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/1.458, allocations: 25.7 kB / 1.413 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/1.458, allocations: 214.5 kB / 1.414 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.53e-05/1.458, allocations: 61.73 kB / 1.414 GB, free: 14.4 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.189e-05/1.458, allocations: 0 / 1.414 GB, free: 14.4 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001315/1.458, allocations: 337.1 kB / 1.414 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.499e-05/1.458, allocations: 57.55 kB / 1.414 GB, free: 14.04 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/1.458, allocations: 173.7 kB / 1.414 GB, free: 13.84 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/1.458, allocations: 88.75 kB / 1.414 GB, free: 13.78 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/1.458, allocations: 4 kB / 1.414 GB, free: 13.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004503/1.459, allocations: 270.9 kB / 1.415 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005967/1.459, allocations: 1.396 MB / 1.416 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/1.459, allocations: 4 kB / 1.416 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001729/1.46, allocations: 27.78 kB / 1.416 GB, free: 12.04 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002842/1.46, allocations: 78.95 kB / 1.416 GB, free: 11.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003966/1.46, allocations: 0.5577 MB / 1.417 GB, free: 11.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/1.461, allocations: 38.98 kB / 1.417 GB, free: 11.35 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/1.461, allocations: 8 kB / 1.417 GB, free: 11.34 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.334e-06/1.461, allocations: 4 kB / 1.417 GB, free: 11.34 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002946/1.461, allocations: 191.5 kB / 1.417 GB, free: 11.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.82e-06/1.461, allocations: 4 kB / 1.417 GB, free: 11.19 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/1.461, allocations: 11.98 kB / 1.417 GB, free: 11.18 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/1.461, allocations: 75.88 kB / 1.417 GB, free: 11.11 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.674e-05/1.461, allocations: 11.92 kB / 1.417 GB, free: 11.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/1.462, allocations: 39.67 kB / 1.417 GB, free: 11.05 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/1.462, allocations: 11.31 kB / 1.417 GB, free: 11.05 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.0001009/1.462, allocations: 112.9 kB / 1.417 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003079/1.462, allocations: 181.5 kB / 1.417 GB, free: 10.78 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.463e-05/1.462, allocations: 23.72 kB / 1.417 GB, free: 10.75 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.264e-05/1.462, allocations: 27.77 kB / 1.417 GB, free: 10.75 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.288e-05/1.462, allocations: 4 kB / 1.417 GB, free: 10.74 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/1.462, allocations: 3.953 kB / 1.417 GB, free: 10.74 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/1.462, allocations: 0 / 1.417 GB, free: 10.74 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008144/1.463, allocations: 0.6366 MB / 1.418 GB, free: 10.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/1.463, allocations: 4 kB / 1.418 GB, free: 10.13 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/1.463, allocations: 47.86 kB / 1.418 GB, free: 10.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.463e-05/1.463, allocations: 24.84 kB / 1.418 GB, free: 10.06 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/1.463, allocations: 12 kB / 1.418 GB, free: 10.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009825/1.464, allocations: 1.261 MB / 1.419 GB, free: 8.715 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/1.464, allocations: 0 / 1.419 GB, free: 8.715 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003603/1.465, allocations: 328 kB / 1.42 GB, free: 8.398 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/1.465, allocations: 120.7 kB / 1.42 GB, free: 8.266 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.588e-05/1.465, allocations: 0 / 1.42 GB, free: 8.266 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/1.465, allocations: 19.98 kB / 1.42 GB, free: 8.246 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.436e-05/1.465, allocations: 15.84 kB / 1.42 GB, free: 8.234 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/1.465, allocations: 8 kB / 1.42 GB, free: 8.227 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001232/1.465, allocations: 150.9 kB / 1.42 GB, free: 8.102 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.465, allocations: 4 kB / 1.42 GB, free: 8.098 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000562/1.466, allocations: 135.5 kB / 1.42 GB, free: 7.965 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.0007464/1.467, allocations: 0.9916 MB / 1.421 GB, free: 6.973 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.00052/1.467, allocations: 284.7 kB / 1.421 GB, free: 6.762 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/1.467, allocations: 4 kB / 1.421 GB, free: 6.758 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002554/1.467, allocations: 191.9 kB / 1.421 GB, free: 6.586 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004182/1.468, allocations: 61.7 kB / 1.421 GB, free: 6.535 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009007/1.469, allocations: 441.4 kB / 1.422 GB, free: 6.098 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/1.469, allocations: 0.8114 MB / 1.423 GB, free: 5.273 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002535/1.469, allocations: 66.02 kB / 1.423 GB, free: 5.211 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/1.47, allocations: 84.91 kB / 1.423 GB, free: 5.184 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.47, allocations: 4 kB / 1.423 GB, free: 5.18 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02581/1.495, allocations: 5.047 MB / 1.428 GB, free: 184 kB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/1.496, allocations: 143.4 kB / 1.428 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.95/3.446, allocations: 0 / 1.428 GB, free: 15.99 MB / 0.8542 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat does not exist to compare? outputFormat=mat