Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.VariableLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad",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.779/1.779, 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.0009854/0.0009856, allocations: 184 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.137/1.137, allocations: 221.4 MB / 0.7863 GB, free: 13.68 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.0008626/0.0008626, allocations: 101.6 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4188/0.4197, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.636, allocations: 143 MB / 1.212 GB, free: 40.01 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5168/1.153, allocations: 177.5 MB / 1.385 GB, free: 17.06 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002094/1.153, allocations: 86.8 kB / 1.385 GB, free: 17.05 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.04574/1.199, allocations: 23.91 MB / 1.408 GB, free: 19.46 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.751e-05/1.199, allocations: 8 kB / 1.408 GB, free: 19.45 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006935/1.2, allocations: 103.4 kB / 1.408 GB, free: 19.35 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/1.2, allocations: 297.9 kB / 1.409 GB, free: 19.05 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/1.2, allocations: 12 kB / 1.409 GB, free: 19.04 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.815e-05/1.2, allocations: 16 kB / 1.409 GB, free: 19.02 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003695/1.2, allocations: 291.9 kB / 1.409 GB, free: 18.83 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004391/1.201, allocations: 410.2 kB / 1.409 GB, free: 18.48 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/1.201, allocations: 0 / 1.409 GB, free: 18.48 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.946e-05/1.201, allocations: 11.92 kB / 1.409 GB, free: 18.47 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.106e-05/1.201, allocations: 35.7 kB / 1.41 GB, free: 18.44 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/1.202, allocations: 1.987 MB / 1.411 GB, free: 16.45 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003447/1.203, allocations: 186.8 kB / 1.412 GB, free: 16.31 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002118/1.203, allocations: 131.9 kB / 1.412 GB, free: 16.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/1.203, allocations: 4 kB / 1.412 GB, free: 16.2 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.571e-05/1.203, allocations: 30.56 kB / 1.412 GB, free: 16.16 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.223e-06/1.203, allocations: 0 / 1.412 GB, free: 16.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.0003412/1.203, allocations: 193.4 kB / 1.412 GB, free: 16 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.318e-05/1.203, allocations: 55.41 kB / 1.412 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/1.204, allocations: 199.3 kB / 1.412 GB, free: 15.76 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/1.204, allocations: 25.7 kB / 1.412 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.146e-05/1.204, allocations: 195.2 kB / 1.412 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/1.204, allocations: 61.42 kB / 1.412 GB, free: 15.49 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.027e-05/1.204, allocations: 0 / 1.412 GB, free: 15.49 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.327e-05/1.204, allocations: 337.2 kB / 1.413 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.643e-05/1.204, allocations: 57.67 kB / 1.413 GB, free: 15.13 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/1.204, allocations: 177.1 kB / 1.413 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001137/1.204, allocations: 96.69 kB / 1.413 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/1.204, allocations: 4 kB / 1.413 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004215/1.205, allocations: 262.1 kB / 1.413 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.000503/1.205, allocations: 1.405 MB / 1.415 GB, free: 13.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/1.205, allocations: 4 kB / 1.415 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001369/1.205, allocations: 28.16 kB / 1.415 GB, free: 13.12 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002957/1.206, allocations: 79.2 kB / 1.415 GB, free: 13.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003522/1.206, allocations: 0.5546 MB / 1.415 GB, free: 12.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002521/1.206, allocations: 43.83 kB / 1.415 GB, free: 12.43 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.398e-05/1.206, allocations: 15.56 kB / 1.415 GB, free: 12.42 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.081e-06/1.206, allocations: 4 kB / 1.415 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003075/1.207, allocations: 210.9 kB / 1.416 GB, free: 12.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/1.207, allocations: 4 kB / 1.416 GB, free: 12.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.249e-06/1.207, allocations: 4 kB / 1.416 GB, free: 12.24 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002908/1.207, allocations: 75.89 kB / 1.416 GB, free: 12.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/1.207, allocations: 8.156 kB / 1.416 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/1.207, allocations: 35.77 kB / 1.416 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/1.207, allocations: 11.31 kB / 1.416 GB, free: 12.12 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 9.257e-05/1.207, allocations: 116.8 kB / 1.416 GB, free: 12 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.8e-05/1.207, allocations: 23.72 kB / 1.416 GB, free: 11.97 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.48e-05/1.207, allocations: 28.02 kB / 1.416 GB, free: 11.96 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/1.207, allocations: 4 kB / 1.416 GB, free: 11.96 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/1.207, allocations: 0 / 1.416 GB, free: 11.96 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/1.207, allocations: 0 / 1.416 GB, free: 11.96 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007657/1.208, allocations: 0.656 MB / 1.417 GB, free: 11.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/1.208, allocations: 0 / 1.417 GB, free: 11.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002038/1.208, allocations: 47.22 kB / 1.417 GB, free: 11.29 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.811e-05/1.208, allocations: 28.41 kB / 1.417 GB, free: 11.26 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/1.209, allocations: 4 kB / 1.417 GB, free: 11.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008188/1.209, allocations: 1.248 MB / 1.418 GB, free: 9.934 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/1.209, allocations: 3.906 kB / 1.418 GB, free: 9.93 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003282/1.21, allocations: 333.5 kB / 1.418 GB, free: 9.613 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004234/1.21, allocations: 0.698 MB / 1.419 GB, free: 8.918 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.715e-05/1.21, allocations: 123.1 kB / 1.419 GB, free: 8.785 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/1.21, allocations: 7.891 kB / 1.419 GB, free: 8.777 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/1.21, allocations: 19.98 kB / 1.419 GB, free: 8.758 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/1.211, allocations: 11.98 kB / 1.419 GB, free: 8.746 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/1.211, allocations: 7.312 kB / 1.419 GB, free: 8.742 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.000106/1.211, allocations: 150.7 kB / 1.419 GB, free: 8.617 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001547/1.212, allocations: 135.4 kB / 1.419 GB, free: 8.484 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 (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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 9.657e-05/1.212, allocations: 107.2 kB / 1.419 GB, free: 8.367 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004533/1.213, allocations: 284.1 kB / 1.42 GB, free: 8.156 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/1.213, allocations: 5.812 kB / 1.42 GB, free: 8.152 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002093/1.213, allocations: 183.3 kB / 1.42 GB, free: 7.984 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/1.213, allocations: 67.72 kB / 1.42 GB, free: 7.934 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000617/1.214, allocations: 368.3 kB / 1.42 GB, free: 7.582 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000367/1.214, allocations: 0.8392 MB / 1.421 GB, free: 6.73 MB / 0.8386 GB Notification: Performance of SimCode: time 6.61e-07/1.214, allocations: 0 / 1.421 GB, free: 6.73 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat does not exist to compare? outputFormat=mat