Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources") [: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.1+maint.om/package.mo): time 0.002514/0.002513, allocations: 174.8 kB / 7.45 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.224/1.224, allocations: 170.6 MB / 178.4 MB, free: 15.45 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001683/0.001683, allocations: 108.9 kB / 217.7 MB, free: 8.223 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.009e-05/1.012e-05, allocations: 4 kB / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0922/0.09223, allocations: 38.75 MB / 300.5 MB, free: 3.918 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3123/0.4046, allocations: 65.78 MB / 366.3 MB, free: 3.016 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/0.4048, allocations: 62.97 kB / 366.3 MB, free: 2.984 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.00484/0.4097, allocations: 1.409 MB / 367.7 MB, free: 1.793 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.4097, allocations: 4 kB / 367.7 MB, free: 1.789 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004054/0.4101, allocations: 441.4 kB / 368.2 MB, free: 1.312 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.4102, allocations: 8.031 kB / 368.2 MB, free: 1.305 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.858e-05/0.4103, allocations: 7.906 kB / 368.2 MB, free: 1.297 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.4104, allocations: 179.4 kB / 368.4 MB, free: 1.082 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.4104, allocations: 3.938 kB / 368.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.4104, allocations: 4 kB / 368.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001031/0.4105, allocations: 26.06 kB / 368.4 MB, free: 1.059 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.4107, allocations: 98.86 kB / 368.5 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.4107, allocations: 0 / 368.5 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.4107, allocations: 0.875 kB / 368.5 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.4107, allocations: 0 / 368.5 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003472/0.4111, allocations: 356.4 kB / 368.8 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001088/0.4112, allocations: 94.55 kB / 368.9 MB, free: 480 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.524e-05/0.4113, allocations: 41.08 kB / 369 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.4113, allocations: 7.984 kB / 369 MB, free: 432 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001189/0.4114, allocations: 127.3 kB / 369.1 MB, free: 292 kB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.4114, allocations: 0 / 369.1 MB, free: 292 kB / 250.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002117/0.4116, allocations: 109.7 kB / 369.2 MB, free: 192 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.138e-05/0.4117, allocations: 165.8 kB / 369.4 MB, free: 15.99 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.4118, allocations: 113.7 kB / 369.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.4119, allocations: 32.58 kB / 369.5 MB, free: 15.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.392e-05/0.4119, allocations: 84 kB / 369.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.17e-05/0.412, allocations: 30.52 kB / 369.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.673e-06/0.412, allocations: 0 / 369.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.4122, allocations: 324.3 kB / 369.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.854e-05/0.4122, allocations: 17.38 kB / 370 MB, free: 15.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.573e-05/0.4123, allocations: 52.98 kB / 370 MB, free: 15.35 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.4124, allocations: 34.97 kB / 370 MB, free: 15.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.4124, allocations: 0 / 370 MB, free: 15.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001911/0.4126, allocations: 103.3 kB / 370.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.4127, allocations: 8 kB / 370.2 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.4127, allocations: 0 / 370.2 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.4127, allocations: 0 / 370.2 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.147e-05/0.4127, allocations: 4 kB / 370.2 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.4127, allocations: 4 kB / 370.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.4129, allocations: 27.83 kB / 370.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.707e-05/0.4129, allocations: 7.125 kB / 370.2 MB, free: 15.18 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,step.y,pulse.y,$PRE.pulse.pulsStart,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,$PRE.table.y,table.y,$PRE.table.nextTime,table.nextTime,$PRE.table.index,table.index) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * 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 0.000139/0.413, allocations: 150 kB / 370.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.439e-05/0.4131, allocations: 7.906 kB / 370.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.605e-05/0.4131, allocations: 11.25 kB / 370.4 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.4131, allocations: 0 / 370.4 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.4131, allocations: 7.906 kB / 370.4 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.4132, allocations: 7.938 kB / 370.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.4133, allocations: 168.2 kB / 370.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4134, allocations: 3.984 kB / 370.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.017e-06/0.4134, allocations: 0 / 370.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.451e-06/0.4134, allocations: 4 kB / 370.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.4134, allocations: 0 / 370.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.4134, allocations: 4 kB / 370.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4134, allocations: 0 / 370.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002253/0.4136, allocations: 170.6 kB / 370.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.176e-05/0.4137, allocations: 89 kB / 370.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.06e-05/0.4137, allocations: 4 kB / 370.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.4139, allocations: 15.98 kB / 370.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.292e-05/0.4139, allocations: 19.45 kB / 370.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.4139, allocations: 4.188 kB / 370.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.736e-05/0.414, allocations: 99.42 kB / 370.9 MB, free: 14.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002597/0.4143, allocations: 24 kB / 371 MB, free: 14.35 MB / 266.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,step.y,pulse.y,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,table.y,table.nextTime,table.index) * Number of discrete states: 4 (table.y,table.nextTime,table.index,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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.0002346/0.4145, allocations: 126.8 kB / 371.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002189/0.4148, allocations: 125.2 kB / 371.2 MB, free: 14.1 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4148, allocations: 4.062 kB / 371.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.4149, allocations: 86.27 kB / 371.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002006/0.4151, allocations: 15.61 kB / 371.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004199/0.4155, allocations: 148.7 kB / 371.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003232/0.4159, allocations: 0.7115 MB / 372.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4159, allocations: 0 / 372.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of Templates: time 0.004384/0.4203, allocations: 1.254 MB / 373.4 MB, free: 11.88 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1)