Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage",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/Complex 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 172.9 kB / 8.473 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.093/1.093, allocations: 205.2 MB / 214.1 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008489/0.0008487, allocations: 83.83 kB / 262.1 MB, free: 13.53 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09725/0.09813, allocations: 52.98 MB / 315.1 MB, free: 8.496 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.2848, allocations: 47.56 MB / 362.6 MB, free: 45.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08382/0.3686, allocations: 75.27 MB / 437.9 MB, free: 10.62 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001809/0.3688, allocations: 63.97 kB / 438 MB, free: 10.55 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.004036/0.3729, allocations: 1.51 MB / 439.5 MB, free: 9.031 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.3729, allocations: 13.39 kB / 439.5 MB, free: 9.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.178e-05/0.373, allocations: 7.906 kB / 439.5 MB, free: 9.012 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.3731, allocations: 178.8 kB / 439.7 MB, free: 8.797 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.3731, allocations: 4 kB / 439.7 MB, free: 8.793 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.018e-05/0.3731, allocations: 0 / 439.7 MB, free: 8.793 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.052e-05/0.3732, allocations: 33.84 kB / 439.7 MB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001298/0.3734, allocations: 93.25 kB / 439.8 MB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.3734, allocations: 0 / 439.8 MB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.3734, allocations: 0 / 439.8 MB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.3734, allocations: 4 kB / 439.8 MB, free: 8.648 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005601/0.374, allocations: 0.6147 MB / 440.4 MB, free: 7.984 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.363e-05/0.3741, allocations: 99.33 kB / 440.5 MB, free: 7.844 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.447e-05/0.3742, allocations: 48.36 kB / 440.6 MB, free: 7.781 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.3742, allocations: 7.969 kB / 440.6 MB, free: 7.773 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.3742, allocations: 38.56 kB / 440.6 MB, free: 7.727 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.3742, allocations: 1.406 kB / 440.6 MB, free: 7.727 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002471/0.3745, allocations: 69.47 kB / 440.7 MB, free: 7.652 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.3745, allocations: 154.2 kB / 440.8 MB, free: 7.465 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.703e-05/0.3746, allocations: 120 kB / 440.9 MB, free: 7.344 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.3746, allocations: 25.7 kB / 441 MB, free: 7.312 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.742e-05/0.3747, allocations: 88.05 kB / 441 MB, free: 7.223 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.459e-05/0.3747, allocations: 23.73 kB / 441.1 MB, free: 7.199 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-06/0.3747, allocations: 0 / 441.1 MB, free: 7.199 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.833e-05/0.3748, allocations: 314.8 kB / 441.4 MB, free: 6.883 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.242e-05/0.3749, allocations: 4 kB / 441.4 MB, free: 6.879 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.389e-05/0.3749, allocations: 44.3 kB / 441.4 MB, free: 6.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.725e-05/0.375, allocations: 19.92 kB / 441.4 MB, free: 6.801 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.375, allocations: 0 / 441.4 MB, free: 6.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001097/0.3751, allocations: 65.53 kB / 441.5 MB, free: 6.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.3751, allocations: 8.156 kB / 441.5 MB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.3751, allocations: 6.25 kB / 441.5 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.3751, allocations: 0 / 441.5 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.3752, allocations: 15.98 kB / 441.5 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/0.3753, allocations: 0 / 441.5 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.256e-05/0.3753, allocations: 8 kB / 441.5 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/0.3754, allocations: 12 kB / 441.6 MB, free: 6.684 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.187e-05/0.3754, allocations: 117.6 kB / 441.7 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.568e-05/0.3755, allocations: 4 kB / 441.7 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.119e-05/0.3756, allocations: 19.48 kB / 441.7 MB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3756, allocations: 0 / 441.7 MB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3756, allocations: 4 kB / 441.7 MB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.3756, allocations: 0 / 441.7 MB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003128/0.3759, allocations: 160 kB / 441.9 MB, free: 6.348 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3759, allocations: 4 kB / 441.9 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.356e-05/0.376, allocations: 15.98 kB / 441.9 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.376, allocations: 4 kB / 441.9 MB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/0.376, allocations: 0 / 441.9 MB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.376, allocations: 7.906 kB / 441.9 MB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3761, allocations: 3.938 kB / 441.9 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002524/0.3763, allocations: 0.4956 MB / 442.4 MB, free: 5.773 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003655/0.3767, allocations: 0.8776 MB / 443.3 MB, free: 4.852 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.585e-05/0.3767, allocations: 89.02 kB / 443.3 MB, free: 4.746 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.3768, allocations: 4 kB / 443.4 MB, free: 4.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.377, allocations: 8 kB / 443.4 MB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.767e-05/0.377, allocations: 14.52 kB / 443.4 MB, free: 4.723 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.3771, allocations: 0 / 443.4 MB, free: 4.723 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.187e-05/0.3771, allocations: 91.27 kB / 443.5 MB, free: 4.633 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009173/0.378, allocations: 16 kB / 443.5 MB, free: 4.617 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001119/0.3781, allocations: 91.25 kB / 443.6 MB, free: 4.516 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.842e-05/0.3782, allocations: 31.94 kB / 443.6 MB, free: 4.484 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3783, allocations: 0 / 443.6 MB, free: 4.484 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.649e-05/0.3783, allocations: 23.94 kB / 443.6 MB, free: 4.461 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.3786, allocations: 7.984 kB / 443.6 MB, free: 4.453 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003298/0.3789, allocations: 130 kB / 443.8 MB, free: 4.289 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002907/0.3792, allocations: 0.7036 MB / 444.5 MB, free: 3.559 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3792, allocations: 0 / 444.5 MB, free: 3.559 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat