Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.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.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",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.792/1.792, allocations: 390.4 MB / 397.7 MB, free: 11.24 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.0009427/0.0009427, allocations: 184.1 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.115/1.115, allocations: 221.3 MB / 0.7863 GB, free: 13.72 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.0008122/0.0008122, allocations: 85.75 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4076/0.4085, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.5825, allocations: 143 MB / 1.212 GB, free: 40.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.509/1.092, allocations: 182.5 MB / 1.39 GB, free: 15.05 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/1.092, allocations: 89.05 kB / 1.39 GB, free: 15.04 MB / 0.823 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/DC/Sensors/GeneralizedSensor.mo:39:3-39: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/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/DC/Sensors/GeneralizedSensor.mo:39:3-39: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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.04911/1.141, allocations: 26.03 MB / 1.415 GB, free: 12.65 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/1.141, allocations: 15.98 kB / 1.415 GB, free: 12.63 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001114/1.142, allocations: 155.3 kB / 1.416 GB, free: 12.48 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005365/1.143, allocations: 343.9 kB / 1.416 GB, free: 12.13 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/1.143, allocations: 19.98 kB / 1.416 GB, free: 12.11 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.316e-05/1.143, allocations: 16 kB / 1.416 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005152/1.143, allocations: 350.1 kB / 1.416 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006289/1.144, allocations: 491.4 kB / 1.417 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/1.144, allocations: 4 kB / 1.417 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/1.144, allocations: 4 kB / 1.417 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-05/1.144, allocations: 24.64 kB / 1.417 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/1.146, allocations: 2.34 MB / 1.419 GB, free: 9.102 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001793/1.146, allocations: 126.4 kB / 1.419 GB, free: 9.012 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001295/1.147, allocations: 102.8 kB / 1.419 GB, free: 8.941 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.264e-05/1.147, allocations: 4 kB / 1.419 GB, free: 8.938 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/1.147, allocations: 34.06 kB / 1.419 GB, free: 8.898 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 1.232e-06/1.147, allocations: 0 / 1.419 GB, free: 8.898 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.001426/1.148, allocations: 0.7967 MB / 1.42 GB, free: 8.168 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.56e-05/1.148, allocations: 55.41 kB / 1.42 GB, free: 8.102 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/1.148, allocations: 231.2 kB / 1.42 GB, free: 7.91 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/1.148, allocations: 25.7 kB / 1.42 GB, free: 7.879 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.912e-05/1.148, allocations: 212.3 kB / 1.421 GB, free: 7.688 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.819e-05/1.148, allocations: 74.06 kB / 1.421 GB, free: 7.621 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.211e-05/1.149, allocations: 4 kB / 1.421 GB, free: 7.617 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.34e-05/1.149, allocations: 334.5 kB / 1.421 GB, free: 7.293 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/1.149, allocations: 97.31 kB / 1.421 GB, free: 7.227 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/1.149, allocations: 192 kB / 1.421 GB, free: 7.047 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/1.149, allocations: 124.6 kB / 1.421 GB, free: 6.965 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/1.149, allocations: 3.938 kB / 1.421 GB, free: 6.961 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006383/1.15, allocations: 403.4 kB / 1.422 GB, free: 6.633 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/1.15, allocations: 4 kB / 1.422 GB, free: 6.629 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/1.15, allocations: 4 kB / 1.422 GB, free: 6.625 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003246/1.15, allocations: 93.48 kB / 1.422 GB, free: 6.535 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000286/1.15, allocations: 67.33 kB / 1.422 GB, free: 6.473 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002644/1.153, allocations: 3.859 MB / 1.426 GB, free: 2.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002035/1.153, allocations: 8.047 kB / 1.426 GB, free: 2.422 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/1.153, allocations: 11.5 kB / 1.426 GB, free: 2.414 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.356e-05/1.153, allocations: 120.8 kB / 1.426 GB, free: 2.289 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.711e-05/1.153, allocations: 31.8 kB / 1.426 GB, free: 2.258 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.359e-05/1.154, allocations: 37.84 kB / 1.426 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/1.154, allocations: 7.984 kB / 1.426 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/1.154, allocations: 0 / 1.426 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/1.154, allocations: 0 / 1.426 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003612/1.154, allocations: 338.8 kB / 1.426 GB, free: 1.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/1.154, allocations: 0 / 1.426 GB, free: 1.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/1.154, allocations: 31.98 kB / 1.426 GB, free: 1.898 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002915/1.154, allocations: 89.02 kB / 1.426 GB, free: 1.816 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/1.154, allocations: 0 / 1.426 GB, free: 1.816 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002575/1.157, allocations: 3.857 MB / 1.43 GB, free: 13.78 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.75e-06/1.157, allocations: 7.891 kB / 1.43 GB, free: 13.77 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007167/1.158, allocations: 0.5443 MB / 1.431 GB, free: 13.32 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009448/1.159, allocations: 1.037 MB / 1.432 GB, free: 12.43 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/1.159, allocations: 123.5 kB / 1.432 GB, free: 12.29 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.296e-05/1.159, allocations: 7.906 kB / 1.432 GB, free: 12.29 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001928/1.159, allocations: 7.938 kB / 1.432 GB, free: 12.28 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.842e-05/1.159, allocations: 14.53 kB / 1.432 GB, free: 12.27 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/1.159, allocations: 11.38 kB / 1.432 GB, free: 12.26 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.0001393/1.159, allocations: 166.6 kB / 1.432 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0009659/1.16, allocations: 88 kB / 1.432 GB, free: 12.04 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 15 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000122/1.16, allocations: 103.2 kB / 1.432 GB, free: 11.93 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006601/1.161, allocations: 0.5512 MB / 1.433 GB, free: 11.42 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.161, allocations: 0 / 1.433 GB, free: 11.42 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0004127/1.162, allocations: 432.7 kB / 1.433 GB, free: 11.01 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/1.162, allocations: 58.38 kB / 1.433 GB, free: 10.96 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008516/1.163, allocations: 0.4972 MB / 1.434 GB, free: 10.49 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004494/1.163, allocations: 0.8676 MB / 1.435 GB, free: 9.605 MB / 0.8542 GB Notification: Performance of SimCode: time 3.11e-07/1.163, allocations: 4 kB / 1.435 GB, free: 9.602 MB / 0.8542 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat does not exist to compare? outputFormat=mat