Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.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.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource",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.824/1.824, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.0009184/0.0009184, allocations: 177.4 kB / 487 MB, free: 5.355 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.15/1.15, allocations: 221.3 MB / 0.7819 GB, free: 1.383 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.000893/0.0008927, allocations: 104.3 kB / 0.9213 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4292/0.4301, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1916/0.6217, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5115/1.133, allocations: 172.2 MB / 1.373 GB, free: 4.215 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/1.133, allocations: 91.38 kB / 1.374 GB, free: 4.164 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.04177/1.175, allocations: 19.47 MB / 1.393 GB, free: 3.68 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/1.175, allocations: 8 kB / 1.393 GB, free: 3.672 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008019/1.176, allocations: 103.5 kB / 1.393 GB, free: 3.57 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003394/1.176, allocations: 275.3 kB / 1.393 GB, free: 3.285 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/1.176, allocations: 8 kB / 1.393 GB, free: 3.277 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.97e-05/1.177, allocations: 15.98 kB / 1.393 GB, free: 3.262 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003936/1.177, allocations: 250.6 kB / 1.393 GB, free: 3.098 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004502/1.177, allocations: 356.3 kB / 1.394 GB, free: 2.801 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/1.177, allocations: 0 / 1.394 GB, free: 2.801 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/1.177, allocations: 0 / 1.394 GB, free: 2.801 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.288e-05/1.177, allocations: 24.36 kB / 1.394 GB, free: 2.773 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/1.179, allocations: 1.611 MB / 1.395 GB, free: 1.238 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004661/1.18, allocations: 338.9 kB / 1.395 GB, free: 0.9727 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001996/1.18, allocations: 156.8 kB / 1.396 GB, free: 0.8594 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001414/1.18, allocations: 93.03 kB / 1.396 GB, free: 0.75 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002642/1.18, allocations: 220.5 kB / 1.396 GB, free: 0.5664 MB / 0.823 GB Notification: Performance of pre-optimization done (n=27): time 1.643e-06/1.18, allocations: 0 / 1.396 GB, free: 0.5664 MB / 0.823 GB Notification: Performance of matching and sorting (n=28): time 0.0008375/1.181, allocations: 428.7 kB / 1.396 GB, free: 220 kB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/1.181, allocations: 81.11 kB / 1.396 GB, free: 120 kB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/1.181, allocations: 187.8 kB / 1.397 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/1.181, allocations: 33.8 kB / 1.397 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.501e-05/1.182, allocations: 146.5 kB / 1.397 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.582e-05/1.182, allocations: 86.19 kB / 1.397 GB, free: 15.71 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.869e-05/1.182, allocations: 0 / 1.397 GB, free: 15.71 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.989e-05/1.182, allocations: 339.1 kB / 1.397 GB, free: 15.38 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/1.182, allocations: 129.3 kB / 1.397 GB, free: 15.3 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/1.182, allocations: 207.4 kB / 1.397 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/1.182, allocations: 164.1 kB / 1.398 GB, free: 15.01 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/1.182, allocations: 4 kB / 1.398 GB, free: 15 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006998/1.183, allocations: 432.3 kB / 1.398 GB, free: 14.67 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002372/1.183, allocations: 0.8779 MB / 1.399 GB, free: 13.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/1.183, allocations: 4 kB / 1.399 GB, free: 13.74 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001911/1.184, allocations: 44.56 kB / 1.399 GB, free: 13.7 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000413/1.184, allocations: 87.25 kB / 1.399 GB, free: 13.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001061/1.185, allocations: 1.409 MB / 1.4 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003361/1.185, allocations: 52.03 kB / 1.4 GB, free: 12.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.986e-05/1.186, allocations: 10.88 kB / 1.4 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.911e-06/1.186, allocations: 11.84 kB / 1.4 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000592/1.186, allocations: 351.2 kB / 1.401 GB, free: 11.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/1.186, allocations: 4 kB / 1.401 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001501/1.186, allocations: 40.27 kB / 1.401 GB, free: 11.79 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003843/1.187, allocations: 88.16 kB / 1.401 GB, free: 11.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009396/1.188, allocations: 1.402 MB / 1.402 GB, free: 10.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003074/1.188, allocations: 51.77 kB / 1.402 GB, free: 10.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.734e-05/1.188, allocations: 11.81 kB / 1.402 GB, free: 10.2 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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.0001018/1.188, allocations: 113.3 kB / 1.402 GB, free: 10.09 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.495e-05/1.188, allocations: 27.7 kB / 1.402 GB, free: 10.06 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006583/1.189, allocations: 394.6 kB / 1.403 GB, free: 9.762 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/1.189, allocations: 4 kB / 1.403 GB, free: 9.758 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/1.189, allocations: 0 / 1.403 GB, free: 9.758 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/1.189, allocations: 4 kB / 1.403 GB, free: 9.754 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005028/1.189, allocations: 0.5229 MB / 1.403 GB, free: 9.258 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/1.189, allocations: 0 / 1.403 GB, free: 9.258 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003883/1.19, allocations: 87.38 kB / 1.403 GB, free: 9.176 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001084/1.19, allocations: 32.64 kB / 1.403 GB, free: 9.145 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/1.19, allocations: 4 kB / 1.403 GB, free: 9.141 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009128/1.191, allocations: 1.334 MB / 1.405 GB, free: 7.758 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/1.191, allocations: 0 / 1.405 GB, free: 7.758 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006001/1.191, allocations: 0.5057 MB / 1.405 GB, free: 7.289 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006839/1.192, allocations: 0.8793 MB / 1.406 GB, free: 6.449 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/1.192, allocations: 138 kB / 1.406 GB, free: 6.309 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.873e-05/1.192, allocations: 8 kB / 1.406 GB, free: 6.301 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/1.193, allocations: 39.94 kB / 1.406 GB, free: 6.262 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.83e-05/1.193, allocations: 35.2 kB / 1.406 GB, free: 6.234 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-05/1.193, allocations: 4 kB / 1.406 GB, free: 6.23 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001117/1.193, allocations: 156.8 kB / 1.407 GB, free: 6.102 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001608/1.195, allocations: 138.5 kB / 1.407 GB, free: 5.977 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001598/1.195, allocations: 119.1 kB / 1.407 GB, free: 5.852 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009867/1.196, allocations: 0.7669 MB / 1.408 GB, free: 5.207 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.196, allocations: 4 kB / 1.408 GB, free: 5.203 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003628/1.196, allocations: 277.8 kB / 1.408 GB, free: 4.969 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/1.196, allocations: 45.69 kB / 1.408 GB, free: 4.934 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000987/1.197, allocations: 466.2 kB / 1.408 GB, free: 4.504 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000436/1.198, allocations: 0.8218 MB / 1.409 GB, free: 3.668 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/1.198, allocations: 0 / 1.409 GB, free: 3.668 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat does not exist to compare? outputFormat=mat