Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",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.001146/0.001146, allocations: 183.8 kB / 8.135 MB, free: 2.223 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.131/1.131, allocations: 221.4 MB / 230 MB, free: 3.25 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.0008731/0.0008731, allocations: 99.59 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09724/0.09814, allocations: 55.81 MB / 336.6 MB, free: 9.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1958/0.2939, allocations: 50.39 MB / 387 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08053/0.3745, allocations: 79.8 MB / 466.8 MB, free: 6.988 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001753/0.3747, allocations: 67.97 kB / 466.9 MB, free: 6.922 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.01603/0.3908, allocations: 5.952 MB / 472.8 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.3908, allocations: 8 kB / 472.8 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.714e-05/0.3909, allocations: 15.81 kB / 472.8 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003741/0.3913, allocations: 262.5 kB / 473.1 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.3913, allocations: 0 / 473.1 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.3913, allocations: 13.03 kB / 473.1 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001102/0.3914, allocations: 39.98 kB / 473.1 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001507/0.3916, allocations: 101.9 kB / 473.2 MB, free: 484 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3916, allocations: 0 / 473.2 MB, free: 484 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.3916, allocations: 4 kB / 473.2 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.3916, allocations: 0 / 473.2 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006487/0.3923, allocations: 0.5915 MB / 473.8 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001674/0.3925, allocations: 117.1 kB / 473.9 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.054e-05/0.3925, allocations: 42.69 kB / 474 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.3926, allocations: 11.89 kB / 474 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001469/0.3927, allocations: 111.3 kB / 474.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.733e-06/0.3927, allocations: 1.5 kB / 474.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002796/0.393, allocations: 105.5 kB / 474.2 MB, free: 15.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.417e-05/0.3931, allocations: 140.4 kB / 474.4 MB, free: 15.22 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002977/0.3934, allocations: 256 kB / 474.6 MB, free: 14.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.3935, allocations: 25.7 kB / 474.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.397e-05/0.3935, allocations: 96.12 kB / 474.7 MB, free: 14.83 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.132e-05/0.3936, allocations: 39.66 kB / 474.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.193e-06/0.3936, allocations: 0 / 474.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3937, allocations: 326.8 kB / 475.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.676e-05/0.3938, allocations: 27.98 kB / 475.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.699e-05/0.3939, allocations: 80.52 kB / 475.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.207e-05/0.3939, allocations: 28.03 kB / 475.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3939, allocations: 0 / 475.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002098/0.3942, allocations: 125.3 kB / 475.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.3942, allocations: 11.12 kB / 475.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3942, allocations: 0 / 475.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.3942, allocations: 1.031 kB / 475.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.419e-05/0.3943, allocations: 15.98 kB / 475.4 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.3943, allocations: 8.094 kB / 475.4 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001292/0.3945, allocations: 15.98 kB / 475.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.3945, allocations: 11.94 kB / 475.4 MB, free: 14.12 MB / 362.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: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 9.367e-05/0.3946, allocations: 112.1 kB / 475.5 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.464e-05/0.3946, allocations: 15.81 kB / 475.5 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002063/0.3948, allocations: 104.4 kB / 475.6 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.3949, allocations: 4 kB / 475.6 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.3949, allocations: 7.906 kB / 475.6 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.3949, allocations: 3.938 kB / 475.6 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002408/0.3951, allocations: 222.9 kB / 475.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.3951, allocations: 4 kB / 475.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.718e-05/0.3952, allocations: 4 kB / 475.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.3952, allocations: 0 / 475.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.3952, allocations: 4 kB / 475.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3952, allocations: 0 / 475.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.3952, allocations: 10.64 kB / 475.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002649/0.3955, allocations: 185.9 kB / 476.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003791/0.3959, allocations: 0.5525 MB / 476.6 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.646e-05/0.396, allocations: 113.5 kB / 476.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.396, allocations: 8 kB / 476.7 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.3962, allocations: 15.98 kB / 476.7 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.71e-05/0.3963, allocations: 15.97 kB / 476.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.3963, allocations: 8 kB / 476.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001801/0.3965, allocations: 196.5 kB / 477 MB, free: 12.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008946/0.3974, allocations: 43.91 kB / 477 MB, free: 12.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007618/0.3981, allocations: 324.4 kB / 477.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002122/0.3984, allocations: 83.92 kB / 477.4 MB, free: 12.06 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3984, allocations: 0 / 477.4 MB, free: 12.06 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.401e-05/0.3985, allocations: 43.94 kB / 477.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.3988, allocations: 44.14 kB / 477.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005502/0.3994, allocations: 257.8 kB / 477.7 MB, free: 11.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003212/0.3997, allocations: 0.7549 MB / 478.5 MB, free: 10.91 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3997, allocations: 3.938 kB / 478.5 MB, free: 10.91 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1)