Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DCLines,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.824/1.824, 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.0009634/0.0009634, allocations: 178.3 kB / 490.8 MB, free: 1.949 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.145/1.145, allocations: 221.3 MB / 0.7863 GB, free: 13.7 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.000834/0.000834, allocations: 98.61 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4115/0.4123, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.5911, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5229/1.114, allocations: 201.4 MB / 1.408 GB, free: 0.5195 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000192/1.114, allocations: 87.33 kB / 1.408 GB, free: 488 kB / 0.823 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.4547/1.569, allocations: 220.8 MB / 1.624 GB, free: 15.51 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/1.569, allocations: 12 kB / 1.624 GB, free: 15.5 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01661/1.586, allocations: 3.187 MB / 1.627 GB, free: 12.3 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004856/1.59, allocations: 2.315 MB / 1.629 GB, free: 9.914 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.832e-05/1.591, allocations: 79.98 kB / 1.629 GB, free: 9.836 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003721/1.591, allocations: 144 kB / 1.63 GB, free: 9.695 MB / 1.042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005267/1.596, allocations: 3.508 MB / 1.633 GB, free: 6.18 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005196/1.601, allocations: 3.567 MB / 1.637 GB, free: 2.477 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.54e-05/1.601, allocations: 7.938 kB / 1.637 GB, free: 2.469 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002717/1.602, allocations: 7.984 kB / 1.637 GB, free: 2.461 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001192/1.602, allocations: 156.7 kB / 1.637 GB, free: 2.305 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01833/1.62, allocations: 14.02 MB / 1.65 GB, free: 3.129 MB / 1.057 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001385/1.622, allocations: 1.064 MB / 1.651 GB, free: 2.059 MB / 1.057 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/1.623, allocations: 1.034 MB / 1.652 GB, free: 1.02 MB / 1.057 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001067/1.623, allocations: 33.28 kB / 1.652 GB, free: 0.9844 MB / 1.057 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001633/1.625, allocations: 1.29 MB / 1.654 GB, free: 15.63 MB / 1.073 GB Notification: Performance of pre-optimization done (n=163): time 3.486e-06/1.625, allocations: 0 / 1.654 GB, free: 15.63 MB / 1.073 GB Notification: Performance of matching and sorting (n=250): time 0.01687/1.642, allocations: 7.714 MB / 1.661 GB, free: 7.879 MB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002854/1.642, allocations: 0.9061 MB / 1.662 GB, free: 6.762 MB / 1.073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00196/1.644, allocations: 1.56 MB / 1.664 GB, free: 5.188 MB / 1.073 GB Notification: Performance of collectPreVariables (initialization): time 0.0001783/1.644, allocations: 29.7 kB / 1.664 GB, free: 5.152 MB / 1.073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006694/1.645, allocations: 0.9665 MB / 1.665 GB, free: 4.172 MB / 1.073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006141/1.645, allocations: 0.7812 MB / 1.665 GB, free: 3.379 MB / 1.073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/1.645, allocations: 0 / 1.665 GB, free: 3.379 MB / 1.073 GB Notification: Performance of setup shared object (initialization): time 0.0001404/1.646, allocations: 398.7 kB / 1.666 GB, free: 2.984 MB / 1.073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001784/1.647, allocations: 1.246 MB / 1.667 GB, free: 1.734 MB / 1.073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002036/1.649, allocations: 1.617 MB / 1.669 GB, free: 15.98 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001856/1.651, allocations: 1.339 MB / 1.67 GB, free: 14.62 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/1.651, allocations: 4 kB / 1.67 GB, free: 14.62 MB / 1.089 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008432/1.66, allocations: 4.42 MB / 1.674 GB, free: 10.14 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005877/1.66, allocations: 2.275 MB / 1.676 GB, free: 7.676 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/1.66, allocations: 4 kB / 1.676 GB, free: 7.672 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005581/1.666, allocations: 1.626 MB / 1.678 GB, free: 6.039 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003091/1.669, allocations: 0.6437 MB / 1.679 GB, free: 5.395 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0126/1.682, allocations: 8.716 MB / 1.687 GB, free: 12.52 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003631/1.685, allocations: 411.6 kB / 1.688 GB, free: 12.12 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002747/1.686, allocations: 87.97 kB / 1.688 GB, free: 12.03 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 6.142e-06/1.686, allocations: 4 kB / 1.688 GB, free: 12.03 MB / 1.104 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006764/1.692, allocations: 3.684 MB / 1.691 GB, free: 8.297 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/1.692, allocations: 8 kB / 1.691 GB, free: 8.289 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003732/1.696, allocations: 1.426 MB / 1.693 GB, free: 6.859 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003166/1.699, allocations: 0.6866 MB / 1.693 GB, free: 6.172 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01655/1.716, allocations: 11.15 MB / 1.704 GB, free: 10.78 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003612/1.72, allocations: 415.4 kB / 1.705 GB, free: 10.38 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002563/1.72, allocations: 91.92 kB / 1.705 GB, free: 10.29 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.0005044/1.72, allocations: 163 kB / 1.705 GB, free: 10.12 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000419/1.721, allocations: 304.4 kB / 1.705 GB, free: 9.82 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006659/1.721, allocations: 329.2 kB / 1.705 GB, free: 9.488 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-05/1.721, allocations: 24 kB / 1.705 GB, free: 9.465 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.724e-05/1.721, allocations: 11.98 kB / 1.705 GB, free: 9.453 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.127e-05/1.722, allocations: 15.89 kB / 1.705 GB, free: 9.438 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003314/1.725, allocations: 2.841 MB / 1.708 GB, free: 6.555 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/1.725, allocations: 0 / 1.708 GB, free: 6.555 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002735/1.728, allocations: 0.5735 MB / 1.709 GB, free: 5.98 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005434/1.733, allocations: 1.654 MB / 1.71 GB, free: 4.32 MB / 1.12 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000221/1.733, allocations: 19.97 kB / 1.71 GB, free: 4.301 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01858/1.752, allocations: 12.67 MB / 1.723 GB, free: 7.398 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.752, allocations: 0 / 1.723 GB, free: 7.398 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008143/1.76, allocations: 4.237 MB / 1.727 GB, free: 3.137 MB / 1.135 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008023/1.768, allocations: 4.659 MB / 1.732 GB, free: 14.45 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001263/1.769, allocations: 0.6457 MB / 1.732 GB, free: 13.78 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005021/1.77, allocations: 8 kB / 1.732 GB, free: 13.77 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003128/1.773, allocations: 423.5 kB / 1.733 GB, free: 13.36 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005505/1.774, allocations: 233.6 kB / 1.733 GB, free: 13.12 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002306/1.774, allocations: 67.97 kB / 1.733 GB, free: 13.06 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001546/1.775, allocations: 1.161 MB / 1.734 GB, free: 11.89 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004223/1.78, allocations: 1.367 MB / 1.735 GB, free: 10.52 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.0003428/1.78, allocations: 147 kB / 1.735 GB, free: 10.37 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01278/1.793, allocations: 6.894 MB / 1.742 GB, free: 3.379 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/1.793, allocations: 4 kB / 1.742 GB, free: 3.375 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.004763/1.797, allocations: 2.48 MB / 1.745 GB, free: 0.875 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003182/1.801, allocations: 0.8394 MB / 1.745 GB, free: 44 kB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2967/2.097, allocations: 5.192 MB / 1.751 GB, free: 420.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002126/2.1, allocations: 2.414 MB / 1.753 GB, free: 419.3 MB / 1.151 GB Notification: Performance of SimCode: time 4.61e-07/2.1, allocations: 0 / 1.753 GB, free: 419.3 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat does not exist to compare? outputFormat=mat