Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource",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.835/1.835, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.0009829/0.0009829, allocations: 177.3 kB / 487 MB, free: 5.367 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.141/1.141, allocations: 221.3 MB / 0.7819 GB, free: 1.363 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.0008429/0.0008429, allocations: 101.9 kB / 0.9213 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4031/0.4039, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1856/0.5895, allocations: 142.3 MB / 1.205 GB, free: 26.17 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5418/1.131, allocations: 176 MB / 1.377 GB, free: 1.035 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001921/1.132, allocations: 91.52 kB / 1.377 GB, free: 0.9844 MB / 0.8073 GB [/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/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 9.1.1-maint.9.1.x/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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.03101/1.163, allocations: 15.34 MB / 1.392 GB, free: 4.195 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/1.163, allocations: 9 kB / 1.392 GB, free: 4.188 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006212/1.163, allocations: 79.64 kB / 1.392 GB, free: 4.109 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002985/1.164, allocations: 259.3 kB / 1.393 GB, free: 3.832 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/1.164, allocations: 4 kB / 1.393 GB, free: 3.828 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.657e-05/1.164, allocations: 16 kB / 1.393 GB, free: 3.812 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002669/1.164, allocations: 186.6 kB / 1.393 GB, free: 3.688 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003342/1.164, allocations: 271.7 kB / 1.393 GB, free: 3.457 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/1.164, allocations: 0 / 1.393 GB, free: 3.457 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/1.164, allocations: 11.81 kB / 1.393 GB, free: 3.445 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.469e-05/1.164, allocations: 16.42 kB / 1.393 GB, free: 3.43 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/1.166, allocations: 1.443 MB / 1.394 GB, free: 1.941 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002666/1.166, allocations: 93.73 kB / 1.395 GB, free: 1.863 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.503e-05/1.166, allocations: 38.86 kB / 1.395 GB, free: 1.832 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.046e-05/1.166, allocations: 0 / 1.395 GB, free: 1.832 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.808e-05/1.166, allocations: 41.67 kB / 1.395 GB, free: 1.785 MB / 0.823 GB Notification: Performance of pre-optimization done (n=8): time 9.41e-07/1.166, allocations: 0 / 1.395 GB, free: 1.785 MB / 0.823 GB Notification: Performance of matching and sorting (n=8): time 0.0002651/1.166, allocations: 131.9 kB / 1.395 GB, free: 1.664 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.302e-05/1.166, allocations: 51.41 kB / 1.395 GB, free: 1.602 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/1.166, allocations: 168 kB / 1.395 GB, free: 1.453 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/1.166, allocations: 25.7 kB / 1.395 GB, free: 1.422 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 7.934e-05/1.167, allocations: 165.5 kB / 1.395 GB, free: 1.266 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.196e-05/1.167, allocations: 34.86 kB / 1.395 GB, free: 1.234 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-06/1.167, allocations: 0 / 1.395 GB, free: 1.234 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001163/1.167, allocations: 325.1 kB / 1.395 GB, free: 0.9141 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.749e-05/1.167, allocations: 37.17 kB / 1.396 GB, free: 0.8906 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.201e-05/1.167, allocations: 99.64 kB / 1.396 GB, free: 0.7812 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.545e-05/1.167, allocations: 56.34 kB / 1.396 GB, free: 0.7422 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/1.167, allocations: 4 kB / 1.396 GB, free: 0.7383 MB / 0.823 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000274/1.167, allocations: 179.4 kB / 1.396 GB, free: 0.582 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/1.167, allocations: 8 kB / 1.396 GB, free: 0.5742 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/1.167, allocations: 0 / 1.396 GB, free: 0.5742 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001239/1.167, allocations: 24.03 kB / 1.396 GB, free: 0.5508 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/1.168, allocations: 36.2 kB / 1.396 GB, free: 0.5156 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008507/1.168, allocations: 1.254 MB / 1.397 GB, free: 15.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/1.169, allocations: 15.84 kB / 1.397 GB, free: 15.18 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/1.169, allocations: 8 kB / 1.397 GB, free: 15.17 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.655e-05/1.169, allocations: 104.9 kB / 1.397 GB, free: 15.06 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.804e-05/1.169, allocations: 15.91 kB / 1.397 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.151e-05/1.169, allocations: 31.72 kB / 1.397 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/1.169, allocations: 0 / 1.397 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/1.169, allocations: 8 kB / 1.397 GB, free: 15.01 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/1.169, allocations: 4 kB / 1.397 GB, free: 15.01 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002303/1.169, allocations: 217.8 kB / 1.398 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/1.169, allocations: 4 kB / 1.398 GB, free: 14.78 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.25e-05/1.169, allocations: 15.38 kB / 1.398 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.381e-05/1.169, allocations: 24.75 kB / 1.398 GB, free: 14.74 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/1.169, allocations: 3.984 kB / 1.398 GB, free: 14.74 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007504/1.17, allocations: 1.245 MB / 1.399 GB, free: 13.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/1.17, allocations: 160 / 1.399 GB, free: 13.41 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002074/1.17, allocations: 227.2 kB / 1.399 GB, free: 13.2 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002938/1.17, allocations: 0.5866 MB / 1.4 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.101e-05/1.171, allocations: 100.1 kB / 1.4 GB, free: 12.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/1.171, allocations: 4 kB / 1.4 GB, free: 12.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/1.171, allocations: 7.984 kB / 1.4 GB, free: 12.48 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.278e-05/1.171, allocations: 10.53 kB / 1.4 GB, free: 12.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.622e-06/1.171, allocations: 0 / 1.4 GB, free: 12.48 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8.57e-05/1.171, allocations: 136.5 kB / 1.4 GB, free: 12.36 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008278/1.172, allocations: 51.84 kB / 1.4 GB, free: 12.31 MB / 0.8386 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 (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.747e-05/1.172, allocations: 99.25 kB / 1.4 GB, free: 12.21 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002948/1.172, allocations: 204 kB / 1.4 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/1.172, allocations: 0 / 1.4 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001507/1.172, allocations: 147.7 kB / 1.4 GB, free: 11.88 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002396/1.172, allocations: 27.59 kB / 1.4 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004439/1.173, allocations: 243.2 kB / 1.401 GB, free: 11.62 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003966/1.173, allocations: 0.7809 MB / 1.401 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of SimCode: time 3.01e-07/1.173, allocations: 4 kB / 1.401 GB, free: 10.82 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource.fmu > Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat does not exist to compare? outputFormat=mat