Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",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.75/1.75, allocations: 390.4 MB / 397.7 MB, free: 10.64 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.001052/0.001052, allocations: 186.3 kB / 490.8 MB, free: 11.18 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.086/1.086, allocations: 221.4 MB / 0.7863 GB, free: 13.55 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.000836/0.000836, allocations: 86.44 kB / 0.9264 GB, free: 4.508 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.227/0.2279, allocations: 149.2 MB / 1.072 GB, free: 15.46 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5035/0.7314, allocations: 143 MB / 1.212 GB, free: 156 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1621/0.8935, allocations: 193.5 MB / 1.401 GB, free: 14.04 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.8938, allocations: 91.94 kB / 1.401 GB, free: 13.95 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.06796/0.9618, allocations: 30.95 MB / 1.431 GB, free: 14.88 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.9618, allocations: 15.94 kB / 1.431 GB, free: 14.86 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002364/0.9642, allocations: 430.8 kB / 1.431 GB, free: 14.44 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007439/0.9649, allocations: 471.3 kB / 1.432 GB, free: 13.93 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.965, allocations: 8 kB / 1.432 GB, free: 13.93 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.985e-05/0.965, allocations: 20 kB / 1.432 GB, free: 13.91 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007008/0.9657, allocations: 485.1 kB / 1.432 GB, free: 13.43 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007732/0.9665, allocations: 0.563 MB / 1.433 GB, free: 12.84 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.9665, allocations: 0 / 1.433 GB, free: 12.84 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.9666, allocations: 0 / 1.433 GB, free: 12.84 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.719e-05/0.9666, allocations: 28.64 kB / 1.433 GB, free: 12.81 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003464/0.9701, allocations: 2.756 MB / 1.436 GB, free: 9.844 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006501/0.9708, allocations: 322.4 kB / 1.436 GB, free: 9.52 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002193/0.971, allocations: 172.8 kB / 1.436 GB, free: 9.348 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 9.752e-05/0.9711, allocations: 81.11 kB / 1.436 GB, free: 9.25 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.9711, allocations: 34.56 kB / 1.436 GB, free: 9.207 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=16): time 1.273e-06/0.9711, allocations: 1.125 kB / 1.436 GB, free: 9.207 MB / 0.9323 GB Notification: Performance of matching and sorting (n=24): time 0.004234/0.9754, allocations: 1.484 MB / 1.438 GB, free: 7.711 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.9754, allocations: 77.11 kB / 1.438 GB, free: 7.617 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003406/0.9758, allocations: 335.4 kB / 1.438 GB, free: 7.285 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.9758, allocations: 25.7 kB / 1.438 GB, free: 7.254 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 9.448e-05/0.9759, allocations: 211.6 kB / 1.438 GB, free: 7.043 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 6.656e-05/0.976, allocations: 78.84 kB / 1.438 GB, free: 6.965 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.918e-05/0.976, allocations: 0 / 1.438 GB, free: 6.965 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 9.461e-05/0.9761, allocations: 346.8 kB / 1.439 GB, free: 6.617 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003157/0.9765, allocations: 247.9 kB / 1.439 GB, free: 6.375 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003603/0.9768, allocations: 329.5 kB / 1.439 GB, free: 6.02 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005/0.9773, allocations: 297 kB / 1.439 GB, free: 5.73 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.9773, allocations: 1.406 kB / 1.439 GB, free: 5.73 MB / 0.9323 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002789/0.9801, allocations: 1.021 MB / 1.44 GB, free: 4.699 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002194/0.9804, allocations: 0.7823 MB / 1.441 GB, free: 3.855 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.9804, allocations: 4 kB / 1.441 GB, free: 3.852 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00215/0.9825, allocations: 417.2 kB / 1.442 GB, free: 3.438 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006027/0.9831, allocations: 114.5 kB / 1.442 GB, free: 3.328 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003473/0.9866, allocations: 2.948 MB / 1.445 GB, free: 236 kB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006649/0.9873, allocations: 76 kB / 1.445 GB, free: 160 kB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.434e-05/0.9874, allocations: 27.92 kB / 1.445 GB, free: 132 kB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 6.372e-06/0.9874, allocations: 4 kB / 1.445 GB, free: 128 kB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007987/0.9882, allocations: 476.2 kB / 1.445 GB, free: 15.66 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.9882, allocations: 4 kB / 1.445 GB, free: 15.66 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.799e-06/0.9882, allocations: 4 kB / 1.445 GB, free: 15.65 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006737/0.9889, allocations: 132.1 kB / 1.445 GB, free: 15.52 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.9889, allocations: 4 kB / 1.445 GB, free: 15.52 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000541/0.9895, allocations: 77.88 kB / 1.445 GB, free: 15.45 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.199e-05/0.9895, allocations: 14.06 kB / 1.445 GB, free: 15.43 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001504/0.9897, allocations: 122 kB / 1.446 GB, free: 15.31 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.795e-05/0.9897, allocations: 31.62 kB / 1.446 GB, free: 15.28 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003046/0.9928, allocations: 1.064 MB / 1.447 GB, free: 14.2 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.9928, allocations: 4 kB / 1.447 GB, free: 14.2 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.9928, allocations: 0 / 1.447 GB, free: 14.2 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.9928, allocations: 11.89 kB / 1.447 GB, free: 14.19 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003696/0.9965, allocations: 1.669 MB / 1.448 GB, free: 12.46 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.9966, allocations: 4.094 kB / 1.448 GB, free: 12.46 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/0.997, allocations: 71.92 kB / 1.448 GB, free: 12.39 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002401/0.9994, allocations: 0.5557 MB / 1.449 GB, free: 11.83 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.863e-05/0.9994, allocations: 3.984 kB / 1.449 GB, free: 11.82 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004595/1.004, allocations: 4.054 MB / 1.453 GB, free: 7.547 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/1.004, allocations: 0 / 1.453 GB, free: 7.547 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002717/1.007, allocations: 1.107 MB / 1.454 GB, free: 6.395 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002856/1.01, allocations: 1.496 MB / 1.455 GB, free: 4.844 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/1.01, allocations: 172.6 kB / 1.456 GB, free: 4.656 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.499e-05/1.01, allocations: 4 kB / 1.456 GB, free: 4.652 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000669/1.011, allocations: 79.89 kB / 1.456 GB, free: 4.574 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.549e-05/1.011, allocations: 23.91 kB / 1.456 GB, free: 4.551 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.632e-05/1.011, allocations: 6.344 kB / 1.456 GB, free: 4.547 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0002684/1.011, allocations: 267.1 kB / 1.456 GB, free: 4.285 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001921/1.013, allocations: 207.9 kB / 1.456 GB, free: 4.082 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.000248/1.013, allocations: 165.4 kB / 1.456 GB, free: 3.914 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001558/1.015, allocations: 0.974 MB / 1.457 GB, free: 2.93 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/1.015, allocations: 0 / 1.457 GB, free: 2.93 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007633/1.016, allocations: 0.5313 MB / 1.458 GB, free: 2.379 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005311/1.016, allocations: 100.5 kB / 1.458 GB, free: 2.289 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/1.018, allocations: 0.7612 MB / 1.459 GB, free: 1.488 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000564/1.018, allocations: 0.9508 MB / 1.459 GB, free: 0.5117 MB / 0.948 GB Notification: Performance of SimCode: time 3.2e-07/1.018, allocations: 4 kB / 1.459 GB, free: 0.5078 MB / 0.948 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat does not exist to compare? outputFormat=mat