Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",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.835/1.835, 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.001064/0.001064, allocations: 185.3 kB / 487 MB, free: 5.324 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.154/1.154, 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.0008886/0.0008886, allocations: 101.7 kB / 0.9213 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4315/0.4324, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1883/0.6207, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5514/1.172, allocations: 169.6 MB / 1.371 GB, free: 6.859 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/1.172, allocations: 84.31 kB / 1.371 GB, free: 6.812 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.03801/1.21, allocations: 17.89 MB / 1.388 GB, free: 7.715 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/1.21, allocations: 13 kB / 1.388 GB, free: 7.703 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007619/1.211, allocations: 91.61 kB / 1.389 GB, free: 7.613 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003165/1.212, allocations: 266.9 kB / 1.389 GB, free: 7.332 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/1.212, allocations: 8 kB / 1.389 GB, free: 7.324 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.267e-05/1.212, allocations: 8 kB / 1.389 GB, free: 7.316 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003554/1.212, allocations: 232.3 kB / 1.389 GB, free: 7.164 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004255/1.212, allocations: 340.9 kB / 1.389 GB, free: 6.871 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/1.212, allocations: 0 / 1.389 GB, free: 6.871 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.614e-05/1.212, allocations: 3.938 kB / 1.389 GB, free: 6.867 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.653e-05/1.213, allocations: 23.31 kB / 1.389 GB, free: 6.844 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001598/1.214, allocations: 1.672 MB / 1.391 GB, free: 5.223 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003311/1.214, allocations: 258 kB / 1.391 GB, free: 5.02 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/1.215, allocations: 139.8 kB / 1.391 GB, free: 4.914 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001534/1.215, allocations: 95.39 kB / 1.391 GB, free: 4.805 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/1.215, allocations: 38.5 kB / 1.392 GB, free: 4.758 MB / 0.823 GB Notification: Performance of pre-optimization done (n=20): time 2.795e-06/1.215, allocations: 0 / 1.392 GB, free: 4.758 MB / 0.823 GB Notification: Performance of matching and sorting (n=21): time 0.0007911/1.216, allocations: 379.2 kB / 1.392 GB, free: 4.445 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/1.216, allocations: 89.14 kB / 1.392 GB, free: 4.34 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/1.216, allocations: 174.1 kB / 1.392 GB, free: 4.184 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/1.216, allocations: 25.7 kB / 1.392 GB, free: 4.152 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 6.639e-05/1.216, allocations: 150 kB / 1.392 GB, free: 4.012 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 5.057e-05/1.216, allocations: 69.84 kB / 1.392 GB, free: 3.949 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.456e-05/1.216, allocations: 0 / 1.392 GB, free: 3.949 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 9.899e-05/1.216, allocations: 329.3 kB / 1.393 GB, free: 3.629 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/1.216, allocations: 114 kB / 1.393 GB, free: 3.555 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/1.216, allocations: 201.7 kB / 1.393 GB, free: 3.363 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/1.217, allocations: 151.9 kB / 1.393 GB, free: 3.258 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/1.217, allocations: 0 / 1.393 GB, free: 3.258 MB / 0.823 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006271/1.217, allocations: 393.2 kB / 1.393 GB, free: 2.957 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000399/1.218, allocations: 1.048 MB / 1.395 GB, free: 1.844 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/1.218, allocations: 4 kB / 1.395 GB, free: 1.84 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002132/1.218, allocations: 48.06 kB / 1.395 GB, free: 1.797 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003303/1.218, allocations: 67.89 kB / 1.395 GB, free: 1.73 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/1.219, allocations: 1.413 MB / 1.396 GB, free: 284 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/1.22, allocations: 23.92 kB / 1.396 GB, free: 260 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.677e-05/1.22, allocations: 19.19 kB / 1.396 GB, free: 244 kB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 5.079e-06/1.22, allocations: 4 kB / 1.396 GB, free: 240 kB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005228/1.22, allocations: 305.7 kB / 1.396 GB, free: 8 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.066e-06/1.22, allocations: 4 kB / 1.396 GB, free: 4 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001344/1.22, allocations: 43.23 kB / 1.396 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/1.221, allocations: 71.08 kB / 1.396 GB, free: 15.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001012/1.222, allocations: 1.411 MB / 1.398 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000207/1.222, allocations: 23.88 kB / 1.398 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/1.222, allocations: 15.12 kB / 1.398 GB, free: 14.42 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001032/1.222, allocations: 114.4 kB / 1.398 GB, free: 14.3 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.63e-05/1.222, allocations: 23.7 kB / 1.398 GB, free: 14.28 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005611/1.223, allocations: 335.4 kB / 1.398 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/1.223, allocations: 8 kB / 1.398 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/1.223, allocations: 3.906 kB / 1.398 GB, free: 14.01 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/1.223, allocations: 3.938 kB / 1.398 GB, free: 14.01 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/1.224, allocations: 0.8834 MB / 1.399 GB, free: 13.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/1.224, allocations: 0 / 1.399 GB, free: 13.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002379/1.224, allocations: 55.89 kB / 1.399 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00011/1.224, allocations: 34.83 kB / 1.399 GB, free: 13.11 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/1.224, allocations: 7.906 kB / 1.399 GB, free: 13.11 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009267/1.225, allocations: 1.334 MB / 1.401 GB, free: 11.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/1.225, allocations: 4.062 kB / 1.401 GB, free: 11.72 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005953/1.226, allocations: 0.5956 MB / 1.401 GB, free: 11.12 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006828/1.227, allocations: 0.9789 MB / 1.402 GB, free: 10.14 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/1.227, allocations: 122.9 kB / 1.402 GB, free: 10.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.696e-05/1.227, allocations: 11.98 kB / 1.402 GB, free: 10 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/1.227, allocations: 15.98 kB / 1.402 GB, free: 9.984 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.976e-05/1.227, allocations: 18.72 kB / 1.402 GB, free: 9.969 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/1.227, allocations: 7.938 kB / 1.402 GB, free: 9.965 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001011/1.227, allocations: 142 kB / 1.402 GB, free: 9.844 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001617/1.229, allocations: 118.8 kB / 1.403 GB, free: 9.734 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000157/1.229, allocations: 119.1 kB / 1.403 GB, free: 9.609 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0007761/1.23, allocations: 0.6305 MB / 1.403 GB, free: 9.094 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/1.23, allocations: 4.375 kB / 1.403 GB, free: 9.09 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002842/1.23, allocations: 246.4 kB / 1.404 GB, free: 8.875 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/1.23, allocations: 32.39 kB / 1.404 GB, free: 8.855 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007646/1.231, allocations: 430.9 kB / 1.404 GB, free: 8.445 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003826/1.232, allocations: 0.7972 MB / 1.405 GB, free: 7.633 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.232, allocations: 4 kB / 1.405 GB, free: 7.629 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat does not exist to compare? outputFormat=mat