Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor",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.811/1.811, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.0009645/0.0009646, allocations: 190.8 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.148/1.148, allocations: 221.3 MB / 0.7819 GB, free: 1.352 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.0008313/0.0008313, allocations: 96.67 kB / 0.9213 GB, free: 2.609 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4187/0.4196, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1889/0.6085, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5377/1.146, allocations: 175 MB / 1.376 GB, free: 1.82 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/1.146, allocations: 90.12 kB / 1.376 GB, free: 1.773 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.04468/1.191, allocations: 22.19 MB / 1.398 GB, free: 15.28 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/1.191, allocations: 13 kB / 1.398 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/1.192, allocations: 146.5 kB / 1.398 GB, free: 15.13 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004183/1.193, allocations: 290.8 kB / 1.398 GB, free: 14.83 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/1.193, allocations: 11.94 kB / 1.398 GB, free: 14.82 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.926e-05/1.193, allocations: 16 kB / 1.398 GB, free: 14.8 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004216/1.193, allocations: 287.1 kB / 1.399 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005188/1.194, allocations: 415.6 kB / 1.399 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/1.194, allocations: 3.906 kB / 1.399 GB, free: 14.26 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.959e-05/1.194, allocations: 0 / 1.399 GB, free: 14.26 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.571e-05/1.194, allocations: 28.39 kB / 1.399 GB, free: 14.23 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/1.196, allocations: 2.119 MB / 1.401 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002399/1.196, allocations: 160.1 kB / 1.401 GB, free: 11.96 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/1.196, allocations: 111.9 kB / 1.401 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.017e-05/1.196, allocations: 4 kB / 1.401 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/1.196, allocations: 38.3 kB / 1.401 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/1.196, allocations: 0 / 1.401 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0003127/1.197, allocations: 149 kB / 1.402 GB, free: 11.7 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.433e-05/1.197, allocations: 55.66 kB / 1.402 GB, free: 11.63 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/1.197, allocations: 194.1 kB / 1.402 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/1.197, allocations: 25.7 kB / 1.402 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.048e-05/1.197, allocations: 193.2 kB / 1.402 GB, free: 11.25 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.231e-05/1.197, allocations: 53.73 kB / 1.402 GB, free: 11.21 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-06/1.197, allocations: 0 / 1.402 GB, free: 11.21 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001101/1.197, allocations: 333.8 kB / 1.402 GB, free: 10.88 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.01e-05/1.197, allocations: 56.64 kB / 1.402 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/1.197, allocations: 138 kB / 1.403 GB, free: 10.69 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/1.197, allocations: 79.89 kB / 1.403 GB, free: 10.64 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/1.197, allocations: 4 kB / 1.403 GB, free: 10.63 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003492/1.198, allocations: 233.3 kB / 1.403 GB, free: 10.43 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/1.198, allocations: 10.66 kB / 1.403 GB, free: 10.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/1.198, allocations: 0 / 1.403 GB, free: 10.43 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001285/1.198, allocations: 28.72 kB / 1.403 GB, free: 10.4 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/1.198, allocations: 44.3 kB / 1.403 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009314/1.199, allocations: 1.264 MB / 1.404 GB, free: 9.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/1.199, allocations: 27.75 kB / 1.404 GB, free: 8.992 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/1.199, allocations: 12 kB / 1.404 GB, free: 8.98 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 26 * 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 7.467e-05/1.199, allocations: 110.4 kB / 1.404 GB, free: 8.871 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/1.199, allocations: 23.72 kB / 1.404 GB, free: 8.848 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.698e-05/1.199, allocations: 23.77 kB / 1.404 GB, free: 8.836 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/1.199, allocations: 4 kB / 1.404 GB, free: 8.832 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/1.199, allocations: 0 / 1.404 GB, free: 8.832 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/1.199, allocations: 0 / 1.404 GB, free: 8.832 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007459/1.2, allocations: 0.6428 MB / 1.405 GB, free: 8.195 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/1.2, allocations: 11.94 kB / 1.405 GB, free: 8.184 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.769e-05/1.2, allocations: 23.98 kB / 1.405 GB, free: 8.16 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.854e-05/1.2, allocations: 28.34 kB / 1.405 GB, free: 8.133 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/1.2, allocations: 0 / 1.405 GB, free: 8.133 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008443/1.201, allocations: 1.248 MB / 1.406 GB, free: 6.805 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/1.201, allocations: 4.125 kB / 1.406 GB, free: 6.801 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003354/1.202, allocations: 380.8 kB / 1.407 GB, free: 6.398 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004462/1.202, allocations: 0.7479 MB / 1.407 GB, free: 5.617 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.071e-05/1.202, allocations: 108.5 kB / 1.408 GB, free: 5.496 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.813e-05/1.202, allocations: 0 / 1.408 GB, free: 5.496 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/1.202, allocations: 11.98 kB / 1.408 GB, free: 5.484 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.536e-05/1.202, allocations: 15.39 kB / 1.408 GB, free: 5.473 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/1.202, allocations: 8 kB / 1.408 GB, free: 5.465 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001136/1.203, allocations: 146.2 kB / 1.408 GB, free: 5.348 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008965/1.204, allocations: 79.69 kB / 1.408 GB, free: 5.27 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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 0.0001132/1.204, allocations: 103.2 kB / 1.408 GB, free: 5.16 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003711/1.204, allocations: 250.9 kB / 1.408 GB, free: 4.941 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/1.204, allocations: 0.75 kB / 1.408 GB, free: 4.941 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000181/1.204, allocations: 180 kB / 1.408 GB, free: 4.77 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/1.205, allocations: 38.77 kB / 1.408 GB, free: 4.742 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006139/1.205, allocations: 373.1 kB / 1.409 GB, free: 4.363 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004522/1.206, allocations: 0.8202 MB / 1.409 GB, free: 3.527 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.206, allocations: 7.938 kB / 1.409 GB, free: 3.52 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat does not exist to compare? outputFormat=mat