Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",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.838/1.838, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.0009853/0.0009853, allocations: 189.2 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.125/1.125, allocations: 221.4 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.0008469/0.0008469, allocations: 91.42 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4082/0.4091, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.6088, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5237/1.132, allocations: 177.7 MB / 1.385 GB, free: 17.23 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/1.133, allocations: 92.47 kB / 1.385 GB, free: 17.21 MB / 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/PartialTwoPortResistance.mo:13:3-13: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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13: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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.04899/1.182, allocations: 25.89 MB / 1.411 GB, free: 17.91 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.908e-05/1.182, allocations: 8 kB / 1.411 GB, free: 17.9 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007935/1.183, allocations: 115.4 kB / 1.411 GB, free: 17.79 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004771/1.183, allocations: 326.1 kB / 1.411 GB, free: 17.46 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.971e-05/1.183, allocations: 42.48 kB / 1.411 GB, free: 17.41 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.617e-05/1.183, allocations: 20 kB / 1.411 GB, free: 17.39 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004325/1.184, allocations: 331.6 kB / 1.411 GB, free: 17.18 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004983/1.184, allocations: 440.1 kB / 1.412 GB, free: 16.83 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/1.184, allocations: 3.938 kB / 1.412 GB, free: 16.82 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/1.184, allocations: 4 kB / 1.412 GB, free: 16.82 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.757e-05/1.184, allocations: 28.14 kB / 1.412 GB, free: 16.79 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001969/1.186, allocations: 2.14 MB / 1.414 GB, free: 14.67 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004492/1.187, allocations: 227.2 kB / 1.414 GB, free: 14.5 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002489/1.187, allocations: 137.6 kB / 1.414 GB, free: 14.39 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/1.187, allocations: 0 / 1.414 GB, free: 14.39 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.387e-05/1.187, allocations: 38.5 kB / 1.414 GB, free: 14.35 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=19): time 1.021e-06/1.187, allocations: 0 / 1.414 GB, free: 14.35 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.0005798/1.188, allocations: 253.6 kB / 1.415 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.357e-05/1.188, allocations: 63.33 kB / 1.415 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/1.188, allocations: 166.3 kB / 1.415 GB, free: 13.92 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/1.188, allocations: 29.7 kB / 1.415 GB, free: 13.89 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.507e-05/1.188, allocations: 195.1 kB / 1.415 GB, free: 13.7 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.274e-05/1.188, allocations: 69.34 kB / 1.415 GB, free: 13.64 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.077e-05/1.188, allocations: 0 / 1.415 GB, free: 13.64 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001109/1.188, allocations: 330.8 kB / 1.415 GB, free: 13.32 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/1.188, allocations: 77.03 kB / 1.415 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/1.188, allocations: 156 kB / 1.416 GB, free: 13.11 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001297/1.188, allocations: 96.86 kB / 1.416 GB, free: 13.04 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/1.188, allocations: 3.906 kB / 1.416 GB, free: 13.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006006/1.189, allocations: 317.1 kB / 1.416 GB, free: 12.77 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003059/1.189, allocations: 0.9593 MB / 1.417 GB, free: 11.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/1.189, allocations: 8 kB / 1.417 GB, free: 11.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003963/1.19, allocations: 99.94 kB / 1.417 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002216/1.19, allocations: 55.91 kB / 1.417 GB, free: 11.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/1.192, allocations: 1.951 MB / 1.419 GB, free: 9.598 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/1.192, allocations: 31.67 kB / 1.419 GB, free: 9.566 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/1.192, allocations: 15.44 kB / 1.419 GB, free: 9.555 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.839e-06/1.192, allocations: 4.094 kB / 1.419 GB, free: 9.551 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004689/1.193, allocations: 238.2 kB / 1.419 GB, free: 9.367 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-06/1.193, allocations: 0 / 1.419 GB, free: 9.367 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002494/1.193, allocations: 76.11 kB / 1.419 GB, free: 9.297 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/1.193, allocations: 59.59 kB / 1.419 GB, free: 9.242 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/1.195, allocations: 1.404 MB / 1.421 GB, free: 7.793 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002148/1.195, allocations: 23.88 kB / 1.421 GB, free: 7.77 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/1.195, allocations: 15.88 kB / 1.421 GB, free: 7.758 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 9.205e-05/1.195, allocations: 110.3 kB / 1.421 GB, free: 7.645 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.687e-05/1.195, allocations: 19.72 kB / 1.421 GB, free: 7.625 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.543e-05/1.195, allocations: 25.41 kB / 1.421 GB, free: 7.617 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/1.195, allocations: 3.984 kB / 1.421 GB, free: 7.613 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/1.195, allocations: 0 / 1.421 GB, free: 7.613 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/1.195, allocations: 0 / 1.421 GB, free: 7.613 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001022/1.196, allocations: 0.7389 MB / 1.422 GB, free: 6.926 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/1.196, allocations: 3.938 kB / 1.422 GB, free: 6.922 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/1.196, allocations: 51.34 kB / 1.422 GB, free: 6.875 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003302/1.197, allocations: 94.77 kB / 1.422 GB, free: 6.789 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/1.197, allocations: 0 / 1.422 GB, free: 6.789 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002359/1.199, allocations: 2.655 MB / 1.424 GB, free: 4.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/1.199, allocations: 0 / 1.424 GB, free: 4.02 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005493/1.2, allocations: 397 kB / 1.425 GB, free: 3.645 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006441/1.2, allocations: 0.7655 MB / 1.426 GB, free: 2.895 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.392e-05/1.2, allocations: 116.6 kB / 1.426 GB, free: 2.766 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/1.201, allocations: 3.906 kB / 1.426 GB, free: 2.762 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/1.201, allocations: 11.98 kB / 1.426 GB, free: 2.75 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.766e-05/1.201, allocations: 19.7 kB / 1.426 GB, free: 2.734 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.642e-05/1.201, allocations: 8 kB / 1.426 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001044/1.201, allocations: 139.5 kB / 1.426 GB, free: 2.609 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001615/1.203, allocations: 159.3 kB / 1.426 GB, free: 2.453 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001113/1.203, allocations: 99.19 kB / 1.426 GB, free: 2.348 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001397/1.204, allocations: 0.5672 MB / 1.427 GB, free: 1.844 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/1.204, allocations: 4.312 kB / 1.427 GB, free: 1.84 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0006322/1.205, allocations: 331 kB / 1.427 GB, free: 1.527 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/1.205, allocations: 44.27 kB / 1.427 GB, free: 1.492 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007818/1.206, allocations: 411.2 kB / 1.427 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004405/1.206, allocations: 0.8376 MB / 1.428 GB, free: 252 kB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.206, allocations: 0 / 1.428 GB, free: 252 kB / 0.8386 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat does not exist to compare? outputFormat=mat