Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine.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.Lines.Examples.DCLine,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLine",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.23/1.23, allocations: 249.4 MB / 256.7 MB, free: 6.973 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.0009528/0.0009527, allocations: 177.3 kB / 316 MB, free: 3.543 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.168/1.168, allocations: 205.2 MB / 0.5667 GB, free: 15.61 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.00105/0.00105, allocations: 82.11 kB / 0.671 GB, free: 4.754 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3301/0.3312, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.4981, allocations: 106.3 MB / 0.8847 GB, free: 12.53 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5114/1.01, allocations: 174.4 MB / 1.055 GB, free: 15.11 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/1.01, allocations: 84.39 kB / 1.055 GB, free: 15.07 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18: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/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/PartialTwoPortRLC.mo:18:3-18: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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.09105/1.101, allocations: 37.19 MB / 1.091 GB, free: 388 kB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/1.101, allocations: 8 kB / 1.091 GB, free: 380 kB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0037/1.105, allocations: 0.6209 MB / 1.092 GB, free: 15.76 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/1.106, allocations: 0.5927 MB / 1.093 GB, free: 15.22 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/1.106, allocations: 20 kB / 1.093 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/1.106, allocations: 28 kB / 1.093 GB, free: 15.17 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001226/1.107, allocations: 0.7197 MB / 1.093 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/1.109, allocations: 0.8073 MB / 1.094 GB, free: 14.09 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/1.109, allocations: 0 / 1.094 GB, free: 14.09 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.1e-05/1.109, allocations: 4 kB / 1.094 GB, free: 14.08 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.614e-05/1.109, allocations: 45.22 kB / 1.094 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004617/1.113, allocations: 3.446 MB / 1.097 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004455/1.114, allocations: 264.3 kB / 1.098 GB, free: 10.56 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002513/1.114, allocations: 173.8 kB / 1.098 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 4.171e-05/1.114, allocations: 3.984 kB / 1.098 GB, free: 10.44 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/1.114, allocations: 42.12 kB / 1.098 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=31): time 2.455e-06/1.114, allocations: 0 / 1.098 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of matching and sorting (n=43): time 0.002784/1.117, allocations: 1.146 MB / 1.099 GB, free: 9.449 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.48e-05/1.117, allocations: 136.5 kB / 1.099 GB, free: 9.285 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005212/1.118, allocations: 388.2 kB / 1.1 GB, free: 8.988 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/1.118, allocations: 29.7 kB / 1.1 GB, free: 8.953 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/1.118, allocations: 292.4 kB / 1.1 GB, free: 8.691 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/1.118, allocations: 144 kB / 1.1 GB, free: 8.566 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.6e-05/1.118, allocations: 0 / 1.1 GB, free: 8.566 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001183/1.118, allocations: 364.3 kB / 1.1 GB, free: 8.223 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002625/1.118, allocations: 188.8 kB / 1.101 GB, free: 8.105 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003245/1.119, allocations: 304.5 kB / 1.101 GB, free: 7.832 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003131/1.119, allocations: 226.5 kB / 1.101 GB, free: 7.684 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/1.119, allocations: 7.922 kB / 1.101 GB, free: 7.676 MB / 0.7136 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00146/1.121, allocations: 0.7367 MB / 1.102 GB, free: 7.07 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004035/1.121, allocations: 1.224 MB / 1.103 GB, free: 5.773 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/1.121, allocations: 4 kB / 1.103 GB, free: 5.77 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009485/1.122, allocations: 238.6 kB / 1.103 GB, free: 5.555 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006425/1.123, allocations: 131.9 kB / 1.103 GB, free: 5.426 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004222/1.127, allocations: 5.711 MB / 1.109 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006656/1.128, allocations: 56.02 kB / 1.109 GB, free: 15.51 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.007e-05/1.128, allocations: 15.69 kB / 1.109 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 6.512e-06/1.128, allocations: 5.875 kB / 1.109 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001332/1.129, allocations: 1.028 MB / 1.11 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/1.129, allocations: 4 kB / 1.11 GB, free: 14.47 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003518/1.129, allocations: 142.6 kB / 1.11 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006763/1.13, allocations: 147.4 kB / 1.11 GB, free: 14.2 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005105/1.135, allocations: 7.46 MB / 1.118 GB, free: 6.305 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007946/1.136, allocations: 56.11 kB / 1.118 GB, free: 6.25 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.059e-05/1.136, allocations: 18.86 kB / 1.118 GB, free: 6.234 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 41 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002969/1.136, allocations: 123 kB / 1.118 GB, free: 6.109 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001879/1.137, allocations: 59.34 kB / 1.118 GB, free: 6.051 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001797/1.137, allocations: 69.53 kB / 1.118 GB, free: 6.012 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/1.137, allocations: 4 kB / 1.118 GB, free: 6.008 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/1.137, allocations: 0 / 1.118 GB, free: 6.008 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/1.137, allocations: 3.906 kB / 1.118 GB, free: 6.004 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009642/1.138, allocations: 0.5715 MB / 1.118 GB, free: 5.531 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/1.138, allocations: 0 / 1.118 GB, free: 5.531 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005657/1.138, allocations: 103.8 kB / 1.118 GB, free: 5.43 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008909/1.139, allocations: 240.1 kB / 1.119 GB, free: 5.211 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.152e-05/1.139, allocations: 4.5 kB / 1.119 GB, free: 5.207 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006016/1.145, allocations: 7.922 MB / 1.126 GB, free: 12.6 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/1.145, allocations: 7.938 kB / 1.126 GB, free: 12.59 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001386/1.147, allocations: 0.746 MB / 1.127 GB, free: 11.81 MB / 0.7448 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001439/1.148, allocations: 1.137 MB / 1.128 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000298/1.149, allocations: 180.3 kB / 1.128 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/1.149, allocations: 0 / 1.128 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005986/1.149, allocations: 59.89 kB / 1.129 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.905e-05/1.149, allocations: 19.95 kB / 1.129 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.672e-05/1.149, allocations: 12 kB / 1.129 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0003474/1.15, allocations: 299 kB / 1.129 GB, free: 10.06 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.002156/1.152, allocations: 264 kB / 1.129 GB, free: 9.805 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002186/1.152, allocations: 111.2 kB / 1.129 GB, free: 9.688 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.002335/1.154, allocations: 1.702 MB / 1.131 GB, free: 7.895 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/1.154, allocations: 4.125 kB / 1.131 GB, free: 7.891 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0008907/1.155, allocations: 0.854 MB / 1.132 GB, free: 6.977 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008221/1.156, allocations: 174.3 kB / 1.132 GB, free: 6.812 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002322/1.159, allocations: 0.9203 MB / 1.133 GB, free: 5.859 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007148/1.159, allocations: 1.021 MB / 1.134 GB, free: 4.805 MB / 0.7448 GB Notification: Performance of SimCode: time 5.11e-07/1.159, allocations: 3.938 kB / 1.134 GB, free: 4.801 MB / 0.7448 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLine.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)