Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",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.815/1.815, 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.0009127/0.0009127, allocations: 177.3 kB / 487 MB, free: 5.375 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.136/1.136, allocations: 221.3 MB / 0.7819 GB, free: 1.379 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.0008695/0.0008694, allocations: 111.5 kB / 0.9213 GB, free: 2.637 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4014/0.4023, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.5871, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5301/1.117, allocations: 200.6 MB / 1.401 GB, free: 9.145 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/1.117, allocations: 88.88 kB / 1.401 GB, free: 9.098 MB / 0.8386 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/PartialTwoPortRLC.mo:19:3-19: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: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.4702/1.588, allocations: 222.7 MB / 1.619 GB, free: 5.773 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/1.588, allocations: 8 kB / 1.619 GB, free: 5.766 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01639/1.604, allocations: 3.199 MB / 1.622 GB, free: 2.559 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005973/1.61, allocations: 2.572 MB / 1.624 GB, free: 15.91 MB / 1.057 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002824/1.61, allocations: 381.8 kB / 1.625 GB, free: 15.48 MB / 1.057 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003853/1.611, allocations: 140 kB / 1.625 GB, free: 15.34 MB / 1.057 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005406/1.616, allocations: 3.582 MB / 1.628 GB, free: 11.75 MB / 1.057 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00535/1.622, allocations: 3.688 MB / 1.632 GB, free: 7.926 MB / 1.057 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.541e-05/1.622, allocations: 7.922 kB / 1.632 GB, free: 7.918 MB / 1.057 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002895/1.622, allocations: 4 kB / 1.632 GB, free: 7.914 MB / 1.057 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001213/1.622, allocations: 152.8 kB / 1.632 GB, free: 7.762 MB / 1.057 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02136/1.643, allocations: 14.52 MB / 1.646 GB, free: 8.078 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001505/1.645, allocations: 1.135 MB / 1.648 GB, free: 6.926 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001397/1.646, allocations: 1.101 MB / 1.649 GB, free: 5.828 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001261/1.647, allocations: 30.22 kB / 1.649 GB, free: 5.801 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001787/1.648, allocations: 1.363 MB / 1.65 GB, free: 4.371 MB / 1.073 GB Notification: Performance of pre-optimization done (n=163): time 3.637e-06/1.648, allocations: 4 kB / 1.65 GB, free: 4.367 MB / 1.073 GB Notification: Performance of matching and sorting (n=250): time 0.02256/1.671, allocations: 8.685 MB / 1.658 GB, free: 11.64 MB / 1.089 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003164/1.671, allocations: 0.8983 MB / 1.659 GB, free: 10.54 MB / 1.089 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002223/1.674, allocations: 1.568 MB / 1.661 GB, free: 8.957 MB / 1.089 GB Notification: Performance of collectPreVariables (initialization): time 0.0002339/1.674, allocations: 33.7 kB / 1.661 GB, free: 8.918 MB / 1.089 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006985/1.674, allocations: 0.9549 MB / 1.662 GB, free: 7.949 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006554/1.675, allocations: 0.7889 MB / 1.663 GB, free: 7.148 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/1.675, allocations: 0 / 1.663 GB, free: 7.148 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 0.0001477/1.675, allocations: 398.7 kB / 1.663 GB, free: 6.754 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002051/1.678, allocations: 1.406 MB / 1.664 GB, free: 5.344 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00227/1.68, allocations: 1.778 MB / 1.666 GB, free: 3.434 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002011/1.682, allocations: 1.479 MB / 1.668 GB, free: 1.934 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/1.682, allocations: 4 kB / 1.668 GB, free: 1.93 MB / 1.089 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01142/1.693, allocations: 5.139 MB / 1.673 GB, free: 12.73 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/1.693, allocations: 4.344 kB / 1.673 GB, free: 12.73 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/1.693, allocations: 12 kB / 1.673 GB, free: 12.71 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009386/1.703, allocations: 2.761 MB / 1.675 GB, free: 9.945 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003276/1.706, allocations: 0.632 MB / 1.676 GB, free: 9.312 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03215/1.738, allocations: 15.47 MB / 1.691 GB, free: 9.598 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004371/1.743, allocations: 427.6 kB / 1.691 GB, free: 9.18 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002932/1.743, allocations: 91.91 kB / 1.691 GB, free: 9.09 MB / 1.12 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * 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: 1 {(10,48.0%) 52} * Non-linear torn systems: 1 {9 63} Notification: Performance of prepare postOptimizeDAE: time 0.0005123/1.743, allocations: 153.8 kB / 1.692 GB, free: 8.934 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004781/1.744, allocations: 304.4 kB / 1.692 GB, free: 8.633 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006692/1.745, allocations: 321.2 kB / 1.692 GB, free: 8.309 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.5e-05/1.745, allocations: 24.38 kB / 1.692 GB, free: 8.285 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-05/1.745, allocations: 11.98 kB / 1.692 GB, free: 8.273 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.781e-05/1.745, allocations: 11.95 kB / 1.692 GB, free: 8.262 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004107/1.749, allocations: 3.34 MB / 1.696 GB, free: 4.875 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/1.749, allocations: 7.875 kB / 1.696 GB, free: 4.867 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002856/1.752, allocations: 0.5579 MB / 1.696 GB, free: 4.309 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009439/1.761, allocations: 2.737 MB / 1.699 GB, free: 1.566 MB / 1.12 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000258/1.761, allocations: 15.97 kB / 1.699 GB, free: 1.551 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03131/1.793, allocations: 15.47 MB / 1.714 GB, free: 1.836 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.793, allocations: 0 / 1.714 GB, free: 1.836 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01093/1.804, allocations: 4.96 MB / 1.719 GB, free: 12.85 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0108/1.814, allocations: 5.401 MB / 1.724 GB, free: 7.414 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/1.816, allocations: 0.6808 MB / 1.725 GB, free: 6.711 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005492/1.816, allocations: 4 kB / 1.725 GB, free: 6.707 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003315/1.82, allocations: 431.4 kB / 1.725 GB, free: 6.285 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006928/1.82, allocations: 273.5 kB / 1.725 GB, free: 6.016 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002527/1.821, allocations: 71.97 kB / 1.725 GB, free: 5.945 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001535/1.822, allocations: 1.161 MB / 1.727 GB, free: 4.777 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002989/1.825, allocations: 0.8945 MB / 1.727 GB, free: 3.883 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {8 64} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003607/1.826, allocations: 140 kB / 1.728 GB, free: 3.734 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.3303/2.156, allocations: 4.933 MB / 1.732 GB, free: 423.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.321e-06/2.156, allocations: 3.844 kB / 1.732 GB, free: 423.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01268/2.169, allocations: 3.168 MB / 1.735 GB, free: 423 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00363/2.172, allocations: 0.8298 MB / 1.736 GB, free: 422.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009732/2.182, allocations: 5.214 MB / 1.741 GB, free: 421.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002217/2.184, allocations: 2.404 MB / 1.744 GB, free: 421.1 MB / 1.151 GB Notification: Performance of SimCode: time 6.11e-07/2.184, allocations: 0 / 1.744 GB, free: 421.1 MB / 1.151 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat does not exist to compare? outputFormat=mat