Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.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.DCLine,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.817/1.817, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.0009543/0.0009543, allocations: 184.4 kB / 487 MB, free: 5.395 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.164/1.164, allocations: 221.3 MB / 0.7819 GB, free: 1.406 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.0008476/0.0008476, allocations: 98.38 kB / 0.9213 GB, free: 2.66 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4184/0.4193, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.6006, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5237/1.124, allocations: 191.2 MB / 1.392 GB, free: 2.418 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000197/1.125, allocations: 88.38 kB / 1.392 GB, free: 2.371 MB / 0.823 GB [/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);. [/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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.1029/1.227, allocations: 50.26 MB / 1.441 GB, free: 8.77 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/1.228, allocations: 8 kB / 1.441 GB, free: 8.762 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003341/1.231, allocations: 0.629 MB / 1.442 GB, free: 8.145 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009429/1.232, allocations: 0.5832 MB / 1.442 GB, free: 7.613 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/1.232, allocations: 16 kB / 1.442 GB, free: 7.598 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.849e-05/1.232, allocations: 36 kB / 1.442 GB, free: 7.562 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009867/1.233, allocations: 0.7194 MB / 1.443 GB, free: 7.105 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/1.234, allocations: 0.8154 MB / 1.444 GB, free: 6.469 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/1.234, allocations: 3.984 kB / 1.444 GB, free: 6.465 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-05/1.234, allocations: 0 / 1.444 GB, free: 6.465 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.768e-05/1.234, allocations: 45.22 kB / 1.444 GB, free: 6.422 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003756/1.238, allocations: 3.449 MB / 1.447 GB, free: 3.121 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004027/1.238, allocations: 274.2 kB / 1.448 GB, free: 2.926 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/1.239, allocations: 173.1 kB / 1.448 GB, free: 2.812 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.194e-05/1.239, allocations: 4 kB / 1.448 GB, free: 2.809 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/1.239, allocations: 34.34 kB / 1.448 GB, free: 2.77 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=31): time 1.352e-06/1.239, allocations: 0 / 1.448 GB, free: 2.77 MB / 0.8698 GB Notification: Performance of matching and sorting (n=43): time 0.002484/1.241, allocations: 1.147 MB / 1.449 GB, free: 1.82 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/1.241, allocations: 136 kB / 1.449 GB, free: 1.66 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004223/1.242, allocations: 392.1 kB / 1.449 GB, free: 1.359 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/1.242, allocations: 25.7 kB / 1.449 GB, free: 1.328 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000144/1.242, allocations: 290.4 kB / 1.45 GB, free: 1.066 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/1.242, allocations: 140.8 kB / 1.45 GB, free: 0.9453 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.759e-05/1.242, allocations: 7.938 kB / 1.45 GB, free: 0.9375 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001464/1.242, allocations: 369.4 kB / 1.45 GB, free: 0.5898 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002573/1.242, allocations: 182 kB / 1.45 GB, free: 488 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003108/1.243, allocations: 303.8 kB / 1.451 GB, free: 200 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000291/1.243, allocations: 225.9 kB / 1.451 GB, free: 48 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/1.243, allocations: 0 / 1.451 GB, free: 48 kB / 0.8698 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001454/1.245, allocations: 0.7432 MB / 1.452 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003288/1.245, allocations: 1.223 MB / 1.453 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/1.245, allocations: 4 kB / 1.453 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009603/1.246, allocations: 231.5 kB / 1.453 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006574/1.247, allocations: 131.7 kB / 1.453 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003883/1.25, allocations: 5.712 MB / 1.459 GB, free: 7.938 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006212/1.251, allocations: 51.97 kB / 1.459 GB, free: 7.887 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.467e-05/1.251, allocations: 23.05 kB / 1.459 GB, free: 7.867 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.212e-06/1.251, allocations: 4 kB / 1.459 GB, free: 7.863 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001264/1.252, allocations: 1.029 MB / 1.46 GB, free: 6.844 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/1.252, allocations: 352 / 1.46 GB, free: 6.844 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003354/1.253, allocations: 135.1 kB / 1.46 GB, free: 6.715 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006894/1.253, allocations: 155 kB / 1.46 GB, free: 6.566 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00468/1.258, allocations: 7.473 MB / 1.467 GB, free: 14.66 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006121/1.259, allocations: 55.95 kB / 1.467 GB, free: 14.6 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.714e-05/1.259, allocations: 19.69 kB / 1.467 GB, free: 14.59 MB / 0.9011 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.0001603/1.259, allocations: 131 kB / 1.468 GB, free: 14.46 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.86e-05/1.259, allocations: 59.25 kB / 1.468 GB, free: 14.4 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/1.259, allocations: 68.41 kB / 1.468 GB, free: 14.36 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/1.259, allocations: 4 kB / 1.468 GB, free: 14.36 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/1.259, allocations: 3.938 kB / 1.468 GB, free: 14.36 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/1.259, allocations: 3.984 kB / 1.468 GB, free: 14.35 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006735/1.26, allocations: 0.5587 MB / 1.468 GB, free: 13.89 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/1.26, allocations: 3.984 kB / 1.468 GB, free: 13.89 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000551/1.26, allocations: 103.2 kB / 1.468 GB, free: 13.79 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008667/1.261, allocations: 249 kB / 1.469 GB, free: 13.56 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.489e-05/1.261, allocations: 7.922 kB / 1.469 GB, free: 13.55 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005329/1.267, allocations: 7.915 MB / 1.476 GB, free: 5.344 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/1.267, allocations: 4.031 kB / 1.476 GB, free: 5.34 MB / 0.9011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001315/1.268, allocations: 0.7466 MB / 1.477 GB, free: 4.703 MB / 0.9011 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001396/1.27, allocations: 1.133 MB / 1.478 GB, free: 3.684 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002331/1.27, allocations: 175.4 kB / 1.478 GB, free: 3.516 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.136e-05/1.27, allocations: 4 kB / 1.478 GB, free: 3.512 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005424/1.27, allocations: 51.94 kB / 1.478 GB, free: 3.461 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.321e-05/1.27, allocations: 23.66 kB / 1.478 GB, free: 3.441 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.438e-05/1.271, allocations: 19.39 kB / 1.478 GB, free: 3.426 MB / 0.9011 GB Notification: Performance of sort global known variables: time 0.0002999/1.271, allocations: 299.4 kB / 1.479 GB, free: 3.207 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.00209/1.273, allocations: 256 kB / 1.479 GB, free: 2.957 MB / 0.9011 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.0001871/1.273, allocations: 115.2 kB / 1.479 GB, free: 2.836 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.002107/1.275, allocations: 1.698 MB / 1.481 GB, free: 1.289 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/1.275, allocations: 0 / 1.481 GB, free: 1.289 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0008225/1.276, allocations: 0.8515 MB / 1.482 GB, free: 476 kB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007149/1.277, allocations: 168.1 kB / 1.482 GB, free: 340 kB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001871/1.279, allocations: 0.927 MB / 1.483 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000614/1.279, allocations: 1.023 MB / 1.484 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of SimCode: time 4.11e-07/1.279, allocations: 0 / 1.484 GB, free: 14.46 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat does not exist to compare? outputFormat=mat