Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.795/1.795, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.0009528/0.0009525, allocations: 168.8 kB / 487 MB, free: 5.402 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.158/1.158, allocations: 221.3 MB / 0.7819 GB, free: 1.406 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.0008107/0.0008107, allocations: 100.6 kB / 0.9213 GB, free: 2.668 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4375/0.4383, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.6405, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5743/1.215, allocations: 192.7 MB / 1.393 GB, free: 480 kB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/1.215, allocations: 93.62 kB / 1.394 GB, free: 428 kB / 0.823 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.0684/1.283, allocations: 30.95 MB / 1.424 GB, free: 6.418 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/1.284, allocations: 9 kB / 1.424 GB, free: 6.41 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002329/1.286, allocations: 429.8 kB / 1.424 GB, free: 5.996 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000744/1.287, allocations: 478.7 kB / 1.425 GB, free: 5.559 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/1.287, allocations: 8 kB / 1.425 GB, free: 5.551 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.645e-05/1.287, allocations: 23.91 kB / 1.425 GB, free: 5.527 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007383/1.287, allocations: 494.2 kB / 1.425 GB, free: 5.199 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007049/1.288, allocations: 0.5529 MB / 1.426 GB, free: 4.75 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/1.288, allocations: 3.938 kB / 1.426 GB, free: 4.746 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.525e-05/1.288, allocations: 8 kB / 1.426 GB, free: 4.738 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.014e-05/1.288, allocations: 24.02 kB / 1.426 GB, free: 4.719 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003296/1.292, allocations: 2.739 MB / 1.428 GB, free: 2.145 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005947/1.292, allocations: 329.2 kB / 1.429 GB, free: 1.895 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001929/1.292, allocations: 167.3 kB / 1.429 GB, free: 1.781 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001003/1.293, allocations: 93.09 kB / 1.429 GB, free: 1.672 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.944e-05/1.293, allocations: 34.31 kB / 1.429 GB, free: 1.633 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=16): time 1.814e-06/1.293, allocations: 0 / 1.429 GB, free: 1.633 MB / 0.8542 GB Notification: Performance of matching and sorting (n=24): time 0.004074/1.297, allocations: 1.48 MB / 1.43 GB, free: 452 kB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/1.297, allocations: 84.8 kB / 1.431 GB, free: 352 kB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003469/1.297, allocations: 329.4 kB / 1.431 GB, free: 80 kB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/1.297, allocations: 29.7 kB / 1.431 GB, free: 44 kB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/1.297, allocations: 207.6 kB / 1.431 GB, free: 15.86 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 7.228e-05/1.297, allocations: 81.22 kB / 1.431 GB, free: 15.79 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.969e-05/1.297, allocations: 0 / 1.431 GB, free: 15.79 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001198/1.297, allocations: 340.8 kB / 1.431 GB, free: 15.46 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003106/1.298, allocations: 253.7 kB / 1.432 GB, free: 15.3 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003532/1.298, allocations: 336.3 kB / 1.432 GB, free: 15.03 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004894/1.299, allocations: 308.9 kB / 1.432 GB, free: 14.82 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/1.299, allocations: 0 / 1.432 GB, free: 14.82 MB / 0.8698 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002685/1.301, allocations: 1.018 MB / 1.433 GB, free: 14.01 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002255/1.302, allocations: 0.7833 MB / 1.434 GB, free: 13.18 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/1.302, allocations: 7.922 kB / 1.434 GB, free: 13.18 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002101/1.304, allocations: 408.7 kB / 1.434 GB, free: 12.82 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005749/1.304, allocations: 114.5 kB / 1.435 GB, free: 12.71 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00336/1.308, allocations: 2.943 MB / 1.437 GB, free: 9.988 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006661/1.308, allocations: 87.03 kB / 1.438 GB, free: 9.906 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.42e-05/1.308, allocations: 11.98 kB / 1.438 GB, free: 9.895 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 5.48e-06/1.308, allocations: 4 kB / 1.438 GB, free: 9.891 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007499/1.309, allocations: 487.7 kB / 1.438 GB, free: 9.547 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.925e-06/1.309, allocations: 0 / 1.438 GB, free: 9.547 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.6e-06/1.309, allocations: 4 kB / 1.438 GB, free: 9.543 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006602/1.31, allocations: 135.5 kB / 1.438 GB, free: 9.414 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/1.31, allocations: 15.86 kB / 1.438 GB, free: 9.398 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005192/1.31, allocations: 67.92 kB / 1.438 GB, free: 9.332 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/1.31, allocations: 19.36 kB / 1.438 GB, free: 9.316 MB / 0.8698 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.000124/1.311, allocations: 107.6 kB / 1.438 GB, free: 9.207 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.472e-05/1.311, allocations: 35.56 kB / 1.438 GB, free: 9.172 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002906/1.314, allocations: 1.071 MB / 1.439 GB, free: 8.309 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/1.314, allocations: 11.84 kB / 1.439 GB, free: 8.297 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/1.314, allocations: 0 / 1.439 GB, free: 8.297 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/1.314, allocations: 0 / 1.439 GB, free: 8.297 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003478/1.317, allocations: 1.672 MB / 1.441 GB, free: 6.918 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/1.317, allocations: 0 / 1.441 GB, free: 6.918 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004498/1.318, allocations: 82.52 kB / 1.441 GB, free: 6.84 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00257/1.32, allocations: 0.5491 MB / 1.442 GB, free: 6.332 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.367e-05/1.32, allocations: 4 kB / 1.442 GB, free: 6.328 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004577/1.325, allocations: 4.051 MB / 1.446 GB, free: 2.555 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/1.325, allocations: 4 kB / 1.446 GB, free: 2.551 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002707/1.327, allocations: 1.108 MB / 1.447 GB, free: 1.582 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002809/1.33, allocations: 1.491 MB / 1.448 GB, free: 244 kB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002099/1.331, allocations: 168.7 kB / 1.448 GB, free: 80 kB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.34e-05/1.331, allocations: 0 / 1.448 GB, free: 80 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000654/1.331, allocations: 79.89 kB / 1.448 GB, free: 0 / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.253e-05/1.331, allocations: 19.66 kB / 1.448 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.2e-05/1.331, allocations: 12 kB / 1.448 GB, free: 15.97 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.000272/1.332, allocations: 271.3 kB / 1.449 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001831/1.334, allocations: 212.7 kB / 1.449 GB, free: 15.58 MB / 0.8855 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.0002401/1.334, allocations: 159.6 kB / 1.449 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001468/1.335, allocations: 0.9813 MB / 1.45 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/1.335, allocations: 0 / 1.45 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007394/1.336, allocations: 0.5352 MB / 1.451 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004746/1.337, allocations: 93.02 kB / 1.451 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/1.338, allocations: 0.7623 MB / 1.451 GB, free: 13.48 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005739/1.339, allocations: 0.9505 MB / 1.452 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of SimCode: time 2.7e-07/1.339, allocations: 4 kB / 1.452 GB, free: 12.54 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat does not exist to compare? outputFormat=mat