Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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.LinearizedLoad,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",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.812/1.812, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.000923/0.0009233, allocations: 179.3 kB / 487 MB, free: 5.391 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.154/1.154, allocations: 221.3 MB / 0.7819 GB, free: 1.367 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.0008339/0.000834, allocations: 92.59 kB / 0.9213 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4095/0.4104, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.594, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5108/1.105, allocations: 176.9 MB / 1.378 GB, free: 136 kB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000203/1.105, allocations: 88.94 kB / 1.378 GB, free: 88 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);. [/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);. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0524/1.158, allocations: 25.88 MB / 1.403 GB, free: 10.58 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/1.158, allocations: 9 kB / 1.403 GB, free: 10.57 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008518/1.158, allocations: 119.4 kB / 1.404 GB, free: 10.46 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005242/1.159, allocations: 337.1 kB / 1.404 GB, free: 10.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.558e-05/1.159, allocations: 42.48 kB / 1.404 GB, free: 10.07 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.894e-05/1.159, allocations: 23.94 kB / 1.404 GB, free: 10.05 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00047/1.16, allocations: 326.9 kB / 1.404 GB, free: 9.836 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005563/1.16, allocations: 437.5 kB / 1.405 GB, free: 9.488 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/1.16, allocations: 3.938 kB / 1.405 GB, free: 9.484 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.661e-05/1.16, allocations: 11.92 kB / 1.405 GB, free: 9.473 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-05/1.16, allocations: 28.67 kB / 1.405 GB, free: 9.445 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002144/1.162, allocations: 2.14 MB / 1.407 GB, free: 7.316 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000441/1.163, allocations: 224.1 kB / 1.407 GB, free: 7.141 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002599/1.163, allocations: 148.6 kB / 1.407 GB, free: 7.027 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.455e-05/1.163, allocations: 0 / 1.407 GB, free: 7.027 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/1.163, allocations: 41.31 kB / 1.407 GB, free: 6.98 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=19): time 1.162e-06/1.163, allocations: 0 / 1.407 GB, free: 6.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.0005843/1.164, allocations: 247.5 kB / 1.407 GB, free: 6.773 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.658e-05/1.164, allocations: 59.36 kB / 1.407 GB, free: 6.703 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/1.164, allocations: 176.4 kB / 1.408 GB, free: 6.551 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/1.164, allocations: 33.7 kB / 1.408 GB, free: 6.512 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.517e-05/1.164, allocations: 193.5 kB / 1.408 GB, free: 6.328 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.166e-05/1.164, allocations: 65.17 kB / 1.408 GB, free: 6.273 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.172e-05/1.164, allocations: 0 / 1.408 GB, free: 6.273 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.369e-05/1.164, allocations: 333.7 kB / 1.408 GB, free: 5.945 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/1.164, allocations: 70.17 kB / 1.408 GB, free: 5.898 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/1.165, allocations: 158.6 kB / 1.408 GB, free: 5.734 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001355/1.165, allocations: 97.8 kB / 1.409 GB, free: 5.668 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/1.165, allocations: 0 / 1.409 GB, free: 5.668 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005946/1.165, allocations: 317.6 kB / 1.409 GB, free: 5.402 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003382/1.166, allocations: 0.9573 MB / 1.41 GB, free: 4.387 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/1.166, allocations: 4 kB / 1.41 GB, free: 4.383 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003986/1.166, allocations: 95.08 kB / 1.41 GB, free: 4.297 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/1.166, allocations: 63.77 kB / 1.41 GB, free: 4.238 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001852/1.168, allocations: 1.936 MB / 1.412 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/1.168, allocations: 35.83 kB / 1.412 GB, free: 2.207 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/1.168, allocations: 18.31 kB / 1.412 GB, free: 2.191 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.36e-06/1.168, allocations: 4 kB / 1.412 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004723/1.169, allocations: 243.9 kB / 1.412 GB, free: 2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/1.169, allocations: 4.141 kB / 1.412 GB, free: 1.996 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002443/1.169, allocations: 86.59 kB / 1.412 GB, free: 1.918 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/1.169, allocations: 55.91 kB / 1.412 GB, free: 1.863 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/1.171, allocations: 1.396 MB / 1.414 GB, free: 436 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/1.171, allocations: 23.88 kB / 1.414 GB, free: 412 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/1.171, allocations: 8 kB / 1.414 GB, free: 404 kB / 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 8.928e-05/1.171, allocations: 112.9 kB / 1.414 GB, free: 284 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.729e-05/1.171, allocations: 19.72 kB / 1.414 GB, free: 264 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.83e-05/1.171, allocations: 32.09 kB / 1.414 GB, free: 248 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/1.171, allocations: 0 / 1.414 GB, free: 248 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/1.171, allocations: 0 / 1.414 GB, free: 248 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/1.171, allocations: 3.984 kB / 1.414 GB, free: 244 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009477/1.172, allocations: 0.7281 MB / 1.415 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/1.172, allocations: 0 / 1.415 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001611/1.173, allocations: 39.91 kB / 1.415 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003217/1.173, allocations: 99.83 kB / 1.415 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/1.173, allocations: 3.938 kB / 1.415 GB, free: 15.42 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/1.175, allocations: 2.662 MB / 1.417 GB, free: 12.64 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/1.175, allocations: 0 / 1.417 GB, free: 12.64 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005192/1.176, allocations: 399.3 kB / 1.418 GB, free: 12.27 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006108/1.176, allocations: 0.7653 MB / 1.418 GB, free: 11.52 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 9.485e-05/1.176, allocations: 115.9 kB / 1.419 GB, free: 11.39 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.238e-05/1.176, allocations: 3.984 kB / 1.419 GB, free: 11.39 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/1.177, allocations: 12 kB / 1.419 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.187e-05/1.177, allocations: 19.47 kB / 1.419 GB, free: 11.36 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/1.177, allocations: 4 kB / 1.419 GB, free: 11.36 MB / 0.8542 GB Notification: Performance of sort global known variables: time 9.393e-05/1.177, allocations: 137 kB / 1.419 GB, free: 11.24 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.001602/1.178, allocations: 159.3 kB / 1.419 GB, free: 11.09 MB / 0.8542 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 (17): * Single equations (assignments): 15 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001236/1.178, allocations: 108.6 kB / 1.419 GB, free: 10.97 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001378/1.18, allocations: 0.5623 MB / 1.419 GB, free: 10.47 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.18, allocations: 4 kB / 1.419 GB, free: 10.47 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0006124/1.18, allocations: 335.2 kB / 1.42 GB, free: 10.15 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/1.181, allocations: 39.41 kB / 1.42 GB, free: 10.12 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007699/1.182, allocations: 420.6 kB / 1.42 GB, free: 9.723 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004076/1.182, allocations: 0.8334 MB / 1.421 GB, free: 8.879 MB / 0.8542 GB Notification: Performance of SimCode: time 2.71e-07/1.182, allocations: 0 / 1.421 GB, free: 8.879 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.fmu > Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat does not exist to compare? outputFormat=mat