Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.conf.json 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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 181.2 kB / 8.132 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.142/1.142, allocations: 221.4 MB / 229.9 MB, free: 3.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009004/0.0009004, allocations: 102.6 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1009/0.1018, allocations: 55.81 MB / 336.6 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.3159, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08198/0.3979, allocations: 76.16 MB / 463.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001732/0.3981, allocations: 68.78 kB / 463.2 MB, free: 10.55 MB / 346.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.004099/0.4022, allocations: 1.568 MB / 464.8 MB, free: 8.969 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.4023, allocations: 12 kB / 464.8 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.243e-05/0.4023, allocations: 7.906 kB / 464.8 MB, free: 8.949 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.4024, allocations: 178.9 kB / 465 MB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.4024, allocations: 0 / 465 MB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.4025, allocations: 4 kB / 465 MB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.158e-05/0.4025, allocations: 27.94 kB / 465 MB, free: 8.703 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000124/0.4027, allocations: 89.97 kB / 465.1 MB, free: 8.594 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.4027, allocations: 0 / 465.1 MB, free: 8.594 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-06/0.4027, allocations: 4.844 kB / 465.1 MB, free: 8.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.4027, allocations: 4 kB / 465.1 MB, free: 8.586 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005094/0.4032, allocations: 0.6082 MB / 465.7 MB, free: 7.926 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001017/0.4033, allocations: 101.1 kB / 465.8 MB, free: 7.781 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.23e-05/0.4034, allocations: 40.36 kB / 465.9 MB, free: 7.727 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.4034, allocations: 4 kB / 465.9 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.4035, allocations: 38.5 kB / 465.9 MB, free: 7.676 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.4035, allocations: 4 kB / 465.9 MB, free: 7.672 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002599/0.4037, allocations: 65.53 kB / 466 MB, free: 7.602 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.4038, allocations: 160.2 kB / 466.1 MB, free: 7.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.184e-05/0.4039, allocations: 108.9 kB / 466.2 MB, free: 7.297 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.4039, allocations: 25.7 kB / 466.3 MB, free: 7.266 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.278e-05/0.404, allocations: 96.08 kB / 466.3 MB, free: 7.168 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.404, allocations: 27.8 kB / 466.4 MB, free: 7.141 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/0.404, allocations: 3.938 kB / 466.4 MB, free: 7.137 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.667e-05/0.4041, allocations: 314.8 kB / 466.7 MB, free: 6.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.505e-05/0.4041, allocations: 8 kB / 466.7 MB, free: 6.812 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.97e-05/0.4042, allocations: 44.22 kB / 466.7 MB, free: 6.754 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.184e-05/0.4042, allocations: 16 kB / 466.7 MB, free: 6.738 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4042, allocations: 0 / 466.7 MB, free: 6.738 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001171/0.4044, allocations: 69.53 kB / 466.8 MB, free: 6.664 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.4044, allocations: 6.969 kB / 466.8 MB, free: 6.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.4044, allocations: 0 / 466.8 MB, free: 6.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.329e-05/0.4044, allocations: 5.812 kB / 466.8 MB, free: 6.656 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.4046, allocations: 24.08 kB / 466.9 MB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.4046, allocations: 0 / 466.9 MB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.246e-05/0.4046, allocations: 11.98 kB / 466.9 MB, free: 6.621 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.4047, allocations: 4 kB / 466.9 MB, free: 6.617 MB / 346.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 7.736e-05/0.4047, allocations: 104.9 kB / 467 MB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.955e-05/0.4049, allocations: 4 kB / 467 MB, free: 6.504 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.112e-05/0.4049, allocations: 16.38 kB / 467 MB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.4049, allocations: 3.906 kB / 467 MB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.4049, allocations: 4 kB / 467 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.4049, allocations: 0 / 467 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003111/0.4052, allocations: 154.2 kB / 467.1 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.4052, allocations: 0 / 467.1 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.451e-05/0.4053, allocations: 23.92 kB / 467.2 MB, free: 6.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.4053, allocations: 4 kB / 467.2 MB, free: 6.266 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.4054, allocations: 7.844 kB / 467.2 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.4054, allocations: 0 / 467.2 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/0.4054, allocations: 7.906 kB / 467.2 MB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002691/0.4057, allocations: 0.4955 MB / 467.7 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003439/0.406, allocations: 0.8708 MB / 468.6 MB, free: 4.797 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.981e-05/0.4061, allocations: 85.02 kB / 468.6 MB, free: 4.695 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.138e-05/0.4061, allocations: 7.984 kB / 468.6 MB, free: 4.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.4063, allocations: 11.98 kB / 468.7 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/0.4064, allocations: 8 kB / 468.7 MB, free: 4.668 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.4064, allocations: 7.984 kB / 468.7 MB, free: 4.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.667e-05/0.4065, allocations: 95.78 kB / 468.8 MB, free: 4.566 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009132/0.4074, allocations: 11.94 kB / 468.8 MB, free: 4.555 MB / 346.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.0001191/0.4075, allocations: 99.12 kB / 468.9 MB, free: 4.449 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.4076, allocations: 35.94 kB / 468.9 MB, free: 4.414 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.4076, allocations: 0 / 468.9 MB, free: 4.414 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.475e-05/0.4077, allocations: 27.92 kB / 468.9 MB, free: 4.387 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.408, allocations: 0 / 468.9 MB, free: 4.387 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003373/0.4083, allocations: 119.7 kB / 469.1 MB, free: 4.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000307/0.4086, allocations: 0.7075 MB / 469.8 MB, free: 3.496 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4086, allocations: 0 / 469.8 MB, free: 3.496 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat