Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DCLines,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLines",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.821/1.821, 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.0009607/0.0009607, allocations: 169.3 kB / 487 MB, free: 5.383 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.138/1.138, allocations: 221.3 MB / 0.7819 GB, free: 1.41 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.0008025/0.0008026, allocations: 86.44 kB / 0.9213 GB, free: 2.668 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4052/0.406, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1942/0.6003, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5559/1.156, allocations: 200.6 MB / 1.401 GB, free: 9.176 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/1.156, allocations: 89.31 kB / 1.401 GB, free: 9.129 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.4646/1.621, allocations: 220.8 MB / 1.617 GB, free: 7.695 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/1.621, allocations: 11.94 kB / 1.617 GB, free: 7.684 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01694/1.638, allocations: 3.191 MB / 1.62 GB, free: 4.484 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00531/1.643, allocations: 2.315 MB / 1.622 GB, free: 2.098 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.983e-05/1.644, allocations: 79.98 kB / 1.622 GB, free: 2.02 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000385/1.644, allocations: 136 kB / 1.622 GB, free: 1.887 MB / 1.042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005655/1.65, allocations: 3.512 MB / 1.626 GB, free: 14.37 MB / 1.057 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005313/1.655, allocations: 3.567 MB / 1.629 GB, free: 10.66 MB / 1.057 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.343e-05/1.655, allocations: 3.906 kB / 1.629 GB, free: 10.66 MB / 1.057 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002652/1.655, allocations: 4 kB / 1.629 GB, free: 10.66 MB / 1.057 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001333/1.655, allocations: 156.8 kB / 1.63 GB, free: 10.5 MB / 1.057 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01913/1.674, allocations: 14.03 MB / 1.643 GB, free: 11.32 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/1.676, allocations: 1.061 MB / 1.644 GB, free: 10.25 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001328/1.677, allocations: 1.038 MB / 1.645 GB, free: 9.211 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001009/1.677, allocations: 21.3 kB / 1.645 GB, free: 9.188 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001714/1.679, allocations: 1.302 MB / 1.647 GB, free: 7.82 MB / 1.073 GB Notification: Performance of pre-optimization done (n=163): time 3.236e-06/1.679, allocations: 0 / 1.647 GB, free: 7.82 MB / 1.073 GB Notification: Performance of matching and sorting (n=250): time 0.01697/1.696, allocations: 7.717 MB / 1.654 GB, free: 60 kB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003259/1.696, allocations: 0.8944 MB / 1.655 GB, free: 14.95 MB / 1.089 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002005/1.698, allocations: 1.568 MB / 1.657 GB, free: 13.37 MB / 1.089 GB Notification: Performance of collectPreVariables (initialization): time 0.0001806/1.699, allocations: 41.62 kB / 1.657 GB, free: 13.32 MB / 1.089 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007396/1.699, allocations: 0.9548 MB / 1.658 GB, free: 12.36 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006511/1.7, allocations: 0.7929 MB / 1.658 GB, free: 11.55 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/1.7, allocations: 0 / 1.658 GB, free: 11.55 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 0.000148/1.7, allocations: 394.7 kB / 1.659 GB, free: 11.16 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/1.702, allocations: 1.246 MB / 1.66 GB, free: 9.91 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001989/1.704, allocations: 1.618 MB / 1.661 GB, free: 8.16 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001822/1.706, allocations: 1.339 MB / 1.663 GB, free: 6.801 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/1.706, allocations: 0 / 1.663 GB, free: 6.801 MB / 1.089 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008453/1.714, allocations: 4.424 MB / 1.667 GB, free: 2.32 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006366/1.715, allocations: 2.267 MB / 1.669 GB, free: 15.86 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/1.715, allocations: 8 kB / 1.669 GB, free: 15.86 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005744/1.721, allocations: 1.63 MB / 1.671 GB, free: 14.21 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003256/1.724, allocations: 0.6398 MB / 1.672 GB, free: 13.57 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01251/1.737, allocations: 8.707 MB / 1.68 GB, free: 4.719 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003736/1.74, allocations: 407.6 kB / 1.68 GB, free: 4.32 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002532/1.741, allocations: 99.95 kB / 1.681 GB, free: 4.223 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 6.923e-06/1.741, allocations: 7.938 kB / 1.681 GB, free: 4.215 MB / 1.104 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006688/1.747, allocations: 3.68 MB / 1.684 GB, free: 500 kB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/1.747, allocations: 4.375 kB / 1.684 GB, free: 496 kB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003663/1.751, allocations: 1.437 MB / 1.686 GB, free: 15.04 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00307/1.754, allocations: 0.6866 MB / 1.686 GB, free: 14.35 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01652/1.771, allocations: 11.13 MB / 1.697 GB, free: 2.98 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003733/1.774, allocations: 419.4 kB / 1.697 GB, free: 2.57 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002348/1.775, allocations: 87.97 kB / 1.698 GB, free: 2.484 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 (172): * Single equations (assignments): 165 * 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 {10 52} Notification: Performance of prepare postOptimizeDAE: time 0.0005585/1.775, allocations: 159 kB / 1.698 GB, free: 2.324 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000441/1.776, allocations: 308.4 kB / 1.698 GB, free: 2.02 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006994/1.776, allocations: 333.2 kB / 1.698 GB, free: 1.684 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/1.776, allocations: 24 kB / 1.698 GB, free: 1.66 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-05/1.776, allocations: 12 kB / 1.698 GB, free: 1.648 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-05/1.777, allocations: 15.86 kB / 1.698 GB, free: 1.633 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003545/1.78, allocations: 2.853 MB / 1.701 GB, free: 14.74 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/1.78, allocations: 3.906 kB / 1.701 GB, free: 14.73 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002728/1.783, allocations: 0.5696 MB / 1.702 GB, free: 14.16 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005406/1.788, allocations: 1.65 MB / 1.703 GB, free: 12.5 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001838/1.788, allocations: 15.97 kB / 1.703 GB, free: 12.49 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01847/1.807, allocations: 12.67 MB / 1.716 GB, free: 15.58 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/1.807, allocations: 4 kB / 1.716 GB, free: 15.58 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008661/1.816, allocations: 4.237 MB / 1.72 GB, free: 11.32 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008246/1.824, allocations: 4.667 MB / 1.724 GB, free: 6.617 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/1.825, allocations: 0.6457 MB / 1.725 GB, free: 5.949 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005231/1.826, allocations: 4 kB / 1.725 GB, free: 5.945 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003035/1.829, allocations: 423.5 kB / 1.725 GB, free: 5.531 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005504/1.829, allocations: 229.6 kB / 1.726 GB, free: 5.305 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002091/1.83, allocations: 71.97 kB / 1.726 GB, free: 5.234 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001538/1.831, allocations: 1.161 MB / 1.727 GB, free: 4.066 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004347/1.835, allocations: 1.367 MB / 1.728 GB, free: 2.699 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 (128): * Single equations (assignments): 116 * 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 {10 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003571/1.836, allocations: 144 kB / 1.728 GB, free: 2.547 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.3038/2.14, allocations: 6.892 MB / 1.735 GB, free: 423.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/2.14, allocations: 3.938 kB / 1.735 GB, free: 423.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.004363/2.144, allocations: 2.477 MB / 1.737 GB, free: 423.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003308/2.147, allocations: 0.836 MB / 1.738 GB, free: 423.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008838/2.156, allocations: 5.191 MB / 1.743 GB, free: 422.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002142/2.158, allocations: 2.418 MB / 1.746 GB, free: 421.5 MB / 1.151 GB Notification: Performance of SimCode: time 7.61e-07/2.158, allocations: 2.844 kB / 1.746 GB, free: 421.5 MB / 1.151 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat does not exist to compare? outputFormat=mat