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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.8/1.8, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001084/0.001084, allocations: 173.3 kB / 487 MB, free: 5.398 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.205/1.205, allocations: 221.3 MB / 0.7819 GB, free: 1.395 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.0008794/0.0008794, allocations: 100.6 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4092/0.4101, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1821/0.5922, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5351/1.127, allocations: 176.6 MB / 1.378 GB, free: 420 kB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002042/1.128, allocations: 90.83 kB / 1.378 GB, free: 372 kB / 0.8073 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: 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.0478/1.175, allocations: 23.91 MB / 1.401 GB, free: 12.51 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/1.176, allocations: 8 kB / 1.401 GB, free: 12.5 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007212/1.176, allocations: 107.4 kB / 1.401 GB, free: 12.4 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003425/1.177, allocations: 294.6 kB / 1.402 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/1.177, allocations: 8 kB / 1.402 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.197e-05/1.177, allocations: 23.84 kB / 1.402 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004041/1.177, allocations: 289.8 kB / 1.402 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004994/1.178, allocations: 412.6 kB / 1.402 GB, free: 11.53 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/1.178, allocations: 7.938 kB / 1.402 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.936e-05/1.178, allocations: 0 / 1.402 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.88e-05/1.178, allocations: 32.62 kB / 1.402 GB, free: 11.49 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/1.18, allocations: 2.001 MB / 1.404 GB, free: 9.477 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003749/1.18, allocations: 174.5 kB / 1.404 GB, free: 9.344 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/1.18, allocations: 136.6 kB / 1.405 GB, free: 9.238 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/1.18, allocations: 0 / 1.405 GB, free: 9.238 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.972e-05/1.18, allocations: 42.06 kB / 1.405 GB, free: 9.191 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 9.61e-07/1.18, allocations: 4 kB / 1.405 GB, free: 9.188 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.0003619/1.181, allocations: 180 kB / 1.405 GB, free: 9.035 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.196e-05/1.181, allocations: 55.41 kB / 1.405 GB, free: 8.969 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/1.181, allocations: 193.3 kB / 1.405 GB, free: 8.805 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/1.181, allocations: 25.7 kB / 1.405 GB, free: 8.773 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.275e-05/1.181, allocations: 196.4 kB / 1.405 GB, free: 8.59 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.04e-05/1.181, allocations: 69.41 kB / 1.405 GB, free: 8.527 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.012e-05/1.181, allocations: 0 / 1.405 GB, free: 8.527 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.268e-05/1.181, allocations: 337.1 kB / 1.406 GB, free: 8.199 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.246e-05/1.181, allocations: 61.3 kB / 1.406 GB, free: 8.16 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/1.181, allocations: 181.3 kB / 1.406 GB, free: 7.961 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001232/1.181, allocations: 88.61 kB / 1.406 GB, free: 7.898 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/1.181, allocations: 0 / 1.406 GB, free: 7.898 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004081/1.182, allocations: 275.5 kB / 1.406 GB, free: 7.664 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004275/1.182, allocations: 1.394 MB / 1.408 GB, free: 6.188 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/1.182, allocations: 4 kB / 1.408 GB, free: 6.184 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001378/1.182, allocations: 24.16 kB / 1.408 GB, free: 6.16 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002853/1.183, allocations: 83.83 kB / 1.408 GB, free: 6.082 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00031/1.183, allocations: 0.5579 MB / 1.408 GB, free: 5.508 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002468/1.183, allocations: 39.72 kB / 1.408 GB, free: 5.469 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/1.183, allocations: 11.62 kB / 1.408 GB, free: 5.461 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.47e-06/1.183, allocations: 4 kB / 1.408 GB, free: 5.457 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002841/1.184, allocations: 199.4 kB / 1.409 GB, free: 5.301 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/1.184, allocations: 7.938 kB / 1.409 GB, free: 5.293 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.99e-06/1.184, allocations: 4 kB / 1.409 GB, free: 5.289 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002851/1.184, allocations: 83.17 kB / 1.409 GB, free: 5.211 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/1.184, allocations: 4 kB / 1.409 GB, free: 5.207 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002168/1.184, allocations: 43.75 kB / 1.409 GB, free: 5.164 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/1.184, allocations: 15.91 kB / 1.409 GB, free: 5.148 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 7.838e-05/1.184, allocations: 111.9 kB / 1.409 GB, free: 5.035 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.754e-05/1.184, allocations: 23.72 kB / 1.409 GB, free: 5.012 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.667e-05/1.184, allocations: 38.56 kB / 1.409 GB, free: 4.988 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/1.184, allocations: 0 / 1.409 GB, free: 4.988 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/1.184, allocations: 0 / 1.409 GB, free: 4.988 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/1.184, allocations: 4 kB / 1.409 GB, free: 4.984 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007251/1.185, allocations: 0.6456 MB / 1.409 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/1.185, allocations: 4 kB / 1.409 GB, free: 4.363 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002034/1.185, allocations: 48.03 kB / 1.41 GB, free: 4.316 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.612e-05/1.185, allocations: 28.22 kB / 1.41 GB, free: 4.289 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/1.185, allocations: 0 / 1.41 GB, free: 4.289 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007721/1.186, allocations: 1.248 MB / 1.411 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/1.186, allocations: 8.094 kB / 1.411 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003121/1.187, allocations: 335.5 kB / 1.411 GB, free: 2.637 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004241/1.187, allocations: 0.6976 MB / 1.412 GB, free: 1.941 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.31e-05/1.187, allocations: 115.8 kB / 1.412 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/1.187, allocations: 4 kB / 1.412 GB, free: 1.809 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/1.187, allocations: 23.3 kB / 1.412 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.396e-05/1.187, allocations: 11.97 kB / 1.412 GB, free: 1.777 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/1.187, allocations: 7.875 kB / 1.412 GB, free: 1.773 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001016/1.188, allocations: 152.4 kB / 1.412 GB, free: 1.645 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001653/1.189, allocations: 135.4 kB / 1.412 GB, free: 1.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.0001002/1.189, allocations: 99.19 kB / 1.412 GB, free: 1.402 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004592/1.19, allocations: 292.4 kB / 1.413 GB, free: 1.188 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.19, allocations: 4.562 kB / 1.413 GB, free: 1.184 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002428/1.19, allocations: 179.4 kB / 1.413 GB, free: 1.02 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/1.19, allocations: 59.47 kB / 1.413 GB, free: 0.9727 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000642/1.191, allocations: 379.3 kB / 1.413 GB, free: 0.6055 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003905/1.191, allocations: 0.8348 MB / 1.414 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of SimCode: time 2e-07/1.191, allocations: 0 / 1.414 GB, free: 15.76 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