Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",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.778/1.778, allocations: 390.4 MB / 397.7 MB, free: 10.73 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009547/0.0009547, allocations: 189 kB / 490.8 MB, free: 11.25 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.091/1.091, allocations: 221.4 MB / 0.7863 GB, free: 13.68 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000865/0.0008651, allocations: 98.52 kB / 0.9264 GB, free: 4.59 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.226/0.2269, allocations: 149.1 MB / 1.072 GB, free: 15.53 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4928/0.7197, allocations: 143 MB / 1.212 GB, free: 155.9 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1443/0.864, allocations: 175.6 MB / 1.383 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001601/0.8642, allocations: 91.94 kB / 1.383 GB, free: 15.9 MB / 0.8855 GB [/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/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/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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.02607/0.8903, allocations: 14.93 MB / 1.398 GB, free: 0.8672 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.8903, allocations: 8 kB / 1.398 GB, free: 0.8594 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005902/0.8909, allocations: 81.52 kB / 1.398 GB, free: 0.7812 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/0.8912, allocations: 243.2 kB / 1.398 GB, free: 0.5039 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.8912, allocations: 8.531 kB / 1.398 GB, free: 0.4961 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.549e-05/0.8912, allocations: 12 kB / 1.398 GB, free: 496 kB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002358/0.8915, allocations: 173.8 kB / 1.398 GB, free: 324 kB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002922/0.8918, allocations: 267.1 kB / 1.399 GB, free: 36 kB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.8918, allocations: 0 / 1.399 GB, free: 36 kB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.144e-05/0.8918, allocations: 4 kB / 1.399 GB, free: 32 kB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.414e-05/0.8918, allocations: 24.25 kB / 1.399 GB, free: 8 kB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001353/0.8932, allocations: 1.409 MB / 1.4 GB, free: 14.46 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001694/0.8934, allocations: 87.19 kB / 1.4 GB, free: 14.36 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.789e-05/0.8934, allocations: 31.42 kB / 1.4 GB, free: 14.33 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 6.532e-06/0.8934, allocations: 0 / 1.4 GB, free: 14.33 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.8935, allocations: 43.83 kB / 1.4 GB, free: 14.28 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=7): time 2.785e-06/0.8935, allocations: 0.5312 kB / 1.4 GB, free: 14.28 MB / 0.9011 GB Notification: Performance of matching and sorting (n=7): time 0.0002585/0.8937, allocations: 110.8 kB / 1.4 GB, free: 14.16 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.8938, allocations: 56 kB / 1.4 GB, free: 14.1 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.8939, allocations: 158.1 kB / 1.4 GB, free: 13.94 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.894, allocations: 26.27 kB / 1.4 GB, free: 13.91 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 8.264e-05/0.894, allocations: 164.4 kB / 1.401 GB, free: 13.74 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 1.733e-05/0.8941, allocations: 24.97 kB / 1.401 GB, free: 13.72 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.801e-06/0.8941, allocations: 0 / 1.401 GB, free: 13.72 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.8942, allocations: 323.7 kB / 1.401 GB, free: 13.39 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.494e-05/0.8943, allocations: 36.48 kB / 1.401 GB, free: 13.36 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.436e-05/0.8943, allocations: 98.52 kB / 1.401 GB, free: 13.23 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.999e-05/0.8944, allocations: 47.28 kB / 1.401 GB, free: 13.19 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.8944, allocations: 0 / 1.401 GB, free: 13.19 MB / 0.9011 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002639/0.8947, allocations: 180.4 kB / 1.401 GB, free: 13.01 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 9.588e-06/0.8947, allocations: 4 kB / 1.401 GB, free: 13.01 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.8947, allocations: 4 kB / 1.401 GB, free: 13 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001229/0.8949, allocations: 26.47 kB / 1.401 GB, free: 12.98 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.895, allocations: 23.94 kB / 1.401 GB, free: 12.95 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008738/0.8959, allocations: 1.262 MB / 1.403 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.896, allocations: 12.38 kB / 1.403 GB, free: 11.57 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.896, allocations: 4.656 kB / 1.403 GB, free: 11.57 MB / 0.9011 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 (17): * Single equations (assignments): 16 * 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.776e-05/0.8961, allocations: 117.8 kB / 1.403 GB, free: 11.45 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.496e-05/0.8961, allocations: 8.438 kB / 1.403 GB, free: 11.44 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.39e-05/0.8962, allocations: 17.95 kB / 1.403 GB, free: 11.43 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.8962, allocations: 7.906 kB / 1.403 GB, free: 11.42 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.8962, allocations: 0.5312 kB / 1.403 GB, free: 11.42 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.8962, allocations: 0.9062 kB / 1.403 GB, free: 11.42 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001988/0.8964, allocations: 210.1 kB / 1.403 GB, free: 11.18 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.8964, allocations: 0 / 1.403 GB, free: 11.18 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.245e-05/0.8964, allocations: 12.84 kB / 1.403 GB, free: 11.16 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.713e-05/0.8965, allocations: 21.44 kB / 1.403 GB, free: 11.14 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.8965, allocations: 0.875 kB / 1.403 GB, free: 11.14 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008295/0.8974, allocations: 1.259 MB / 1.404 GB, free: 9.77 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.8974, allocations: 0 / 1.404 GB, free: 9.77 MB / 0.9011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002004/0.8976, allocations: 217.6 kB / 1.404 GB, free: 9.543 MB / 0.9011 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002984/0.8979, allocations: 0.5762 MB / 1.405 GB, free: 8.945 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 7.698e-05/0.898, allocations: 94.02 kB / 1.405 GB, free: 8.836 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.941e-05/0.898, allocations: 0 / 1.405 GB, free: 8.836 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.8981, allocations: 8.984 kB / 1.405 GB, free: 8.828 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.356e-05/0.8982, allocations: 5.391 kB / 1.405 GB, free: 8.824 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.8982, allocations: 12.62 kB / 1.405 GB, free: 8.812 MB / 0.9011 GB Notification: Performance of sort global known variables: time 8.332e-05/0.8983, allocations: 124.8 kB / 1.405 GB, free: 8.691 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0008191/0.8991, allocations: 52.88 kB / 1.405 GB, free: 8.641 MB / 0.9011 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 (6): * Single equations (assignments): 5 * 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.583e-05/0.8992, allocations: 99.64 kB / 1.405 GB, free: 8.539 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0002833/0.8995, allocations: 200 kB / 1.406 GB, free: 8.336 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.8995, allocations: 0 / 1.406 GB, free: 8.336 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.8996, allocations: 131.6 kB / 1.406 GB, free: 8.199 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002138/0.8998, allocations: 24.83 kB / 1.406 GB, free: 8.176 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003983/0.9003, allocations: 225.5 kB / 1.406 GB, free: 7.938 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003374/0.9006, allocations: 0.7635 MB / 1.407 GB, free: 7.148 MB / 0.9011 GB Notification: Performance of SimCode: time 2.41e-07/0.9006, allocations: 0 / 1.407 GB, free: 7.148 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat does not exist to compare? outputFormat=mat