Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.797/1.797, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0009781/0.0009781, allocations: 189.2 kB / 490.8 MB, free: 1.934 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.129/1.129, allocations: 221.3 MB / 0.7863 GB, free: 13.64 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.0008753/0.0008753, allocations: 96.7 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4144/0.4153, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.5956, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.512/1.108, allocations: 176.8 MB / 1.384 GB, free: 16.95 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/1.108, allocations: 86.3 kB / 1.384 GB, free: 16.95 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);. 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.03173/1.14, allocations: 15.35 MB / 1.399 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/1.14, allocations: 12.94 kB / 1.399 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006246/1.14, allocations: 85.02 kB / 1.399 GB, free: 26.37 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003013/1.141, allocations: 259.8 kB / 1.4 GB, free: 26.13 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/1.141, allocations: 6.969 kB / 1.4 GB, free: 26.13 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.721e-05/1.141, allocations: 10.88 kB / 1.4 GB, free: 26.13 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003593/1.141, allocations: 177 kB / 1.4 GB, free: 26.11 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004009/1.142, allocations: 275.2 kB / 1.4 GB, free: 25.99 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/1.142, allocations: 4 kB / 1.4 GB, free: 25.98 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.289e-05/1.142, allocations: 5.031 kB / 1.4 GB, free: 25.98 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.206e-05/1.142, allocations: 16.17 kB / 1.4 GB, free: 25.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/1.143, allocations: 1.442 MB / 1.402 GB, free: 24.56 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002248/1.143, allocations: 102.5 kB / 1.402 GB, free: 24.47 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.871e-05/1.143, allocations: 31.36 kB / 1.402 GB, free: 24.45 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.171e-05/1.143, allocations: 7.281 kB / 1.402 GB, free: 24.45 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.039e-05/1.143, allocations: 34.55 kB / 1.402 GB, free: 24.4 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/1.143, allocations: 0 / 1.402 GB, free: 24.4 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002385/1.143, allocations: 114.7 kB / 1.402 GB, free: 24.3 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.341e-05/1.143, allocations: 59.25 kB / 1.402 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/1.144, allocations: 168.7 kB / 1.402 GB, free: 24.08 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.007e-05/1.144, allocations: 25.7 kB / 1.402 GB, free: 24.05 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.991e-05/1.144, allocations: 168.6 kB / 1.402 GB, free: 23.89 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.455e-05/1.144, allocations: 27.08 kB / 1.402 GB, free: 23.87 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-06/1.144, allocations: 4 kB / 1.402 GB, free: 23.86 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.527e-05/1.144, allocations: 325.9 kB / 1.403 GB, free: 23.54 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.432e-05/1.144, allocations: 38.17 kB / 1.403 GB, free: 23.52 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.559e-05/1.144, allocations: 98.33 kB / 1.403 GB, free: 23.41 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.942e-05/1.144, allocations: 60.47 kB / 1.403 GB, free: 23.36 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/1.144, allocations: 0 / 1.403 GB, free: 23.36 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002381/1.144, allocations: 180.2 kB / 1.403 GB, free: 23.21 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.235e-06/1.144, allocations: 4 kB / 1.403 GB, free: 23.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/1.144, allocations: 4 kB / 1.403 GB, free: 23.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001134/1.144, allocations: 28.09 kB / 1.403 GB, free: 23.17 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/1.145, allocations: 39.8 kB / 1.403 GB, free: 23.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007542/1.145, allocations: 1.255 MB / 1.404 GB, free: 21.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/1.145, allocations: 15.84 kB / 1.404 GB, free: 21.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/1.145, allocations: 7.812 kB / 1.404 GB, free: 21.79 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.395e-05/1.146, allocations: 108.9 kB / 1.404 GB, free: 21.67 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.577e-05/1.146, allocations: 19.91 kB / 1.404 GB, free: 21.65 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.43e-05/1.146, allocations: 20.45 kB / 1.404 GB, free: 21.64 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/1.146, allocations: 3.906 kB / 1.404 GB, free: 21.64 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/1.146, allocations: 0 / 1.404 GB, free: 21.64 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/1.146, allocations: 0 / 1.404 GB, free: 21.64 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/1.146, allocations: 223.2 kB / 1.405 GB, free: 21.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/1.146, allocations: 0 / 1.405 GB, free: 21.41 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.965e-05/1.146, allocations: 12 kB / 1.405 GB, free: 21.4 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.919e-05/1.146, allocations: 27.72 kB / 1.405 GB, free: 21.38 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-06/1.146, allocations: 7.922 kB / 1.405 GB, free: 21.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006731/1.147, allocations: 1.25 MB / 1.406 GB, free: 20.03 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/1.147, allocations: 0 / 1.406 GB, free: 20.03 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001891/1.147, allocations: 223.8 kB / 1.406 GB, free: 19.82 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003167/1.147, allocations: 0.5914 MB / 1.407 GB, free: 19.23 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.997e-05/1.147, allocations: 96.72 kB / 1.407 GB, free: 19.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/1.147, allocations: 4 kB / 1.407 GB, free: 19.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/1.147, allocations: 11.98 kB / 1.407 GB, free: 19.11 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.827e-05/1.147, allocations: 4 kB / 1.407 GB, free: 19.1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/1.147, allocations: 0 / 1.407 GB, free: 19.1 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8.259e-05/1.148, allocations: 142.4 kB / 1.407 GB, free: 18.98 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008187/1.148, allocations: 51.75 kB / 1.407 GB, free: 18.93 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 7.928e-05/1.148, allocations: 95.25 kB / 1.407 GB, free: 18.83 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002759/1.149, allocations: 207.2 kB / 1.407 GB, free: 18.64 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/1.149, allocations: 0.5625 kB / 1.407 GB, free: 18.64 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001552/1.149, allocations: 145.1 kB / 1.407 GB, free: 18.5 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/1.149, allocations: 39.22 kB / 1.407 GB, free: 18.47 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003705/1.15, allocations: 244.1 kB / 1.408 GB, free: 18.23 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003029/1.15, allocations: 0.7811 MB / 1.408 GB, free: 17.44 MB / 0.8386 GB Notification: Performance of SimCode: time 2.81e-07/1.15, allocations: 0 / 1.408 GB, free: 17.44 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Sources_Examples_VoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Sources_Examples_VoltageSource.fmu > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat does not exist to compare? outputFormat=mat