Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.809/1.809, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0009567/0.0009568, allocations: 189.2 kB / 490.8 MB, free: 1.957 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.131/1.131, allocations: 221.4 MB / 0.7863 GB, free: 13.81 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000815/0.000815, allocations: 98.36 kB / 0.9264 GB, free: 14.35 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4039/0.4047, allocations: 149.1 MB / 1.072 GB, free: 164.6 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.5875, allocations: 143 MB / 1.212 GB, free: 21.87 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5324/1.12, allocations: 201.7 MB / 1.409 GB, free: 2.273 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002049/1.12, allocations: 86.02 kB / 1.409 GB, free: 2.23 MB / 0.8542 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0-master/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.4641/1.584, allocations: 222.7 MB / 1.626 GB, free: 14.42 MB / 1.073 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/1.584, allocations: 8 kB / 1.626 GB, free: 14.41 MB / 1.073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01695/1.601, allocations: 3.191 MB / 1.629 GB, free: 11.21 MB / 1.073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006616/1.608, allocations: 2.576 MB / 1.632 GB, free: 8.566 MB / 1.073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003046/1.608, allocations: 385.7 kB / 1.632 GB, free: 8.125 MB / 1.073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007061/1.609, allocations: 140 kB / 1.632 GB, free: 7.988 MB / 1.073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006032/1.615, allocations: 3.59 MB / 1.636 GB, free: 4.383 MB / 1.073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005995/1.621, allocations: 3.684 MB / 1.639 GB, free: 0.5586 MB / 1.073 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.21e-05/1.621, allocations: 0 / 1.639 GB, free: 0.5586 MB / 1.073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003037/1.621, allocations: 8 kB / 1.639 GB, free: 0.5508 MB / 1.073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001197/1.622, allocations: 156.8 kB / 1.64 GB, free: 404 kB / 1.073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01993/1.641, allocations: 14.54 MB / 1.654 GB, free: 0.6992 MB / 1.089 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/1.643, allocations: 1.131 MB / 1.655 GB, free: 15.56 MB / 1.104 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/1.644, allocations: 1.101 MB / 1.656 GB, free: 14.45 MB / 1.104 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001134/1.644, allocations: 25.3 kB / 1.656 GB, free: 14.43 MB / 1.104 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001724/1.646, allocations: 1.371 MB / 1.657 GB, free: 13 MB / 1.104 GB Notification: Performance of pre-optimization done (n=163): time 3.236e-06/1.646, allocations: 0 / 1.657 GB, free: 13 MB / 1.104 GB Notification: Performance of matching and sorting (n=250): time 0.0211/1.667, allocations: 8.681 MB / 1.666 GB, free: 4.281 MB / 1.104 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003398/1.668, allocations: 0.9022 MB / 1.667 GB, free: 3.168 MB / 1.104 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002016/1.67, allocations: 1.56 MB / 1.668 GB, free: 1.598 MB / 1.104 GB Notification: Performance of collectPreVariables (initialization): time 0.0001967/1.67, allocations: 33.7 kB / 1.668 GB, free: 1.559 MB / 1.104 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006298/1.671, allocations: 0.951 MB / 1.669 GB, free: 0.5938 MB / 1.104 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006804/1.671, allocations: 0.7969 MB / 1.67 GB, free: 15.78 MB / 1.12 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/1.671, allocations: 0 / 1.67 GB, free: 15.78 MB / 1.12 GB Notification: Performance of setup shared object (initialization): time 0.0001756/1.672, allocations: 398.6 kB / 1.67 GB, free: 15.39 MB / 1.12 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002073/1.674, allocations: 1.41 MB / 1.672 GB, free: 13.97 MB / 1.12 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002301/1.676, allocations: 1.778 MB / 1.673 GB, free: 12.06 MB / 1.12 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002127/1.678, allocations: 1.479 MB / 1.675 GB, free: 10.56 MB / 1.12 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/1.678, allocations: 4 kB / 1.675 GB, free: 10.56 MB / 1.12 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01121/1.689, allocations: 5.139 MB / 1.68 GB, free: 5.359 MB / 1.12 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/1.689, allocations: 8.344 kB / 1.68 GB, free: 5.352 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/1.689, allocations: 8 kB / 1.68 GB, free: 5.344 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009129/1.699, allocations: 2.765 MB / 1.683 GB, free: 2.57 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003078/1.702, allocations: 0.6242 MB / 1.683 GB, free: 1.945 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03194/1.734, allocations: 15.48 MB / 1.698 GB, free: 2.215 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004096/1.738, allocations: 419.6 kB / 1.699 GB, free: 1.805 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004255/1.738, allocations: 91.97 kB / 1.699 GB, free: 1.715 MB / 1.135 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.0005677/1.739, allocations: 157.5 kB / 1.699 GB, free: 1.559 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006267/1.739, allocations: 308.4 kB / 1.699 GB, free: 1.254 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006658/1.74, allocations: 317.2 kB / 1.7 GB, free: 0.9336 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.781e-05/1.74, allocations: 28 kB / 1.7 GB, free: 0.9062 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.257e-05/1.74, allocations: 8 kB / 1.7 GB, free: 0.8984 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/1.74, allocations: 15.95 kB / 1.7 GB, free: 0.8828 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004379/1.744, allocations: 3.324 MB / 1.703 GB, free: 13.52 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/1.744, allocations: 0 / 1.703 GB, free: 13.52 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002683/1.747, allocations: 0.5583 MB / 1.703 GB, free: 12.96 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0088/1.756, allocations: 2.741 MB / 1.706 GB, free: 10.21 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002553/1.756, allocations: 15.97 kB / 1.706 GB, free: 10.19 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3202/2.076, allocations: 15.47 MB / 1.721 GB, free: 417.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/2.076, allocations: 1.438 kB / 1.721 GB, free: 417.3 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01005/2.087, allocations: 4.971 MB / 1.726 GB, free: 417.1 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009762/2.096, allocations: 5.393 MB / 1.731 GB, free: 416.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/2.098, allocations: 0.6794 MB / 1.732 GB, free: 416.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005452/2.098, allocations: 13.28 kB / 1.732 GB, free: 416.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003179/2.101, allocations: 430.8 kB / 1.732 GB, free: 416.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006398/2.102, allocations: 264.2 kB / 1.733 GB, free: 416.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002509/2.102, allocations: 72.09 kB / 1.733 GB, free: 416.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001373/2.104, allocations: 1.166 MB / 1.734 GB, free: 416.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002824/2.106, allocations: 0.888 MB / 1.735 GB, free: 416.2 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.0003385/2.107, allocations: 144.5 kB / 1.735 GB, free: 416.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01474/2.122, allocations: 4.933 MB / 1.74 GB, free: 415.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/2.122, allocations: 9.094 kB / 1.74 GB, free: 415.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01254/2.134, allocations: 3.175 MB / 1.743 GB, free: 415.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003501/2.138, allocations: 0.8378 MB / 1.744 GB, free: 415.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009436/2.147, allocations: 5.208 MB / 1.749 GB, free: 414.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00207/2.149, allocations: 2.402 MB / 1.751 GB, free: 413.5 MB / 1.151 GB Notification: Performance of SimCode: time 5.91e-07/2.149, allocations: 0 / 1.751 GB, free: 413.5 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat does not exist to compare? outputFormat=mat