Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",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.001014/0.001014, allocations: 195.2 kB / 8.537 MB, free: 1.719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 225.5 MB / 234.4 MB, free: 14.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009379/0.000938, allocations: 100.4 kB / 286.4 MB, free: 12.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1047/0.1057, allocations: 56.87 MB / 343.2 MB, free: 3.672 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1924/0.2981, allocations: 51.46 MB / 394.7 MB, free: 33.14 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08103/0.3792, allocations: 76.07 MB / 470.7 MB, free: 4.957 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001519/0.3794, allocations: 63.97 kB / 470.8 MB, free: 4.895 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.007253/0.3867, allocations: 2.97 MB / 473.8 MB, free: 1.871 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.407e-05/0.3867, allocations: 12 kB / 473.8 MB, free: 1.859 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.508e-05/0.3868, allocations: 20.84 kB / 473.8 MB, free: 1.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002068/0.387, allocations: 222.8 kB / 474 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.387, allocations: 12 kB / 474 MB, free: 1.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.3871, allocations: 16 kB / 474.1 MB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002674/0.3873, allocations: 137.2 kB / 474.2 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003245/0.3877, allocations: 205.6 kB / 474.4 MB, free: 1.211 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3877, allocations: 11.92 kB / 474.4 MB, free: 1.199 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.3877, allocations: 4 kB / 474.4 MB, free: 1.195 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.3877, allocations: 8 kB / 474.4 MB, free: 1.188 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008112/0.3885, allocations: 0.6322 MB / 475 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.3888, allocations: 140.8 kB / 475.2 MB, free: 372 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.3889, allocations: 76.36 kB / 475.3 MB, free: 296 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.3889, allocations: 4.172 kB / 475.3 MB, free: 292 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001397/0.3891, allocations: 109.9 kB / 475.4 MB, free: 172 kB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.3891, allocations: 0 / 475.4 MB, free: 172 kB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002588/0.3893, allocations: 133.4 kB / 475.5 MB, free: 32 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.3894, allocations: 63.39 kB / 475.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.963e-05/0.3895, allocations: 129 kB / 475.7 MB, free: 15.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.3895, allocations: 33.69 kB / 475.7 MB, free: 15.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.613e-05/0.3896, allocations: 124.4 kB / 475.8 MB, free: 15.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.921e-05/0.3897, allocations: 59.25 kB / 475.9 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.127e-06/0.3897, allocations: 0 / 475.9 MB, free: 15.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3898, allocations: 326.8 kB / 476.2 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.714e-05/0.3899, allocations: 60.58 kB / 476.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.3901, allocations: 115.8 kB / 476.4 MB, free: 15.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.3902, allocations: 63.86 kB / 476.5 MB, free: 15.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3902, allocations: 0 / 476.5 MB, free: 15.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003112/0.3905, allocations: 202.6 kB / 476.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.488e-06/0.3905, allocations: 8.031 kB / 476.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.3905, allocations: 3.984 kB / 476.7 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.3906, allocations: 4 kB / 476.7 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.3907, allocations: 35.86 kB / 476.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.413e-06/0.3907, allocations: 4 kB / 476.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.492e-05/0.3908, allocations: 19.78 kB / 476.7 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.3908, allocations: 8.703 kB / 476.7 MB, free: 14.72 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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 8.563e-05/0.3909, allocations: 133 kB / 476.9 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.311e-05/0.391, allocations: 15.81 kB / 476.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003034/0.3913, allocations: 162.3 kB / 477 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3913, allocations: 4 kB / 477 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3913, allocations: 0.9375 kB / 477 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3913, allocations: 0 / 477 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006233/0.3919, allocations: 0.4928 MB / 477.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3919, allocations: 0 / 477.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.378e-05/0.392, allocations: 23.92 kB / 477.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.392, allocations: 0 / 477.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.3921, allocations: 0 / 477.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3921, allocations: 4 kB / 477.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3921, allocations: 0 / 477.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002685/0.3923, allocations: 255.6 kB / 477.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003787/0.3927, allocations: 0.6173 MB / 478.4 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.923e-05/0.3928, allocations: 92.94 kB / 478.5 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.711e-05/0.3928, allocations: 0 / 478.5 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.3929, allocations: 12 kB / 478.5 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.949e-05/0.393, allocations: 27.86 kB / 478.6 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.393, allocations: 4 kB / 478.6 MB, free: 12.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.623e-05/0.3931, allocations: 95.22 kB / 478.7 MB, free: 12.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008489/0.3939, allocations: 39.98 kB / 478.7 MB, free: 12.65 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001311/0.3941, allocations: 99.19 kB / 478.8 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002663/0.3944, allocations: 168 kB / 479 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3944, allocations: 0 / 479 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.3945, allocations: 75.94 kB / 479 MB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.3947, allocations: 19.97 kB / 479.1 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004498/0.3951, allocations: 225.5 kB / 479.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003815/0.3955, allocations: 0.7672 MB / 480 MB, free: 11.25 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3955, allocations: 0 / 480 MB, free: 11.25 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)