Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.263/1.263, allocations: 249.4 MB / 256.7 MB, free: 7.004 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001009/0.001009, allocations: 189.2 kB / 316 MB, free: 3.582 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.08/1.08, allocations: 205.2 MB / 0.5667 GB, free: 15.66 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008823/0.0008823, allocations: 87.3 kB / 0.671 GB, free: 4.801 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3154/0.3164, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.4767, allocations: 106.3 MB / 0.8847 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4936/0.9703, allocations: 160.1 MB / 1.041 GB, free: 12.75 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/0.9706, allocations: 87.88 kB / 1.041 GB, free: 12.7 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Interfaces/Source.mo:30:9-30: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 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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.03934/1.01, allocations: 17.95 MB / 1.059 GB, free: 13.86 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/1.01, allocations: 11.98 kB / 1.059 GB, free: 13.84 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008081/1.011, allocations: 118.8 kB / 1.059 GB, free: 13.73 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005129/1.011, allocations: 325.5 kB / 1.059 GB, free: 13.4 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.261e-05/1.011, allocations: 46.39 kB / 1.059 GB, free: 13.35 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.665e-05/1.011, allocations: 20 kB / 1.059 GB, free: 13.33 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004867/1.012, allocations: 326.5 kB / 1.059 GB, free: 13.11 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005555/1.012, allocations: 436.3 kB / 1.06 GB, free: 12.77 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/1.012, allocations: 4 kB / 1.06 GB, free: 12.76 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.186e-05/1.013, allocations: 0 / 1.06 GB, free: 12.76 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.88e-05/1.013, allocations: 32.14 kB / 1.06 GB, free: 12.73 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002035/1.015, allocations: 2.155 MB / 1.062 GB, free: 10.59 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000426/1.015, allocations: 223.7 kB / 1.062 GB, free: 10.41 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002431/1.015, allocations: 135.8 kB / 1.062 GB, free: 10.31 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/1.015, allocations: 4 kB / 1.062 GB, free: 10.3 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/1.015, allocations: 37.81 kB / 1.062 GB, free: 10.26 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=19): time 1.353e-06/1.015, allocations: 0 / 1.062 GB, free: 10.26 MB / 0.6823 GB Notification: Performance of matching and sorting (n=19): time 0.0005648/1.016, allocations: 249.3 kB / 1.063 GB, free: 10.05 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.213e-05/1.016, allocations: 51.41 kB / 1.063 GB, free: 9.988 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/1.016, allocations: 181.2 kB / 1.063 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/1.016, allocations: 25.7 kB / 1.063 GB, free: 9.801 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.531e-05/1.016, allocations: 205.5 kB / 1.063 GB, free: 9.609 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.312e-05/1.016, allocations: 73.81 kB / 1.063 GB, free: 9.543 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.109e-05/1.016, allocations: 0 / 1.063 GB, free: 9.543 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001012/1.016, allocations: 326 kB / 1.063 GB, free: 9.223 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/1.017, allocations: 69.42 kB / 1.063 GB, free: 9.18 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/1.017, allocations: 169.4 kB / 1.064 GB, free: 9.004 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001325/1.017, allocations: 95.36 kB / 1.064 GB, free: 8.938 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/1.017, allocations: 3.938 kB / 1.064 GB, free: 8.934 MB / 0.6823 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005768/1.017, allocations: 319.4 kB / 1.064 GB, free: 8.672 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002775/1.018, allocations: 0.9635 MB / 1.065 GB, free: 7.648 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/1.018, allocations: 4 kB / 1.065 GB, free: 7.645 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003867/1.018, allocations: 100 kB / 1.065 GB, free: 7.555 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/1.018, allocations: 47.92 kB / 1.065 GB, free: 7.508 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00182/1.02, allocations: 1.955 MB / 1.067 GB, free: 5.496 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/1.02, allocations: 27.91 kB / 1.067 GB, free: 5.469 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/1.02, allocations: 11.98 kB / 1.067 GB, free: 5.457 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.561e-06/1.02, allocations: 4 kB / 1.067 GB, free: 5.453 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004591/1.021, allocations: 239.3 kB / 1.067 GB, free: 5.27 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.434e-06/1.021, allocations: 4 kB / 1.067 GB, free: 5.266 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002495/1.021, allocations: 73.89 kB / 1.067 GB, free: 5.199 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002256/1.021, allocations: 59.78 kB / 1.067 GB, free: 5.145 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001469/1.023, allocations: 1.409 MB / 1.069 GB, free: 3.695 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002109/1.023, allocations: 31.84 kB / 1.069 GB, free: 3.664 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/1.023, allocations: 8 kB / 1.069 GB, free: 3.656 MB / 0.6823 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.493e-05/1.023, allocations: 116.3 kB / 1.069 GB, free: 3.539 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.7e-05/1.023, allocations: 19.72 kB / 1.069 GB, free: 3.52 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.281e-05/1.023, allocations: 22.28 kB / 1.069 GB, free: 3.516 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-06/1.023, allocations: 11.94 kB / 1.069 GB, free: 3.504 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/1.023, allocations: 0 / 1.069 GB, free: 3.504 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/1.023, allocations: 7.984 kB / 1.069 GB, free: 3.496 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009669/1.024, allocations: 0.7292 MB / 1.07 GB, free: 2.812 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/1.024, allocations: 0 / 1.07 GB, free: 2.812 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001581/1.025, allocations: 39.03 kB / 1.07 GB, free: 2.777 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003232/1.025, allocations: 95.58 kB / 1.07 GB, free: 2.688 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/1.025, allocations: 3.688 kB / 1.07 GB, free: 2.688 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002263/1.027, allocations: 2.646 MB / 1.072 GB, free: 15.92 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/1.027, allocations: 3.938 kB / 1.072 GB, free: 15.91 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005434/1.028, allocations: 392.1 kB / 1.073 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006129/1.028, allocations: 0.7703 MB / 1.074 GB, free: 14.79 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/1.028, allocations: 115.4 kB / 1.074 GB, free: 14.66 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/1.028, allocations: 3.984 kB / 1.074 GB, free: 14.66 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001777/1.029, allocations: 12 kB / 1.074 GB, free: 14.65 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/1.029, allocations: 27.25 kB / 1.074 GB, free: 14.62 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/1.029, allocations: 7.938 kB / 1.074 GB, free: 14.62 MB / 0.698 GB Notification: Performance of sort global known variables: time 9.117e-05/1.029, allocations: 135.3 kB / 1.074 GB, free: 14.5 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00158/1.03, allocations: 163.3 kB / 1.074 GB, free: 14.34 MB / 0.698 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.0001112/1.031, allocations: 99.25 kB / 1.074 GB, free: 14.24 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001363/1.032, allocations: 0.5653 MB / 1.075 GB, free: 13.74 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/1.032, allocations: 0 / 1.075 GB, free: 13.74 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006274/1.033, allocations: 332.6 kB / 1.075 GB, free: 13.43 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/1.033, allocations: 30.03 kB / 1.075 GB, free: 13.4 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007526/1.034, allocations: 410.3 kB / 1.075 GB, free: 13 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000381/1.034, allocations: 0.8418 MB / 1.076 GB, free: 12.15 MB / 0.698 GB Notification: Performance of SimCode: time 2.71e-07/1.034, allocations: 3.938 kB / 1.076 GB, free: 12.15 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)