Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.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.DCLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.765/1.765, allocations: 390.4 MB / 397.7 MB, free: 10.62 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009579/0.000958, allocations: 181.1 kB / 490.8 MB, free: 11.16 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.106/1.106, allocations: 221.4 MB / 0.7863 GB, free: 13.51 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008272/0.0008272, allocations: 94.23 kB / 0.9264 GB, free: 4.516 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2443/0.2451, allocations: 149.1 MB / 1.072 GB, free: 15.45 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4966/0.7417, allocations: 143 MB / 1.212 GB, free: 155.9 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1588/0.9005, allocations: 192 MB / 1.399 GB, free: 15.58 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002281/0.9008, allocations: 87.94 kB / 1.399 GB, free: 15.49 MB / 0.9011 GB [/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);. [/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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.1062/1.007, allocations: 50.26 MB / 1.448 GB, free: 12.88 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/1.007, allocations: 8 kB / 1.448 GB, free: 12.87 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003321/1.01, allocations: 0.6272 MB / 1.449 GB, free: 12.24 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/1.011, allocations: 0.5934 MB / 1.45 GB, free: 11.61 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/1.011, allocations: 16 kB / 1.45 GB, free: 11.59 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.247e-05/1.011, allocations: 28 kB / 1.45 GB, free: 11.56 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001073/1.013, allocations: 0.721 MB / 1.45 GB, free: 10.84 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/1.014, allocations: 0.8056 MB / 1.451 GB, free: 9.996 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/1.014, allocations: 3.906 kB / 1.451 GB, free: 9.992 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.935e-05/1.014, allocations: 4 kB / 1.451 GB, free: 9.988 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.586e-05/1.014, allocations: 45.28 kB / 1.451 GB, free: 9.945 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004039/1.018, allocations: 3.447 MB / 1.454 GB, free: 6.203 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004324/1.018, allocations: 264.3 kB / 1.455 GB, free: 5.938 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002497/1.019, allocations: 182 kB / 1.455 GB, free: 5.758 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/1.019, allocations: 0 / 1.455 GB, free: 5.758 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/1.019, allocations: 50.48 kB / 1.455 GB, free: 5.699 MB / 0.948 GB Notification: Performance of pre-optimization done (n=31): time 2.384e-06/1.019, allocations: 0 / 1.455 GB, free: 5.699 MB / 0.948 GB Notification: Performance of matching and sorting (n=43): time 0.002622/1.021, allocations: 1.134 MB / 1.456 GB, free: 4.539 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/1.021, allocations: 136.5 kB / 1.456 GB, free: 4.375 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000425/1.022, allocations: 394.7 kB / 1.457 GB, free: 3.984 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 3.508e-05/1.022, allocations: 33.7 kB / 1.457 GB, free: 3.945 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/1.022, allocations: 287.8 kB / 1.457 GB, free: 3.656 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/1.022, allocations: 141.9 kB / 1.457 GB, free: 3.516 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.636e-05/1.022, allocations: 0 / 1.457 GB, free: 3.516 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001275/1.022, allocations: 362.8 kB / 1.457 GB, free: 3.152 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002842/1.023, allocations: 188.9 kB / 1.458 GB, free: 2.965 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003381/1.023, allocations: 308.8 kB / 1.458 GB, free: 2.613 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003127/1.023, allocations: 225.5 kB / 1.458 GB, free: 2.395 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/1.023, allocations: 0 / 1.458 GB, free: 2.395 MB / 0.948 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001526/1.025, allocations: 0.7446 MB / 1.459 GB, free: 1.625 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000385/1.025, allocations: 1.213 MB / 1.46 GB, free: 324 kB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/1.025, allocations: 6.062 kB / 1.46 GB, free: 320 kB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009339/1.026, allocations: 236.9 kB / 1.46 GB, free: 64 kB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006495/1.027, allocations: 131.9 kB / 1.46 GB, free: 15.93 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004127/1.031, allocations: 5.701 MB / 1.466 GB, free: 9.812 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005591/1.032, allocations: 60.05 kB / 1.466 GB, free: 9.754 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.228e-05/1.032, allocations: 25.77 kB / 1.466 GB, free: 9.73 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 5.08e-06/1.032, allocations: 4 kB / 1.466 GB, free: 9.727 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001337/1.033, allocations: 1.038 MB / 1.467 GB, free: 8.559 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/1.033, allocations: 4 kB / 1.467 GB, free: 8.555 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003337/1.033, allocations: 137.3 kB / 1.467 GB, free: 8.402 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006748/1.034, allocations: 147.8 kB / 1.467 GB, free: 8.258 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004721/1.039, allocations: 7.462 MB / 1.475 GB, free: 120 kB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005241/1.039, allocations: 61.02 kB / 1.475 GB, free: 60 kB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.07e-05/1.039, allocations: 19.98 kB / 1.475 GB, free: 40 kB / 0.9636 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.0001343/1.039, allocations: 120.8 kB / 1.475 GB, free: 15.91 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/1.04, allocations: 63.25 kB / 1.475 GB, free: 15.85 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001387/1.04, allocations: 71.09 kB / 1.475 GB, free: 15.78 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/1.04, allocations: 4 kB / 1.475 GB, free: 15.78 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/1.04, allocations: 0 / 1.475 GB, free: 15.78 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/1.04, allocations: 4 kB / 1.475 GB, free: 15.77 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006687/1.04, allocations: 0.5711 MB / 1.475 GB, free: 15.17 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/1.04, allocations: 0 / 1.475 GB, free: 15.17 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005343/1.041, allocations: 107.8 kB / 1.476 GB, free: 15.06 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008387/1.042, allocations: 240.9 kB / 1.476 GB, free: 14.81 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/1.042, allocations: 4 kB / 1.476 GB, free: 14.8 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005862/1.048, allocations: 7.917 MB / 1.483 GB, free: 6.207 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.048, allocations: 4 kB / 1.483 GB, free: 6.203 MB / 0.9792 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001426/1.049, allocations: 0.7536 MB / 1.484 GB, free: 5.414 MB / 0.9792 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001478/1.051, allocations: 1.121 MB / 1.485 GB, free: 4.254 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002503/1.051, allocations: 180.3 kB / 1.485 GB, free: 4.059 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.688e-05/1.051, allocations: 5.438 kB / 1.485 GB, free: 4.055 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005431/1.052, allocations: 51.95 kB / 1.486 GB, free: 4.004 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.95e-05/1.052, allocations: 23.95 kB / 1.486 GB, free: 3.98 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-05/1.052, allocations: 12 kB / 1.486 GB, free: 3.969 MB / 0.9792 GB Notification: Performance of sort global known variables: time 0.0004031/1.052, allocations: 299.5 kB / 1.486 GB, free: 3.68 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.002035/1.054, allocations: 263.9 kB / 1.486 GB, free: 3.422 MB / 0.9792 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.0001877/1.054, allocations: 115.2 kB / 1.486 GB, free: 3.301 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.002235/1.057, allocations: 1.707 MB / 1.488 GB, free: 1.504 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/1.057, allocations: 0.6562 kB / 1.488 GB, free: 1.504 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.000903/1.058, allocations: 0.8619 MB / 1.489 GB, free: 0.582 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007229/1.058, allocations: 165.4 kB / 1.489 GB, free: 440 kB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/1.06, allocations: 0.9242 MB / 1.49 GB, free: 15.48 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006608/1.061, allocations: 1.029 MB / 1.491 GB, free: 14.42 MB / 0.9948 GB Notification: Performance of SimCode: time 2.3e-07/1.061, allocations: 0 / 1.491 GB, free: 14.42 MB / 0.9948 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat does not exist to compare? outputFormat=mat