Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00115/0.00115, allocations: 198.6 kB / 8.539 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009571/0.0009571, allocations: 93.89 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1282/0.1292, allocations: 56.89 MB / 343.2 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.231, allocations: 51.47 MB / 394.7 MB, free: 5.109 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2675/0.4986, allocations: 76.99 MB / 471.7 MB, free: 14.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001893/0.4989, allocations: 61.59 kB / 471.7 MB, free: 14.67 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.00421/0.5031, allocations: 1.658 MB / 473.4 MB, free: 13.6 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.5031, allocations: 8 kB / 473.4 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001459/0.5033, allocations: 23.23 kB / 473.4 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.712e-05/0.5034, allocations: 186.4 kB / 473.6 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.5034, allocations: 4 kB / 473.6 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.5034, allocations: 0 / 473.6 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.485e-05/0.5035, allocations: 23.19 kB / 473.6 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/0.5036, allocations: 97.22 kB / 473.7 MB, free: 13.24 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-06/0.5037, allocations: 0 / 473.7 MB, free: 13.24 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.5037, allocations: 0 / 473.7 MB, free: 13.24 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.5037, allocations: 4 kB / 473.7 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004594/0.5042, allocations: 0.6128 MB / 474.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.693e-05/0.5043, allocations: 100.5 kB / 474.5 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.851e-05/0.5043, allocations: 40.05 kB / 474.5 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.5043, allocations: 3.938 kB / 474.5 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.5044, allocations: 42 kB / 474.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.5044, allocations: 0 / 474.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.000256/0.5046, allocations: 67.06 kB / 474.6 MB, free: 12.33 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.5047, allocations: 162.2 kB / 474.8 MB, free: 12.13 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.152e-05/0.5047, allocations: 109 kB / 474.9 MB, free: 12.03 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/0.5048, allocations: 29.7 kB / 474.9 MB, free: 12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.536e-05/0.5048, allocations: 91.36 kB / 475 MB, free: 11.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.5048, allocations: 19.02 kB / 475 MB, free: 11.89 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.371e-06/0.5048, allocations: 0 / 475 MB, free: 11.89 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.907e-05/0.5049, allocations: 314.3 kB / 475.3 MB, free: 11.58 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.226e-05/0.5049, allocations: 11.81 kB / 475.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.211e-05/0.5049, allocations: 41.94 kB / 475.4 MB, free: 11.53 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.909e-05/0.505, allocations: 15.44 kB / 475.4 MB, free: 11.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.505, allocations: 0 / 475.4 MB, free: 11.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000103/0.5051, allocations: 71.36 kB / 475.5 MB, free: 11.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/0.5051, allocations: 4 kB / 475.5 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.5051, allocations: 11.62 kB / 475.5 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.5051, allocations: 0 / 475.5 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.5053, allocations: 12 kB / 475.5 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.79e-06/0.5053, allocations: 3.281 kB / 475.5 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.118e-05/0.5053, allocations: 11.94 kB / 475.5 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.5054, allocations: 4 kB / 475.5 MB, free: 11.41 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 5.094e-05/0.5054, allocations: 115.3 kB / 475.6 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.5055, allocations: 7.281 kB / 475.6 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.163e-05/0.5056, allocations: 15.03 kB / 475.6 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.5056, allocations: 0 / 475.6 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.5056, allocations: 4 kB / 475.6 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.5056, allocations: 0 / 475.6 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003029/0.5059, allocations: 158.6 kB / 475.8 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.5059, allocations: 4 kB / 475.8 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.164e-05/0.506, allocations: 15.47 kB / 475.8 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.506, allocations: 4 kB / 475.8 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.506, allocations: 0 / 475.8 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.506, allocations: 11.38 kB / 475.8 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.506, allocations: 0 / 475.8 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001696/0.5062, allocations: 0.5005 MB / 476.3 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002011/0.5064, allocations: 0.871 MB / 477.2 MB, free: 9.664 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.351e-05/0.5064, allocations: 88.89 kB / 477.3 MB, free: 9.559 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.5065, allocations: 8 kB / 477.3 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.5067, allocations: 12.88 kB / 477.3 MB, free: 9.543 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.984e-05/0.5067, allocations: 11.38 kB / 477.3 MB, free: 9.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/0.5068, allocations: 3.688 kB / 477.3 MB, free: 9.535 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.536e-05/0.5068, allocations: 86.41 kB / 477.4 MB, free: 9.453 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009271/0.5077, allocations: 12 kB / 477.4 MB, free: 9.441 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 9.158e-05/0.5078, allocations: 98.53 kB / 477.5 MB, free: 9.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.237e-05/0.5079, allocations: 31.12 kB / 477.5 MB, free: 9.316 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.5079, allocations: 0 / 477.5 MB, free: 9.316 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.201e-05/0.508, allocations: 24.28 kB / 477.6 MB, free: 9.301 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.5083, allocations: 5.719 kB / 477.6 MB, free: 9.297 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000311/0.5086, allocations: 125.8 kB / 477.7 MB, free: 9.156 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.5088, allocations: 0.7055 MB / 478.4 MB, free: 8.434 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5088, allocations: 0 / 478.4 MB, free: 8.434 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat